Blender V4.3
VertSlideData Struct Reference

Public Member Functions

void update_proj_mat (TransInfo *t, const TransDataContainer *tc)
float2 project (const float3 &co)
void update_active_edges (TransInfo *t, const float2 &mval_fl)
void update_active_vert (TransInfo *, const float2 &mval_fl)

Public Attributes

Array< TransDataVertSlideVertsv
Vector< float3targets_buffer
int curr_sv_index

Detailed Description

Definition at line 40 of file transform_mode_vert_slide.cc.

Member Function Documentation

◆ project()

float2 VertSlideData::project ( const float3 & co)
inline

◆ update_active_edges()

void VertSlideData::update_active_edges ( TransInfo * t,
const float2 & mval_fl )
inline

Run while moving the mouse to slide along the edge matching the mouse direction.

Definition at line 87 of file transform_mode_vert_slide.cc.

References blender::math::dot(), FLT_MAX, MouseInput::imval, TransInfo::mouse, blender::math::normalize(), blender::math::project_point(), and sv.

Referenced by handleEventVertSlide(), and initVertSlide_ex().

◆ update_active_vert()

void VertSlideData::update_active_vert ( TransInfo * ,
const float2 & mval_fl )
inline

Run once when initializing vert slide to find the reference edge.

Definition at line 124 of file transform_mode_vert_slide.cc.

References TransDataVertSlideVert::co_orig_3d(), FLT_MAX, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), len_squared_v2v2(), project(), and sv.

Referenced by initVertSlide_ex().

◆ update_proj_mat()

Member Data Documentation

◆ curr_sv_index

◆ sv

◆ targets_buffer

Vector<float3> VertSlideData::targets_buffer

Definition at line 42 of file transform_mode_vert_slide.cc.

Referenced by createVertSlideVerts().


The documentation for this struct was generated from the following file: