Blender V5.3
curveprofile.cc File Reference
#include <algorithm>
#include "MEM_guardedalloc.h"
#include "DNA_curve_types.h"
#include "DNA_curveprofile_types.h"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rect.hh"
#include "BLI_utildefines.hh"
#include "BKE_curve.hh"
#include "BKE_curveprofile.h"
#include "BLO_read_write.hh"

Go to the source code of this file.

Classes

struct  blender::CurvatureSortPoint

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PROF_TABLE_MAX   512

Functions

Data Handling
struct CurveProfile * blender::BKE_curveprofile_add (eCurveProfilePresets preset)
void blender::BKE_curveprofile_free_data (struct CurveProfile *profile)
void blender::BKE_curveprofile_free (struct CurveProfile *profile)
void blender::BKE_curveprofile_copy_data (CurveProfile *target, const CurveProfile *profile)
CurveProfile * blender::BKE_curveprofile_copy (const CurveProfile *profile)
void blender::BKE_curveprofile_blend_write (BlendWriter *writer, const CurveProfile *profile)
void blender::BKE_curveprofile_blend_read (struct BlendDataReader *reader, struct CurveProfile *profile)
Editing
bool blender::BKE_curveprofile_move_handle (struct CurveProfilePoint *point, bool handle_1, bool snap, const float delta[2])
bool blender::BKE_curveprofile_move_point (struct CurveProfile *profile, struct CurveProfilePoint *point, bool snap, const float delta[2])
void blender::BKE_curveprofile_translate_selection (struct CurveProfile *profile, const blender::float2 &offset)
bool blender::BKE_curveprofile_remove_point (struct CurveProfile *profile, struct CurveProfilePoint *point)
void blender::BKE_curveprofile_remove_by_flag (struct CurveProfile *profile, short flag)
static void blender::point_init (CurveProfilePoint *point, float x, float y, eCurveProfilePoint_Flag flag, char h1, char h2)
struct CurveProfilePoint * blender::BKE_curveprofile_insert (struct CurveProfile *profile, float x, float y)
void blender::BKE_curveprofile_selected_handle_set (struct CurveProfile *profile, int type_1, int type_2)
static CurveProfilePoint blender::mirror_point (const CurveProfilePoint *point)
void blender::BKE_curveprofile_reverse (struct CurveProfile *profile)
static void blender::curveprofile_build_supports (CurveProfile *profile)
static void blender::curveprofile_build_steps (CurveProfile *profile)
void blender::BKE_curveprofile_reset_view (struct CurveProfile *profile)
void blender::BKE_curveprofile_reset (struct CurveProfile *profile)
void blender::BKE_curveprofile_activate_nearest_point (struct CurveProfile *profile, const int i_last)
Sampling and Evaluation
int blender::BKE_curveprofile_table_size (const CurveProfile *profile)
static bool blender::is_curved_edge (CurveProfilePoint *path, int i)
static void blender::point_calculate_handle (CurveProfilePoint *point, const CurveProfilePoint *prev, const CurveProfilePoint *next)
static void blender::calculate_path_handles (CurveProfilePoint *path, int path_len)
static float blender::bezt_edge_handle_angle (const CurveProfilePoint *path, int i_edge)
static int blender::sort_points_curvature (const void *in_a, const void *in_b)
static void blender::create_samples (CurveProfile *profile, int n_segments, bool sample_straight_edges, CurveProfilePoint *r_samples)
void blender::BKE_curveprofile_set_defaults (struct CurveProfile *profile)
void blender::BKE_curveprofile_init (struct CurveProfile *profile, short segments_len)
static float blender::curveprofile_distance_to_next_table_point (const CurveProfile *profile, int i)
static float blender::curveprofile_total_length (const CurveProfile *profile)
static void blender::create_samples_even_spacing (CurveProfile *profile, int n_segments, CurveProfilePoint *r_samples)
static void blender::curveprofile_make_table (CurveProfile *profile)
static void blender::curveprofile_make_segments_table (CurveProfile *profile)
void blender::BKE_curveprofile_update (struct CurveProfile *profile, int update_flags)
CurveProfilePoint * blender::BKE_curveprofile_active_get (CurveProfile *profile)
float * blender::BKE_curveprofile_active_location_get (struct CurveProfilePoint *point)
void blender::BKE_curveprofile_evaluate_length_portion (const CurveProfile *profile, float length_portion, float *x_out, float *y_out)

Macro Definition Documentation

◆ PROF_TABLE_MAX

#define PROF_TABLE_MAX   512

Number of points in high resolution table is dynamic up to a maximum.

Definition at line 29 of file curveprofile.cc.

Referenced by blender::BKE_curveprofile_insert(), and blender::BKE_curveprofile_table_size().