Blender V5.3
GEO_curve_constraints.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BKE_curves.hh"
12
14
16 Span<float3> positions,
17 const IndexMask &curve_selection,
18 MutableSpan<float> r_segment_lengths);
19
21 const IndexMask &curve_selection,
22 Span<float> segment_lenghts,
23 MutableSpan<float3> positions);
24
26 const IndexMask &curve_selection,
27 Span<float> segment_lengths,
28 Span<float3> start_positions,
29 const Mesh &surface,
30 const bke::CurvesSurfaceTransforms &transforms,
31 MutableSpan<float3> positions,
32 const float surface_collision_distance);
33
34} // namespace blender::geometry::curve_constraints
Low-level operations for curves.
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, const float surface_collision_distance)
void solve_length_constraints(OffsetIndices< int > points_by_curve, const IndexMask &curve_selection, Span< float > segment_lenghts, MutableSpan< float3 > positions)
void compute_segment_lengths(OffsetIndices< int > points_by_curve, Span< float3 > positions, const IndexMask &curve_selection, MutableSpan< float > r_segment_lengths)