Blender V5.3
bmo_relax_edge_loops.cc File Reference
#include "BLI_math_vector.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_array_utils.hh"
#include "BLI_length_parameterize.hh"
#include "BLI_listbase.hh"
#include "BLI_math_solvers.hh"
#include "BLI_vector.hh"
#include <array>
#include "bmesh.hh"
#include "intern/bmesh_operators_private.hh"

Go to the source code of this file.

Classes

struct  blender::RelaxPhase
struct  blender::RelaxChainData
struct  blender::SplineCoeffs

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::calculate_splines_axis (Span< float > distances, Span< float > coords, const bool is_closed, Vector< SplineCoeffs > &r_coeffs)
static void blender::build_relax_phases (int verts_num, bool is_closed, Vector< RelaxPhase > &r_phases)
static void blender::get_relax_input_chains (BMesh *bm, Vector< RelaxChainData > &r_chains)
static void blender::calculate_phase_distances (Span< BMVert * > verts, const RelaxPhase &phase, const bool regular, Vector< float > &r_knot_distances, Vector< float > &r_point_distances)
static void blender::calculate_relax_splines (Span< BMVert * > verts, Span< int > knot_indices, Span< float > t_params, bool is_closed, std::array< Vector< SplineCoeffs >, 3 > &r_coeffs)
static void blender::execute_relax_phase (Span< BMVert * > verts, const RelaxPhase &phase, bool is_closed, int interpolation, bool regular)
void blender::bmo_relax_edge_loops_exec (BMesh *bm, BMOperator *op)

Variables

constexpr float blender::RELAX_EPSILON = 1e-8f

Detailed Description

Relaxes vertices along edge loops so they are smoother.

Definition in file bmo_relax_edge_loops.cc.