Blender V4.3
simplify_curves.cc File Reference
#include "BLI_array_utils.hh"
#include "BLI_stack.hh"
#include "BKE_curves_utils.hh"
#include "GEO_simplify_curves.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::geometry
 

Functions

template<typename T >
float blender::geometry::perpendicular_distance (const Span< float3 > positions, const Span< T > attribute_data, const int64_t first_index, const int64_t last_index, const int64_t index)
 
template<typename T >
static void blender::geometry::ramer_douglas_peucker (const IndexRange range, const Span< float3 > positions, const float epsilon, const Span< T > attribute_data, MutableSpan< bool > points_to_delete)
 
template<typename T >
static void blender::geometry::curve_simplify (const Span< float3 > positions, const bool cyclic, const float epsilon, const Span< T > attribute_data, MutableSpan< bool > points_to_delete)
 
void blender::geometry::curve_simplify (const Span< float3 > positions, const bool cyclic, const float epsilon, const GSpan attribute_data, MutableSpan< bool > points_to_delete)
 
IndexMask blender::geometry::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)