Blender V5.3
bmo_space_edge_loops_evenly.cc File Reference

Go to the source code of this file.

Classes

struct  blender::SpaceChainData
struct  blender::SpaceMeasurements
struct  blender::SplineCoeffs

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::get_space_input_chains (BMesh *bm, Vector< SpaceChainData > &r_chains)
static SpaceMeasurements blender::measure_chain (const SpaceChainData &chain)
static void blender::calculate_splines_axis (Span< float > distances, Span< float > coords, const bool is_closed, Vector< SplineCoeffs > &r_coeffs)
static int blender::calc_spline_segment (Span< float > knot_distances, const float target_distance)
static float3 blender::evaluate_cubic (Span< float > tknots, Span< SplineCoeffs > coeffs_x, Span< SplineCoeffs > coeffs_y, Span< SplineCoeffs > coeffs_z, const float target_distance)
void blender::bmo_space_edge_loops_evenly_exec (BMesh *bm, BMOperator *op)

Variables

constexpr float blender::DUPLICATE_POSITION_THRESHOLD = 1e-6f
constexpr float blender::SPACE_EPSILON = 1e-8f

Detailed Description

Distributes vertices evenly along one or more edge loops. Endpoints of edge loops are not modified unless the loop is cyclic.

Vertices along the edge loop are redistributed to uniform spacing based on the cumulative length of the edge loop and are interpolated either smoothly via a natural cubic spline or linearly.

Definition in file bmo_space_edge_loops_evenly.cc.