Blender V5.0
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 "BLI_generic_span.hh"
8#include "BLI_index_mask.hh"
10#include "BLI_span.hh"
11
12namespace blender::geometry {
13
18IndexMask simplify_curve_attribute(const Span<float3> positions,
19 const IndexMask &curves_selection,
20 const OffsetIndices<int> points_by_curve,
21 const VArray<bool> &cyclic,
22 float epsilon,
23 GSpan attribute_data,
24 IndexMaskMemory &memory);
25
29void curve_simplify(const Span<float3> positions,
30 const bool cyclic,
31 const float epsilon,
32 const GSpan attribute_data,
33 MutableSpan<bool> points_to_delete);
34
35} // 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)