Blender V5.3
GEO_smooth_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"
13#include "BLI_offset_indices.hh"
14
15#include "BKE_curves.hh"
16
17namespace blender::geometry {
18
28void gaussian_blur_1D(const GSpan src,
29 int iterations,
30 const VArray<float> &influence_by_point,
31 const bool smooth_ends,
32 const bool keep_shape,
33 const bool is_cyclic,
34 GMutableSpan dst);
35
39void smooth_curve_attribute(const IndexMask &curves_to_smooth,
40 const OffsetIndices<int> points_by_curve,
41 const VArray<bool> &point_selection,
42 const VArray<bool> &cyclic,
43 int iterations,
44 float influence,
45 bool smooth_ends,
46 bool keep_shape,
47 GMutableSpan attribute_data);
48
52void smooth_curve_attribute(const IndexMask &curves_to_smooth,
53 const OffsetIndices<int> points_by_curve,
54 const VArray<bool> &point_selection,
55 const VArray<bool> &cyclic,
56 int iterations,
57 const VArray<float> &influence_by_point,
58 bool smooth_ends,
59 bool keep_shape,
60 GMutableSpan attribute_data);
61
65void smooth_curve_positions(bke::CurvesGeometry &curves,
66 const IndexMask &curves_to_smooth,
67 const VArray<bool> &point_selection,
68 int iterations,
69 const VArray<float> &influence_by_point,
70 bool smooth_ends,
71 bool keep_shape);
72void smooth_curve_positions(bke::CurvesGeometry &curves,
73 const IndexMask &curves_to_smooth,
74 const VArray<bool> &point_selection,
75 int iterations,
76 float influence,
77 bool smooth_ends,
78 bool keep_shape);
79
80} // namespace blender::geometry
Low-level operations for curves.
void smooth_curve_positions(bke::CurvesGeometry &curves, const IndexMask &curves_to_smooth, const VArray< bool > &point_selection, int iterations, const VArray< float > &influence_by_point, bool smooth_ends, bool keep_shape)
void smooth_curve_attribute(const IndexMask &curves_to_smooth, const OffsetIndices< int > points_by_curve, const VArray< bool > &point_selection, const VArray< bool > &cyclic, int iterations, float influence, bool smooth_ends, bool keep_shape, GMutableSpan attribute_data)
void gaussian_blur_1D(const GSpan src, int iterations, const VArray< float > &influence_by_point, const bool smooth_ends, const bool keep_shape, const bool is_cyclic, GMutableSpan dst)