Blender V4.3
blender::geometry::curve_constraints Namespace Reference

Functions

void compute_segment_lengths (OffsetIndices< int > points_by_curve, Span< float3 > positions, const IndexMask &curve_selection, MutableSpan< float > r_segment_lengths)
 
void solve_length_constraints (OffsetIndices< int > points_by_curve, const IndexMask &curve_selection, Span< float > segment_lenghts, MutableSpan< float3 > positions)
 
void solve_length_and_collision_constraints (OffsetIndices< int > points_by_curve, const IndexMask &curve_selection, Span< float > segment_lengths, Span< float3 > start_positions, const Mesh &surface, const bke::CurvesSurfaceTransforms &transforms, MutableSpan< float3 > positions)
 

Detailed Description

The code below uses a prefix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. su: Local space of the surface object. wo: World space.

Function Documentation

◆ compute_segment_lengths()

void blender::geometry::curve_constraints::compute_segment_lengths ( OffsetIndices< int > points_by_curve,
Span< float3 > positions,
const IndexMask & curve_selection,
MutableSpan< float > r_segment_lengths )

◆ solve_length_and_collision_constraints()

◆ solve_length_constraints()

void blender::geometry::curve_constraints::solve_length_constraints ( OffsetIndices< int > points_by_curve,
const IndexMask & curve_selection,
Span< float > segment_lenghts,
MutableSpan< float3 > positions )