110 const struct View3D *v3d);
113 const bool use_depth,
114 float r_cursor_co[3]);
117 const bool use_depth,
119 float r_cursor_co[3],
120 float r_cursor_quat[4]);
123 const bool use_depth,
128 void ED_view3d_to_m4(
float mat[4][4],
const float ofs[3],
const float quat[4],
const float dist);
129 void ED_view3d_from_m4(
const float mat[4][4],
float ofs[3],
float quat[4],
const float *dist);
132 const struct Object *ob,
float ofs[3],
float quat[4],
float *dist,
float *
lens);
142 struct Object *camera_ob);
168 float r_location_world[3]);
172 #define IS_CLIPPED 12000
201 #define V3D_PROJ_TEST_CLIP_DEFAULT \
202 (V3D_PROJ_TEST_CLIP_BB | V3D_PROJ_TEST_CLIP_WIN | V3D_PROJ_TEST_CLIP_NEAR)
203 #define V3D_PROJ_TEST_ALL \
204 (V3D_PROJ_TEST_CLIP_DEFAULT | V3D_PROJ_TEST_CLIP_FAR | V3D_PROJ_TEST_CLIP_ZERO)
211 void (*func)(
void *userData,
struct MVert *eve,
const float screen_co[2],
int index),
216 void (*func)(
void *userData,
struct BMVert *eve,
const float screen_co[2],
int index),
220 void (*func)(
void *userData,
222 const float screen_co_a[2],
223 const float screen_co_b[2],
229 void (*func)(
void *userData,
231 const float screen_co_a[2],
232 const float screen_co_b[2],
239 void (*func)(
void *userData,
struct BMFace *efa,
const float screen_co[2],
int index),
243 void (*func)(
void *userData,
249 const float screen_co[2]),
253 void (*func)(
void *userData,
255 const float screen_co[2]),
259 void (*func)(
void *userData,
261 const float screen_co[2]),
265 void (*func)(
void *userData,
267 const float screen_co_a[2],
268 const float screen_co_b[2]),
272 void (*func)(
void *userData,
274 const float screen_co_a[2],
275 const float screen_co_b[2]),
294 float perspmat[4][4],
310 float perspmat[4][4],
326 float perspmat[4][4],
357 float r_ray_normal[3],
358 float r_ray_start[3],
362 float r_ray_start[3],
363 float r_ray_normal[3]);
365 const float coord[3],
369 const float depth_pt[3],
374 const float depth_pt[3],
378 const float plane[4],
383 const float plane[4],
386 const float plane_fallback[4],
389 const float plane[4],
403 float r_ray_start[3],
410 const float obmat[4][4],
415 const struct ARegion *region,
float regionx,
float regiony,
float regionz,
float world[3]);
425 const bool use_ortho_factor);
431 struct rctf *r_viewplane,
443 struct rctf *r_viewborder,
444 const bool no_shift);
464 const struct rcti *rect);
470 const bool is_local);
478 const bool use_aspect,
481 void imm_drawcircball(
const float cent[3],
float rad,
const float tmat[4][4],
unsigned int pos);
493 float mouse_worldloc[3],
494 const bool alphaoverride,
495 const float fallback_depth_pt[3]);
499 float mouse_worldloc[3],
501 const float *force_depth);
504 const int mval_sta[2],
505 const int mval_end[2],
510 #define MAXPICKELEMS 2500
511 #define MAXPICKBUF (4 * MAXPICKELEMS)
532 const struct Object *obact);
539 unsigned int bufsize,
540 const struct rcti *input,
545 unsigned int bufsize,
546 const struct rcti *input,
563 const float screen_co_a[2],
564 const float screen_co_b[2]);
582 # define ED_view3d_clear_mats_rv3d(rv3d) (void)(rv3d)
583 # define ED_view3d_check_mats_rv3d(rv3d) (void)(rv3d)
603 const float viewmat[4][4],
604 const float winmat[4][4],
605 const struct rcti *rect);
615 const float viewmat[4][4],
616 const float winmat[4][4],
617 const struct rcti *rect,
623 char *r_view_axis_rotation);
653 const bool calc_dist);
665 const bool do_rotate,
666 const bool do_translate);
670 const bool do_rotate,
671 const bool do_translate);
675 #define VIEW3D_MARGIN 1.4f
676 #define VIEW3D_DIST_FALLBACK 1.0f
680 const float fallback_dist);
683 const float dist_co[3],
684 const float dist_min);
689 const char **r_grid_unit);
693 float *r_grid_steps);
697 const char **r_grid_unit);
705 #define XRAY_ALPHA(v3d) \
706 (((v3d)->shading.type == OB_WIRE) ? (v3d)->shading.xray_alpha_wire : (v3d)->shading.xray_alpha)
707 #define XRAY_FLAG(v3d) \
708 (((v3d)->shading.type == OB_WIRE) ? V3D_SHADING_XRAY_WIREFRAME : V3D_SHADING_XRAY)
709 #define XRAY_FLAG_ENABLED(v3d) (((v3d)->shading.flag & XRAY_FLAG(v3d)) != 0)
710 #define XRAY_ENABLED(v3d) (XRAY_FLAG_ENABLED(v3d) && (XRAY_ALPHA(v3d) < 1.0f))
711 #define XRAY_ACTIVE(v3d) (XRAY_ENABLED(v3d) && ((v3d)->shading.type < OB_MATERIAL))
719 const bool do_foreground,
720 const bool do_camera_frame);
725 struct Base **r_base,
731 const char *category_override);
737 #ifdef WITH_XR_OPENXR
738 void ED_view3d_xr_mirror_update(
const struct ScrArea *
area,
744 bool ED_view3d_is_region_xr_mirror_active(
const struct wmWindowManager *wm,
struct Depsgraph Depsgraph
bool ED_view3d_win_to_segment_clipped(struct Depsgraph *depsgraph, const struct ARegion *region, struct View3D *v3d, const float mval[2], float r_ray_start[3], float r_ray_end[3], const bool do_clip)
void ED_view3d_depth_tag_update(struct RegionView3D *rv3d)
eV3DProjStatus ED_view3d_project_int_object(const struct ARegion *region, const float co[3], int r_co[2], const eV3DProjTest flag)
float ED_view3d_radius_to_dist_ortho(const float lens, const float radius)
bool ED_view3d_win_to_3d_on_plane(const struct ARegion *region, const float plane[4], const float mval[2], const bool do_clip, float r_out[3])
void ED_view3d_stop_render_preview(struct wmWindowManager *wm, struct ARegion *region)
void nurbs_foreachScreenVert(struct ViewContext *vc, void(*func)(void *userData, struct Nurb *nu, struct BPoint *bp, struct BezTriple *bezt, int beztindex, bool handle_visible, const float screen_co[2]), void *userData, const eV3DProjTest clip_flag)
void ED_view3d_persp_switch_from_camera(const struct Depsgraph *depsgraph, struct View3D *v3d, struct RegionView3D *rv3d, const char persp)
bool ED_view3d_depth_read_cached(const ViewDepths *vd, const int mval[2], int margin, float *r_depth)
bool ED_view3d_camera_lock_sync(const struct Depsgraph *depsgraph, struct View3D *v3d, struct RegionView3D *rv3d)
eV3DProjStatus ED_view3d_project_int_global(const struct ARegion *region, const float co[3], int r_co[2], const eV3DProjTest flag)
void armature_foreachScreenBone(struct ViewContext *vc, void(*func)(void *userData, struct EditBone *ebone, const float screen_co_a[2], const float screen_co_b[2]), void *userData, const eV3DProjTest clip_flag)
bool ED_view3d_area_user_region(const struct ScrArea *area, const struct View3D *v3d, struct ARegion **r_region)
void ED_view3d_calc_camera_border(const struct Scene *scene, struct Depsgraph *depsgraph, const struct ARegion *region, const struct View3D *v3d, const struct RegionView3D *rv3d, struct rctf *r_viewborder, const bool no_shift)
void view3d_opengl_select_cache_end(void)
float ED_view3d_radius_to_dist(const struct View3D *v3d, const struct ARegion *region, const struct Depsgraph *depsgraph, const char persp, const bool use_aspect, const float radius)
void ED_view3d_mats_rv3d_restore(struct RegionView3D *rv3d, struct RV3DMatrixStore *rv3dmat)
eV3DProjStatus ED_view3d_project_base(const struct ARegion *region, struct Base *base)
void ED_view3d_calc_camera_border_size(const struct Scene *scene, struct Depsgraph *depsgraph, const struct ARegion *region, const struct View3D *v3d, const struct RegionView3D *rv3d, float r_size[2])
bool ED_view3d_clipping_clamp_minmax(const struct RegionView3D *rv3d, float min[3], float max[3])
void ED_view3d_local_collections_reset(struct bContext *C, const bool reset_all)
struct RenderEngineType * ED_view3d_engine_type(const struct Scene *scene, int drawtype)
char ED_view3d_axis_view_opposite(char view)
void ED_view3d_init_mats_rv3d(struct Object *ob, struct RegionView3D *rv3d)
float ED_view3d_pixel_size(const struct RegionView3D *rv3d, const float co[3])
void mball_foreachScreenElem(struct ViewContext *vc, void(*func)(void *userData, struct MetaElem *ml, const float screen_co[2]), void *userData, const eV3DProjTest clip_flag)
@ V3D_PROJ_TEST_CLIP_NEAR
@ V3D_PROJ_TEST_CLIP_ZERO
void ED_view3d_win_to_3d_int(const struct View3D *v3d, const struct ARegion *region, const float depth_pt[3], const int mval[2], float r_out[3])
bool ED_view3d_viewplane_get(struct Depsgraph *depsgraph, const struct View3D *v3d, const struct RegionView3D *rv3d, int winxi, int winyi, struct rctf *r_viewplane, float *r_clipsta, float *r_clipend, float *r_pixsize)
bool ED_view3d_win_to_3d_on_plane_with_fallback(const struct ARegion *region, const float plane[4], const float mval[2], const bool do_clip, const float plane_fallback[4], float r_out[3])
bool ED_view3d_camera_lock_check(const struct View3D *v3d, const struct RegionView3D *rv3d)
eV3DProjStatus ED_view3d_project_short_object(const struct ARegion *region, const float co[3], short r_co[2], const eV3DProjTest flag)
#define ED_view3d_clear_mats_rv3d(rv3d)
void ED_view3d_ob_project_mat_get(const struct RegionView3D *v3d, struct Object *ob, float r_pmat[4][4])
bool ED_view3d_clip_segment(const struct RegionView3D *rv3d, float ray_start[3], float ray_end[3])
void ED_view3d_cursor3d_position_rotation(struct bContext *C, const int mval[2], const bool use_depth, enum eV3DCursorOrient orientation, float r_cursor_co[3], float r_cursor_quat[4])
void ED_view3d_ob_project_mat_get_from_obmat(const struct RegionView3D *rv3d, const float obmat[4][4], float r_pmat[4][4])
eV3DProjStatus ED_view3d_project_float_object(const struct ARegion *region, const float co[3], float r_co[2], const eV3DProjTest flag)
char ED_view3d_lock_view_from_index(int index)
bool ED_operator_rv3d_user_region_poll(struct bContext *C)
void ED_view3d_viewcontext_init(struct bContext *C, struct ViewContext *vc, struct Depsgraph *depsgraph)
bool ED_view3d_quat_to_axis_view(const float viewquat[4], const float epsilon, char *r_view, char *r_view_axis_rotation)
bool ED_view3d_win_to_3d_on_plane_int(const struct ARegion *region, const float plane[4], const int mval[2], const bool do_clip, float r_out[3])
void ED_view3d_dist_range_get(const struct View3D *v3d, float r_dist_range[2])
struct Base * ED_view3d_give_base_under_cursor(struct bContext *C, const int mval[2])
bool ED_view3d_camera_to_view_selected(struct Main *bmain, struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *camera_ob)
void ED_view3d_win_to_delta(const struct ARegion *region, const float mval[2], float out[3], const float zfac)
bool ED_view3d_distance_set_from_location(struct RegionView3D *rv3d, const float dist_co[3], const float dist_min)
void ED_view3d_win_to_ray(const struct ARegion *region, const float mval[2], float r_ray_start[3], float r_ray_normal[3])
void ED_view3d_polygon_offset(const struct RegionView3D *rv3d, const float dist)
eV3DProjStatus ED_view3d_project_short_global(const struct ARegion *region, const float co[3], short r_co[2], const eV3DProjTest flag)
bool ED_view3d_depth_read_cached_normal(const ViewContext *vc, const int mval[2], float r_normal[3])
float ED_view3d_pixel_size_no_ui_scale(const struct RegionView3D *rv3d, const float co[3])
float ED_scene_grid_scale(const struct Scene *scene, const char **r_grid_unit)
bool ED_view3d_quat_from_axis_view(const char view, const char view_axis_roll, float r_quat[4])
float ED_view3d_grid_scale(const struct Scene *scene, struct View3D *v3d, const char **r_grid_unit)
void ED_view3d_viewcontext_init_object(struct ViewContext *vc, struct Object *obact)
void ED_scene_draw_fps(const struct Scene *scene, int xoffset, int *yoffset)
void ED_view3d_draw_bgpic_test(const struct Scene *scene, struct Depsgraph *depsgraph, struct ARegion *region, struct View3D *v3d, const bool do_foreground, const bool do_camera_frame)
void meshobject_foreachScreenVert(struct ViewContext *vc, void(*func)(void *userData, struct MVert *eve, const float screen_co[2], int index), void *userData, const eV3DProjTest clip_flag)
bool ED_view3d_offset_lock_check(const struct View3D *v3d, const struct RegionView3D *rv3d)
float ED_view3d_radius_to_dist_persp(const float angle, const float radius)
void ED_view3d_buttons_region_layout_ex(const struct bContext *C, struct ARegion *region, const char *category_override)
void ED_view3d_from_m4(const float mat[4][4], float ofs[3], float quat[4], const float *dist)
bool ED_view3d_local_collections_set(struct Main *bmain, struct View3D *v3d)
void ED_view3d_draw_setup_view(const struct wmWindowManager *wm, struct wmWindow *win, struct Depsgraph *depsgraph, struct Scene *scene, struct ARegion *region, struct View3D *v3d, const float viewmat[4][4], const float winmat[4][4], const struct rcti *rect)
bool ED_view3d_persp_ensure(const struct Depsgraph *depsgraph, struct View3D *v3d, struct ARegion *region)
void ED_view3d_clipping_calc_from_boundbox(float clip[6][4], const struct BoundBox *clipbb, const bool is_flip)
bool ED_view3d_is_object_under_cursor(struct bContext *C, const int mval[2])
void ED_view3d_from_object(const struct Object *ob, float ofs[3], float quat[4], float *dist, float *lens)
eV3DProjStatus ED_view3d_project_int_ex(const struct ARegion *region, float perspmat[4][4], const bool is_local, const float co[3], int r_co[2], const eV3DProjTest flag)
bool ED_view3d_context_activate(struct bContext *C)
float ED_view3d_offset_distance(const float mat[4][4], const float ofs[3], const float fallback_dist)
bool ED_view3d_camera_lock_autokey(struct View3D *v3d, struct RegionView3D *rv3d, struct bContext *C, const bool do_rotate, const bool do_translate)
void ED_view3d_cursor3d_position(struct bContext *C, const int mval[2], const bool use_depth, float r_cursor_co[3])
void ED_view3d_win_to_vector(const struct ARegion *region, const float mval[2], float out[3])
void mesh_foreachScreenFace(struct ViewContext *vc, void(*func)(void *userData, struct BMFace *efa, const float screen_co[2], int index), void *userData, const eV3DProjTest clip_flag)
bool ED_view3d_depth_unproject(const struct ARegion *region, const int mval[2], const double depth, float r_location_world[3])
void ED_view3d_project_float_v3_m4(const struct ARegion *region, const float co[3], float r_co[3], float mat[4][4])
void ED_view3d_select_id_validate(struct ViewContext *vc)
void mesh_foreachScreenVert(struct ViewContext *vc, void(*func)(void *userData, struct BMVert *eve, const float screen_co[2], int index), void *userData, const eV3DProjTest clip_flag)
void ED_view3d_project(const struct ARegion *region, const float world[3], float r_region_co[3])
void ED_view3d_camera_lock_init_ex(const struct Depsgraph *depsgraph, struct View3D *v3d, struct RegionView3D *rv3d, const bool calc_dist)
struct ViewDepths ViewDepths
void ED_view3d_distance_set(struct RegionView3D *rv3d, const float dist)
void ED_view3d_update_viewmat(struct Depsgraph *depsgraph, const struct Scene *scene, struct View3D *v3d, struct ARegion *region, const float viewmat[4][4], const float winmat[4][4], const struct rcti *rect, bool offscreen)
bool ED_view3d_autodist(struct Depsgraph *depsgraph, struct ARegion *region, struct View3D *v3d, const int mval[2], float mouse_worldloc[3], const bool alphaoverride, const float fallback_depth_pt[3])
void ED_view3d_gizmo_mesh_preselect_get_active(struct bContext *C, struct wmGizmo *gz, struct Base **r_base, struct BMElem **r_ele)
struct ViewContext ViewContext
void imm_drawcircball(const float cent[3], float rad, const float tmat[4][4], unsigned int pos)
void view3d_opengl_select_cache_begin(void)
@ V3D_CURSOR_ORIENT_XFORM
void ED_view3d_global_to_vector(const struct RegionView3D *rv3d, const float coord[3], float vec[3])
void ED_view3d_depth_override(struct Depsgraph *depsgraph, struct ARegion *region, struct View3D *v3d, struct Object *obact, eV3DDepthOverrideMode mode, bool update_cache)
eV3DProjStatus ED_view3d_project_short_ex(const struct ARegion *region, float perspmat[4][4], const bool is_local, const float co[3], short r_co[2], const eV3DProjTest flag)
struct Camera * ED_view3d_camera_data_get(struct View3D *v3d, struct RegionView3D *rv3d)
void ED_view3d_project_float_v2_m4(const struct ARegion *region, const float co[3], float r_co[2], float mat[4][4])
void ED_view3d_to_object(const struct Depsgraph *depsgraph, struct Object *ob, const float ofs[3], const float quat[4], const float dist)
void ED_view3d_cursor3d_update(struct bContext *C, const int mval[2], const bool use_depth, enum eV3DCursorOrient orientation)
float ED_view3d_grid_view_scale(struct Scene *scene, struct View3D *v3d, struct ARegion *region, const char **r_grid_unit)
@ VIEW3D_SELECT_PICK_NEAREST
void view3d_region_operator_needs_opengl(struct wmWindow *win, struct ARegion *region)
bool ED_view3d_clip_range_get(struct Depsgraph *depsgraph, const struct View3D *v3d, const struct RegionView3D *rv3d, float *r_clipsta, float *r_clipend, const bool use_ortho_factor)
bool ED_view3d_autodist_simple(struct ARegion *region, const int mval[2], float mouse_worldloc[3], int margin, const float *force_depth)
void ED_view3d_clipping_calc(struct BoundBox *bb, float planes[4][4], const struct ARegion *region, const struct Object *ob, const struct rcti *rect)
void ED_view3d_win_to_origin(const struct ARegion *region, const float mval[2], float out[3])
void ED_view3d_lastview_store(struct RegionView3D *rv3d)
void ED_view3d_win_to_3d(const struct View3D *v3d, const struct ARegion *region, const float depth_pt[3], const float mval[2], float r_out[3])
bool ED_view3d_camera_autokey(const struct Scene *scene, struct ID *id_key, struct bContext *C, const bool do_rotate, const bool do_translate)
int view3d_opengl_select(struct ViewContext *vc, unsigned int *buffer, unsigned int bufsize, const struct rcti *input, eV3DSelectMode select_mode, eV3DSelectObjectFilter select_filter)
bool ED_view3d_lock(struct RegionView3D *rv3d)
eV3DSelectObjectFilter ED_view3d_select_filter_from_mode(const struct Scene *scene, const struct Object *obact)
eV3DProjStatus ED_view3d_project_float_ex(const struct ARegion *region, float perspmat[4][4], const bool is_local, const float co[3], float r_co[2], const eV3DProjTest flag)
void ED_view3d_clipping_local(struct RegionView3D *rv3d, const float mat[4][4])
void ED_view3d_camera_lock_init(const struct Depsgraph *depsgraph, struct View3D *v3d, struct RegionView3D *rv3d)
void lattice_foreachScreenVert(struct ViewContext *vc, void(*func)(void *userData, struct BPoint *bp, const float screen_co[2]), void *userData, const eV3DProjTest clip_flag)
void ED_view3d_background_color_get(const struct Scene *scene, const struct View3D *v3d, float r_color[3])
void view3d_operator_needs_opengl(const struct bContext *C)
void ED_view3d_screen_datamask(const struct bContext *C, const struct Scene *scene, const struct bScreen *screen, struct CustomData_MeshMasks *r_cddata_masks)
struct RegionView3D * ED_view3d_context_rv3d(struct bContext *C)
void pose_foreachScreenBone(struct ViewContext *vc, void(*func)(void *userData, struct bPoseChannel *pchan, const float screen_co_a[2], const float screen_co_b[2]), void *userData, const eV3DProjTest clip_flag)
bool ED_view3d_clipping_test(const struct RegionView3D *rv3d, const float co[3], const bool is_local)
void ED_view3d_grid_steps(const struct Scene *scene, struct View3D *v3d, struct RegionView3D *rv3d, float *r_grid_steps)
bool ED_view3d_unproject(const struct ARegion *region, float regionx, float regiony, float regionz, float world[3])
struct RV3DMatrixStore * ED_view3d_mats_rv3d_backup(struct RegionView3D *rv3d)
void mesh_foreachScreenEdge_clip_bb_segment(struct ViewContext *vc, void(*func)(void *userData, struct BMEdge *eed, const float screen_co_a[2], const float screen_co_b[2], int index), void *userData, const eV3DProjTest clip_flag)
bool edge_inside_circle(const float cent[2], float radius, const float screen_co_a[2], const float screen_co_b[2])
eV3DProjStatus ED_view3d_project_float_global(const struct ARegion *region, const float co[3], float r_co[2], const eV3DProjTest flag)
void ED_view3d_shade_update(struct Main *bmain, struct View3D *v3d, struct ScrArea *area)
bool ED_view3d_context_user_region(struct bContext *C, struct View3D **r_v3d, struct ARegion **r_region)
void ED_view3d_to_m4(float mat[4][4], const float ofs[3], const float quat[4], const float dist)
void ED_view3d_lock_clear(struct View3D *v3d)
@ VIEW3D_SELECT_FILTER_NOP
@ VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK
@ VIEW3D_SELECT_FILTER_WPAINT_POSE_MODE_LOCK
void ED_draw_object_facemap(struct Depsgraph *depsgraph, struct Object *ob, const float col[4], const int facemap)
bool ED_view3d_win_to_ray_clipped_ex(struct Depsgraph *depsgraph, const struct ARegion *region, const struct View3D *v3d, const float mval[2], float r_ray_co[3], float r_ray_normal[3], float r_ray_start[3], bool do_clip)
bool ED_view3d_calc_render_border(const struct Scene *scene, struct Depsgraph *depsgraph, struct View3D *v3d, struct ARegion *region, struct rcti *rect)
float ED_view3d_select_dist_px(void)
void ED_view3d_quadview_update(struct ScrArea *area, struct ARegion *region, bool do_clip)
#define ED_view3d_check_mats_rv3d(rv3d)
void ED_view3d_backbuf_depth_validate(struct ViewContext *vc)
float ED_view3d_calc_zfac(const struct RegionView3D *rv3d, const float co[3], bool *r_flip)
struct Object * ED_view3d_give_object_under_cursor(struct bContext *C, const int mval[2])
bool ED_view3d_win_to_ray_clipped(struct Depsgraph *depsgraph, const struct ARegion *region, const struct View3D *v3d, const float mval[2], float ray_start[3], float ray_normal[3], const bool do_clip)
void ED_view3d_datamask(const struct bContext *C, const struct Scene *scene, const struct View3D *v3d, struct CustomData_MeshMasks *r_cddata_masks)
void ED_view3d_init_mats_rv3d_gl(struct Object *ob, struct RegionView3D *rv3d)
void mesh_foreachScreenEdge(struct ViewContext *vc, void(*func)(void *userData, struct BMEdge *eed, const float screen_co_a[2], const float screen_co_b[2], int index), void *userData, const eV3DProjTest clip_flag)
bool ED_view3d_has_workbench_in_texture_color(const struct Scene *scene, const struct Object *ob, const struct View3D *v3d)
bool ED_view3d_autodist_depth_seg(struct ARegion *region, const int mval_sta[2], const int mval_end[2], int margin, float *depth)
int ED_view3d_backbuf_sample_size_clamp(struct ARegion *region, const float dist)
int view3d_opengl_select_with_id_filter(struct ViewContext *vc, unsigned int *buffer, unsigned int bufsize, const struct rcti *input, eV3DSelectMode select_mode, eV3DSelectObjectFilter select_filter, uint select_id)
bool ED_view3d_autodist_depth(struct ARegion *region, const int mval[2], int margin, float *depth)
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
const Depsgraph * depsgraph
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer
static void area(int d1, int d2, int e1, int e2, float weights[2])
struct Depsgraph * depsgraph
struct ViewLayer * view_layer
struct RegionView3D * rv3d