Blender V4.3
GEO_simplify_curves.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BKE_curves.hh"
8
9namespace blender::geometry {
10
15IndexMask simplify_curve_attribute(const Span<float3> positions,
16 const IndexMask &curves_selection,
17 const OffsetIndices<int> points_by_curve,
18 const VArray<bool> &cyclic,
19 float epsilon,
20 GSpan attribute_data,
21 IndexMaskMemory &memory);
22
26void curve_simplify(const Span<float3> positions,
27 const bool cyclic,
28 const float epsilon,
29 const GSpan attribute_data,
30 MutableSpan<bool> points_to_delete);
31
32} // namespace blender::geometry
Low-level operations for curves.
IndexMask simplify_curve_attribute(const Span< float3 > positions, const IndexMask &curves_selection, const OffsetIndices< int > points_by_curve, const VArray< bool > &cyclic, float epsilon, GSpan attribute_data, IndexMaskMemory &memory)
void curve_simplify(const Span< float3 > positions, const bool cyclic, const float epsilon, const GSpan attribute_data, MutableSpan< bool > points_to_delete)