Blender V5.3
bmo_fit_edge_loops_to_annotation.cc File Reference

Go to the source code of this file.

Classes

struct  blender::ToAnnotationChain
struct  blender::StrokeData

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::calc_annotation_input_chains_from_bm (BMesh *bm, Vector< ToAnnotationChain > &r_chains)
static void blender::measure_positions (const Span< float3 > positions, float3 &r_center, Vector< float > &r_accumulated_lengths)
static bool blender::is_total_length_valid (const Span< float > accumulated_lengths)
static void blender::calculate_chain_lengths (ToAnnotationChain &chain)
static void blender::calculate_stroke_lengths (StrokeData &stroke_data)
static void blender::sample_stroke_positions (const StrokeData &stroke_data, const ToAnnotationChain &chain, const int method, MutableSpan< float3 > r_positions)
static float blender::calculate_alignment_distance (const ToAnnotationChain &chain, const StrokeData &stroke_data, const int method)
static bool blender::edge_shares_face_with_tagged_edge (BMEdge *e, BMVert *v)
static void blender::calculate_verts (const StrokeData &stroke_data, const int method, const float factor, const bool lock_x, const bool lock_y, const bool lock_z, ToAnnotationChain &r_chain)
void blender::bmo_fit_edge_loops_to_annotation_exec (BMesh *bm, BMOperator *op)

Variables

constexpr float blender::ray_length = 1000.0f
constexpr float blender::max_ray_distance = 0.01f
constexpr float blender::segment_epsilon = 1e-4f
constexpr float blender::normal_length_epsilon = 1e-3f

Detailed Description

Stretches selected vertices to the active stroke.

Definition in file bmo_fit_edge_loops_to_annotation.cc.