Blender V5.3
view3d_project.cc File Reference
#include "DNA_layer_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "DNA_view3d_types.h"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "GPU_matrix.hh"
#include "ED_view3d.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BL_ZERO_CLIP   0.001

Functions

float2 blender::ED_view3d_project_float_v2_m4 (const ARegion *region, const float co[3], const float4x4 &mat)
void blender::ED_view3d_project_float_v3_m4 (const ARegion *region, const float co[3], float r_co[3], const float mat[4][4])
eV3DProjStatus blender::ED_view3d_project_base (const ARegion *region, Base *base, float r_co[2])
static eV3DProjStatus blender::ed_view3d_project__internal (const ARegion *region, const float perspmat[4][4], const bool is_local, const float co[3], float r_co[2], const eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_short_ex (const ARegion *region, float perspmat[4][4], bool is_local, const float co[3], short r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_int_ex (const ARegion *region, float perspmat[4][4], bool is_local, const float co[3], int r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_float_ex (const ARegion *region, float perspmat[4][4], bool is_local, const float co[3], float r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_short_global (const ARegion *region, const float co[3], short r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_short_object (const ARegion *region, const float co[3], short r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_int_global (const ARegion *region, const float co[3], int r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_int_object (const ARegion *region, const float co[3], int r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_float_global (const ARegion *region, const float co[3], float r_co[2], eV3DProjTest flag)
eV3DProjStatus blender::ED_view3d_project_float_object (const ARegion *region, const float co[3], float r_co[2], eV3DProjTest flag)
float blender::ED_view3d_pixel_size (const RegionView3D *rv3d, const float co[3])
float blender::ED_view3d_pixel_size_no_ui_scale (const RegionView3D *rv3d, const float co[3])
float blender::ED_view3d_calc_zfac_ex (const RegionView3D *rv3d, const float co[3], bool *r_flip)
float blender::ED_view3d_calc_zfac (const RegionView3D *rv3d, const float co[3])
float blender::ED_view3d_calc_depth_for_comparison (const RegionView3D *rv3d, const float co[3])
static void blender::view3d_win_to_ray_segment (const Depsgraph *depsgraph, const ARegion *region, const View3D *v3d, const float mval[2], float r_ray_co[3], float r_ray_dir[3], float r_ray_start[3], float r_ray_end[3])
bool blender::ED_view3d_clip_segment (const RegionView3D *rv3d, float ray_start[3], float ray_end[3])
bool blender::ED_view3d_win_to_ray_clipped_ex (Depsgraph *depsgraph, const ARegion *region, const View3D *v3d, const float mval[2], const bool do_clip_planes, float r_ray_co[3], float r_ray_normal[3], float r_ray_start[3], float r_ray_end[3])
bool blender::ED_view3d_win_to_ray_clipped (Depsgraph *depsgraph, const ARegion *region, const View3D *v3d, const float mval[2], float r_ray_start[3], float r_ray_normal[3], bool do_clip_planes)
void blender::ED_view3d_win_to_ray (const ARegion *region, const float mval[2], float r_ray_start[3], float r_ray_normal[3])
void blender::ED_view3d_global_to_vector (const RegionView3D *rv3d, const float coord[3], float r_out[3])
void blender::ED_view3d_win_to_3d (const View3D *v3d, const ARegion *region, const float depth_pt[3], const float mval[2], float r_out[3])
void blender::ED_view3d_win_to_3d_with_shift (const View3D *v3d, const ARegion *region, const float depth_pt[3], const float mval[2], float r_out[3])
void blender::ED_view3d_win_to_3d_int (const View3D *v3d, const ARegion *region, const float depth_pt[3], const int mval[2], float r_out[3])
bool blender::ED_view3d_win_to_3d_on_plane (const ARegion *region, const float plane[4], const float mval[2], bool do_clip, float r_out[3])
bool blender::ED_view3d_win_to_3d_on_plane_int (const ARegion *region, const float plane[4], const int mval[2], bool do_clip, float r_out[3])
bool blender::ED_view3d_win_to_3d_on_plane_with_fallback (const ARegion *region, const float plane[4], const float mval[2], bool do_clip, const float plane_fallback[4], float r_out[3])
void blender::ED_view3d_win_to_delta (const ARegion *region, const float xy_delta[2], float zfac, float r_out[3], bool precise=false)
void blender::ED_view3d_win_to_origin (const ARegion *region, const float mval[2], float r_out[3])
void blender::ED_view3d_win_to_vector (const ARegion *region, const float mval[2], float r_out[3])
bool blender::ED_view3d_win_to_segment_clipped (const Depsgraph *depsgraph, const ARegion *region, const View3D *v3d, const float mval[2], float r_ray_start[3], float r_ray_end[3], bool do_clip_planes)
Utility functions for projection
float4x4 blender::ED_view3d_ob_project_mat_get (const RegionView3D *rv3d, const Object *ob)
float4x4 blender::ED_view3d_ob_project_mat_get_from_obmat (const RegionView3D *rv3d, const float4x4 &obmat)
void blender::ED_view3d_project_v3 (const ARegion *region, const float world[3], float r_region_co[3])
void blender::ED_view3d_project_v2 (const ARegion *region, const float world[3], float r_region_co[2])
bool blender::ED_view3d_unproject_v3 (const ARegion *region, float regionx, float regiony, float regionz, float world[3])

Macro Definition Documentation

◆ BL_ZERO_CLIP

#define BL_ZERO_CLIP   0.001

Definition at line 27 of file view3d_project.cc.

Referenced by blender::ed_view3d_project__internal().