Blender V4.3
SnapData_Mesh Class Reference

Inherits SnapData.

Public Member Functions

 SnapData_Mesh (SnapObjectContext *sctx, const Mesh *mesh_eval, const float4x4 &obmat)
 
void get_vert_co (const int index, const float **r_co) override
 
void get_edge_verts_index (const int index, int r_v_index[2]) override
 
void copy_vert_no (const int index, float r_no[3]) override
 
- Public Member Functions inherited from SnapData
 SnapData (SnapObjectContext *sctx, const blender::float4x4 &obmat=blender::float4x4::identity())
 
void clip_planes_enable (SnapObjectContext *sctx, const Object *ob_eval, bool skip_occlusion_plane=false)
 
bool snap_boundbox (const blender::float3 &min, const blender::float3 &max)
 
bool snap_point (const blender::float3 &co, int index=-1)
 
bool snap_edge (const blender::float3 &va, const blender::float3 &vb, int edge_index=-1)
 
eSnapMode snap_edge_points_impl (SnapObjectContext *sctx, int edge_index, float dist_px_sq_orig)
 
void register_result (SnapObjectContext *sctx, const Object *ob_eval, const ID *id_eval)
 

Public Attributes

const float3vert_positions
 
const float3vert_normals
 
const int2edges
 
const intcorner_verts
 
const intcorner_edges
 
const int3corner_tris
 
- Public Attributes inherited from SnapData
DistProjectedAABBPrecalc nearest_precalc
 
blender::Vector< blender::float4, MAX_CLIPPLANE_LEN+1 > clip_planes
 
blender::float4x4 pmat_local
 
blender::float4x4 obmat_
 
const bool is_persp
 
bool use_backface_culling
 
BVHTreeNearest nearest_point
 

Additional Inherited Members

- Static Public Member Functions inherited from SnapData
static void register_result (SnapObjectContext *sctx, const Object *ob_eval, const ID *id_eval, const blender::float4x4 &obmat, BVHTreeNearest *r_nearest)
 
static void register_result_raycast (SnapObjectContext *sctx, const Object *ob_eval, const ID *id_eval, const blender::float4x4 &obmat, const BVHTreeRayHit *hit, const bool is_in_front)
 

Detailed Description

Definition at line 222 of file transform_snap_object_mesh.cc.

Constructor & Destructor Documentation

◆ SnapData_Mesh()

SnapData_Mesh::SnapData_Mesh ( SnapObjectContext * sctx,
const Mesh * mesh_eval,
const float4x4 & obmat )
inline

Definition at line 231 of file transform_snap_object_mesh.cc.

Member Function Documentation

◆ copy_vert_no()

void SnapData_Mesh::copy_vert_no ( const int index,
float r_no[3] )
inlineoverridevirtual

Reimplemented from SnapData.

Definition at line 254 of file transform_snap_object_mesh.cc.

References copy_v3_v3().

◆ get_edge_verts_index()

void SnapData_Mesh::get_edge_verts_index ( const int index,
int r_v_index[2] )
inlineoverridevirtual

Reimplemented from SnapData.

Definition at line 247 of file transform_snap_object_mesh.cc.

Referenced by cb_snap_edge_verts().

◆ get_vert_co()

void SnapData_Mesh::get_vert_co ( const int index,
const float ** r_co )
inlineoverridevirtual

Reimplemented from SnapData.

Definition at line 242 of file transform_snap_object_mesh.cc.

Member Data Documentation

◆ corner_edges

const int* SnapData_Mesh::corner_edges

Definition at line 228 of file transform_snap_object_mesh.cc.

Referenced by snap_polygon_mesh().

◆ corner_tris

const int3* SnapData_Mesh::corner_tris

Definition at line 229 of file transform_snap_object_mesh.cc.

◆ corner_verts

const int* SnapData_Mesh::corner_verts

◆ edges

const int2* SnapData_Mesh::edges

Definition at line 226 of file transform_snap_object_mesh.cc.

Referenced by snap_polygon_mesh().

◆ vert_normals

const float3* SnapData_Mesh::vert_normals

Definition at line 225 of file transform_snap_object_mesh.cc.

◆ vert_positions

const float3* SnapData_Mesh::vert_positions

Definition at line 224 of file transform_snap_object_mesh.cc.


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