Blender V5.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
8
9#pragma once
10
11#include "BLI_generic_span.hh"
12#include "BLI_index_mask.hh"
14#include "BLI_span.hh"
15
16namespace blender::geometry {
17
22IndexMask simplify_curve_attribute(const Span<float3> positions,
23 const IndexMask &curves_selection,
24 const OffsetIndices<int> points_by_curve,
25 const VArray<bool> &cyclic,
26 float epsilon,
27 GSpan attribute_data,
28 IndexMaskMemory &memory);
29
33void curve_simplify(const Span<float3> positions,
34 const bool cyclic,
35 const float epsilon,
36 const GSpan attribute_data,
37 MutableSpan<bool> points_to_delete);
38
39} // namespace blender::geometry
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)