26#define MAX_CLIPPLANE_LEN 6
28#define SNAP_TO_EDGE_ELEMENTS \
29 (SCE_SNAP_TO_EDGE | SCE_SNAP_TO_EDGE_ENDPOINT | SCE_SNAP_TO_EDGE_MIDPOINT | \
30 SCE_SNAP_TO_EDGE_PERPENDICULAR)
40namespace ed::transform {
59 std::optional<bke::BVHTreeFromMesh> corner_tris_;
60 std::optional<bke::BVHTreeFromMesh> loose_edges_;
61 std::optional<bke::BVHTreeFromMesh> loose_verts_;
65 : mesh_(
mesh), skip_hidden_(skip_hidden)
115 ListBaseT<SnapObjectHitDepth> *
hit_list;
182 bool skip_occlusion_plane =
false);
198 const bool is_in_front);
212 const float dir[3],
const float v0[3],
const float v1[3],
const float v2[3],
float no[3]);
217 const float (*clip_plane)[4],
218 const int clip_plane_len,
224 const float (*clip_plane)[4],
225 const int clip_plane_len,
231 const float (*clip_plane)[4],
252 bool is_object_active);
294 SnapTargetTrees &trees,
308 float dist_px_sq_orig,
These structs are the foundation for all linked lists in the library system.
void(*)(void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit) BVHTree_RayCastCallback
MatBase< float, 4, 4 > float4x4
VecBase< float, 4 > float4
VecBase< float, 2 > float2
ATTR_WARN_UNUSED_RESULT const BMVert * v2
VecBase< float, 3 > float3
void(*)(void *userdata, int index, const float co[3], BVHTreeNearest *nearest) BVHTree_NearestPointCallback
static MatBase identity()
float ray_depth_max_in_front
virtual ~SnapCache()=default
eSnapOcclusionTest occlusion_test_edit
Vector< float4, MAX_CLIPPLANE_LEN > clip_planes
const RegionView3D * rv3d
bool has_occlusion_plane_in_front
ListBaseT< SnapObjectHitDepth > * hit_list
float4 occlusion_plane_in_front
SnapEditMeshTarget editmesh_target
struct blender::ed::transform::SnapObjectContext::@247331373256345130115246240121215056001150353127 runtime
Map< const ID *, std::unique_ptr< SnapCache > > editmesh_caches
struct blender::ed::transform::SnapObjectContext::@310300172364020037033024163131337007352124137204 grid