Blender V4.3
GEO_resample_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
5#pragma once
6
7#include "FN_field.hh"
8
9#include "BKE_attribute.hh"
10#include "BKE_curves.hh"
11
12namespace blender::geometry {
13
14using bke::CurvesGeometry;
15
17 std::optional<std::string> tangent_id;
18 std::optional<std::string> normal_id;
19};
20
29 const IndexMask &selection,
30 const VArray<int> &counts,
31 const ResampleCurvesOutputAttributeIDs &output_ids = {});
33 const fn::FieldContext &field_context,
34 const fn::Field<bool> &selection_field,
35 const fn::Field<int> &count_field,
36 const ResampleCurvesOutputAttributeIDs &output_ids = {});
37
44 const IndexMask &selection,
45 const VArray<float> &sample_lengths,
46 const ResampleCurvesOutputAttributeIDs &output_ids = {});
48 const fn::FieldContext &field_context,
49 const fn::Field<bool> &selection_field,
50 const fn::Field<float> &segment_length_field,
51 const ResampleCurvesOutputAttributeIDs &output_ids = {});
52
57 const IndexMask &selection,
58 const ResampleCurvesOutputAttributeIDs &output_ids = {});
60 const fn::FieldContext &field_context,
61 const fn::Field<bool> &selection_field,
62 const ResampleCurvesOutputAttributeIDs &output_ids = {});
63
64} // namespace blender::geometry
Low-level operations for curves.
CurvesGeometry resample_to_count(const CurvesGeometry &src_curves, const IndexMask &selection, const VArray< int > &counts, const ResampleCurvesOutputAttributeIDs &output_ids={})
CurvesGeometry resample_to_evaluated(const CurvesGeometry &src_curves, const IndexMask &selection, const ResampleCurvesOutputAttributeIDs &output_ids={})
CurvesGeometry resample_to_length(const CurvesGeometry &src_curves, const IndexMask &selection, const VArray< float > &sample_lengths, const ResampleCurvesOutputAttributeIDs &output_ids={})