Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_curves.hh
| Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | public: | ||||
| /** | /** | ||||
| * The weight for each control point for NURBS curves. Call #tag_positions_changed after changes. | * The weight for each control point for NURBS curves. Call #tag_positions_changed after changes. | ||||
| */ | */ | ||||
| Span<float> nurbs_weights() const; | Span<float> nurbs_weights() const; | ||||
| MutableSpan<float> nurbs_weights_for_write(); | MutableSpan<float> nurbs_weights_for_write(); | ||||
| /** | /** | ||||
| * The index of a triangle (#MLoopTri) that a curve is attached to. | * UV coordinate for each curve that encodes where the curve is attached to the surface mesh. | ||||
| * The index is -1, if the curve is not attached. | |||||
| */ | */ | ||||
| VArray<int> surface_triangle_indices() const; | Span<float2> surface_uv_coords() const; | ||||
| MutableSpan<int> surface_triangle_indices_for_write(); | MutableSpan<float2> surface_uv_coords_for_write(); | ||||
| /** | |||||
| * Barycentric coordinates of the attachment point within a triangle. | |||||
| * Only the first two coordinates are stored. The third coordinate can be derived because the sum | |||||
| * of the three coordinates is 1. | |||||
| * | |||||
| * When the triangle index is -1, this coordinate should be ignored. | |||||
| * The span can be empty, when all triangle indices are -1. | |||||
| */ | |||||
| Span<float2> surface_triangle_coords() const; | |||||
| MutableSpan<float2> surface_triangle_coords_for_write(); | |||||
| VArray<float> selection_point_float() const; | VArray<float> selection_point_float() const; | ||||
| MutableSpan<float> selection_point_float_for_write(); | MutableSpan<float> selection_point_float_for_write(); | ||||
| VArray<float> selection_curve_float() const; | VArray<float> selection_curve_float() const; | ||||
| MutableSpan<float> selection_curve_float_for_write(); | MutableSpan<float> selection_curve_float_for_write(); | ||||
| /** | /** | ||||
| * Calculate the largest and smallest position values, only including control points | * Calculate the largest and smallest position values, only including control points | ||||
| ▲ Show 20 Lines • Show All 535 Lines • Show Last 20 Lines | |||||