Blender V4.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
5#pragma once
6
7#include "BKE_curves.hh"
8
10
12 Span<float3> positions,
13 const IndexMask &curve_selection,
14 MutableSpan<float> r_segment_lengths);
15
17 const IndexMask &curve_selection,
18 Span<float> segment_lenghts,
19 MutableSpan<float3> positions);
20
22 const IndexMask &curve_selection,
23 Span<float> segment_lengths,
24 Span<float3> start_positions,
25 const Mesh &surface,
26 const bke::CurvesSurfaceTransforms &transforms,
27 MutableSpan<float3> positions);
28
29} // namespace blender::geometry::curve_constraints
Low-level operations for curves.
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)
void compute_segment_lengths(OffsetIndices< int > points_by_curve, Span< float3 > positions, const IndexMask &curve_selection, MutableSpan< float > r_segment_lengths)