Blender V5.3
view3d_snap.cc File Reference
#include "DNA_armature_types.h"
#include "DNA_meta_types.h"
#include "DNA_object_types.h"
#include "DNA_pointcloud_types.h"
#include "BLI_bounds.hh"
#include "BLI_listbase.hh"
#include "BLI_math_matrix.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines.hh"
#include "BLI_vector.hh"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_context.hh"
#include "BKE_crazyspace.hh"
#include "BKE_editmesh.hh"
#include "BKE_layer.hh"
#include "BKE_main.hh"
#include "BKE_mball.hh"
#include "BKE_object.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_tracking.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "ED_anim_api.hh"
#include "ED_curves.hh"
#include "ED_grease_pencil.hh"
#include "ED_keyframing.hh"
#include "ED_object.hh"
#include "ED_pointcloud.hh"
#include "ED_screen.hh"
#include "ED_transverts.hh"
#include "ANIM_action.hh"
#include "ANIM_armature.hh"
#include "ANIM_bone_collections.hh"
#include "ANIM_keyframing.hh"
#include "ANIM_keyingsets.hh"
#include "view3d_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static bool blender::snap_curs_to_sel_ex (bContext *C, const int pivot_point, float r_cursor[3])
static bool blender::snap_calc_active_center (bContext *C, const bool select_only, float r_center[3])
Snap Selection to Grid Operator
static wmOperatorStatus blender::snap_sel_to_grid_exec (bContext *C, wmOperator *op)
void blender::VIEW3D_OT_snap_selected_to_grid (wmOperatorType *ot)
Snap Selection to Location (Utility)
static bool blender::pose_bone_runtime_flag_test_recursive (const bPoseChannel *pose_bone, int flag)
static bool blender::snap_selected_to_location_rotation (bContext *C, wmOperator *op, const float3 &target_loc_global, const View3DCursor *target_orientation_global, const bool use_offset, const int pivot_point, const bool use_toolsettings)
bool blender::ED_view3d_snap_selected_to_location (bContext *C, wmOperator *op, const float target_loc_global[3], int pivot_point)
Snap Selection to Cursor Operator
static wmOperatorStatus blender::snap_selected_to_cursor_exec (bContext *C, wmOperator *op)
void blender::VIEW3D_OT_snap_selected_to_cursor (wmOperatorType *ot)
Snap Selection to Active Operator
static wmOperatorStatus blender::snap_selected_to_active_exec (bContext *C, wmOperator *op)
void blender::VIEW3D_OT_snap_selected_to_active (wmOperatorType *ot)
Snap Cursor to Grid Operator
static wmOperatorStatus blender::snap_curs_to_grid_exec (bContext *C, wmOperator *)
void blender::VIEW3D_OT_snap_cursor_to_grid (wmOperatorType *ot)
Snap Cursor to Selection Operator
static void blender::bundle_midpoint (Scene *scene, Object *ob, float r_vec[3])
static wmOperatorStatus blender::snap_curs_to_sel_exec (bContext *C, wmOperator *)
void blender::VIEW3D_OT_snap_cursor_to_selected (wmOperatorType *ot)
Snap Cursor to Active Operator
static wmOperatorStatus blender::snap_curs_to_active_exec (bContext *C, wmOperator *)
void blender::VIEW3D_OT_snap_cursor_to_active (wmOperatorType *ot)
Snap Cursor to Center Operator
static wmOperatorStatus blender::snap_curs_to_center_exec (bContext *C, wmOperator *)
void blender::VIEW3D_OT_snap_cursor_to_center (wmOperatorType *ot)
Min/Max Object Vertices Utility
static std::optional< Bounds< float3 > > blender::bounds_min_max_with_transform (const float4x4 &transform, const Span< float3 > positions, const IndexMask &mask)
bool blender::ED_view3d_minmax_verts (const Scene *scene, Object *obedit, float min[3], float max[3])