Blender V4.3
SnapObjectParams Struct Reference

#include <ED_transform_snap_object_context.hh>

Public Attributes

eSnapTargetOP snap_target_select
 
eSnapEditType edit_mode_type
 
eSnapOcclusionTest occlusion_test
 
float grid_size
 
short face_nearest_steps
 
bool use_backface_culling: 1
 
bool keep_on_same_target: 1
 

Detailed Description

parameters that define which objects will be used to snap.

Definition at line 57 of file ED_transform_snap_object_context.hh.

Member Data Documentation

◆ edit_mode_type

◆ face_nearest_steps

short SnapObjectParams::face_nearest_steps

Break nearest face snapping into steps to improve transformations across U-shaped targets.

Definition at line 67 of file ED_transform_snap_object_context.hh.

Referenced by nearest_world_tree().

◆ grid_size

float SnapObjectParams::grid_size

Grid unit size. "0.0" is automatic.

Definition at line 65 of file ED_transform_snap_object_context.hh.

◆ keep_on_same_target

bool SnapObjectParams::keep_on_same_target

Enable to force nearest face snapping to snap to target the source was initially near.

Definition at line 71 of file ED_transform_snap_object_context.hh.

Referenced by nearest_world_tree().

◆ occlusion_test

eSnapOcclusionTest SnapObjectParams::occlusion_test

Snap to or ignore the frontmost object.

Definition at line 63 of file ED_transform_snap_object_context.hh.

Referenced by SnapData::clip_planes_enable(), raycast_obj_fn(), raycastMesh(), and snap_object_context_runtime_init().

◆ snap_target_select

eSnapTargetOP SnapObjectParams::snap_target_select

◆ use_backface_culling

bool SnapObjectParams::use_backface_culling

Exclude back facing geometry from snapping.

Definition at line 69 of file ED_transform_snap_object_context.hh.

Referenced by raycastMesh().


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