Blender V5.3
GEO_interpolate_curves.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
13namespace blender::geometry {
14
23void sample_curve_padded(const Span<float3> positions,
24 bool cyclic,
25 MutableSpan<int> r_indices,
26 MutableSpan<float> r_factors);
27
38void sample_curve_padded(const bke::CurvesGeometry &curves,
39 int curve_index,
40 bool cyclic,
41 bool reverse,
42 MutableSpan<int> r_indices,
43 MutableSpan<float> r_factors);
44
49void interpolate_curves(const bke::CurvesGeometry &from_curves,
50 const bke::CurvesGeometry &to_curves,
51 Span<int> from_curve_indices,
52 Span<int> to_curve_indices,
53 const IndexMask &dst_curve_mask,
54 Span<bool> dst_curve_flip_direction,
55 float mix_factor,
56 bke::CurvesGeometry &dst_curves,
57 IndexMaskMemory &memory);
58
59void interpolate_curves_with_samples(const bke::CurvesGeometry &from_curves,
60 const bke::CurvesGeometry &to_curves,
61 Span<int> from_curve_indices,
62 Span<int> to_curve_indices,
63 Span<int> from_sample_indices,
64 Span<int> to_sample_indices,
65 Span<float> from_sample_factors,
66 Span<float> to_sample_factors,
67 const IndexMask &dst_curve_mask,
68 float mix_factor,
69 bke::CurvesGeometry &dst_curves,
70 IndexMaskMemory &memory);
71
72} // namespace blender::geometry
Low-level operations for curves.
void interpolate_curves_with_samples(const bke::CurvesGeometry &from_curves, const bke::CurvesGeometry &to_curves, Span< int > from_curve_indices, Span< int > to_curve_indices, Span< int > from_sample_indices, Span< int > to_sample_indices, Span< float > from_sample_factors, Span< float > to_sample_factors, const IndexMask &dst_curve_mask, float mix_factor, bke::CurvesGeometry &dst_curves, IndexMaskMemory &memory)
void sample_curve_padded(const Span< float3 > positions, bool cyclic, MutableSpan< int > r_indices, MutableSpan< float > r_factors)
void interpolate_curves(const bke::CurvesGeometry &from_curves, const bke::CurvesGeometry &to_curves, Span< int > from_curve_indices, Span< int > to_curve_indices, const IndexMask &dst_curve_mask, Span< bool > dst_curve_flip_direction, float mix_factor, bke::CurvesGeometry &dst_curves, IndexMaskMemory &memory)