Blender V5.3
curve_decimate.cc File Reference
#include "DNA_curve_types.h"
#include "BLI_heap.hh"
#include "BLI_math_vector_c.hh"
#include "MEM_guardedalloc.h"
#include "BKE_curve.hh"
#include "curve_fit_nd.h"
#include <cstring>
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Classes

struct  blender::Knot

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define HANDLE_UPDATE(a, b)
#define SELECT   1

Functions

static float blender::knot_remove_error_value (const float tan_l[3], const float tan_r[3], const float(*points)[3], const uint points_len, float r_handle_factors[2])
static void blender::knot_remove_error_recalculate (Heap *heap, const float(*points)[3], const uint points_len, Knot *k, const float error_sq_max)
static void blender::curve_decimate (const float(*points)[3], const uint points_len, Knot *knots, const uint knots_len, float error_sq_max, const uint error_target_len)
Decimate Curve (<tt>curve_decimate.cc</tt>)

Simplify curve data.

unsigned int blender::BKE_curve_decimate_bezt_array (BezTriple *bezt_array, unsigned int bezt_array_len, unsigned int resolu, bool is_cyclic, eBezTriple_Flag flag_test, eBezTriple_Flag flag_set, float error_sq_max, unsigned int error_target_len)
void blender::BKE_curve_decimate_nurb (Nurb *nu, unsigned int resolu, float error_sq_max, unsigned int error_target_len)

Macro Definition Documentation

◆ HANDLE_UPDATE

#define HANDLE_UPDATE ( a,
b )
Value:
{ \
if (a == HD_VECT) { \
a = HD_FREE; \
} \
else if (ELEM(a, HD_AUTO, HD_AUTO_ANIM)) { \
a = HD_ALIGN; \
} \
\
if (ELEM(b, HD_AUTO, HD_AUTO_ANIM)) { \
b = HD_ALIGN; \
} \
} \
((void)0)
#define ELEM(...)

Referenced by blender::BKE_curve_decimate_bezt_array().

◆ SELECT

#define SELECT   1

Definition at line 283 of file curve_decimate.cc.