Blender  V3.3
Functions
BLI_uvproject.h File Reference

Go to the source code of this file.

Functions

struct ProjCameraInfoBLI_uvproject_camera_info (struct Object *ob, float rotmat[4][4], float winx, float winy)
 
void BLI_uvproject_from_camera (float target[2], float source[3], struct ProjCameraInfo *uci)
 
void BLI_uvproject_from_view (float target[2], float source[3], float persmat[4][4], float rotmat[4][4], float winx, float winy)
 
void BLI_uvproject_from_view_ortho (float target[2], float source[3], const float rotmat[4][4])
 
void BLI_uvproject_camera_info_scale (struct ProjCameraInfo *uci, float scale_x, float scale_y)
 

Function Documentation

◆ BLI_uvproject_camera_info()

struct ProjCameraInfo* BLI_uvproject_camera_info ( struct Object ob,
float  rotmat[4][4],
float  winx,
float  winy 
)

◆ BLI_uvproject_camera_info_scale()

void BLI_uvproject_camera_info_scale ( struct ProjCameraInfo uci,
float  scale_x,
float  scale_y 
)

So we can adjust scale with keeping the struct private.

Definition at line 180 of file uvproject.c.

References ProjCameraInfo::xasp, and ProjCameraInfo::yasp.

Referenced by uvprojectModifier_do().

◆ BLI_uvproject_from_camera()

void BLI_uvproject_from_camera ( float  target[2],
float  source[3],
struct ProjCameraInfo uci 
)

◆ BLI_uvproject_from_view()

void BLI_uvproject_from_view ( float  target[2],
float  source[3],
float  persmat[4][4],
float  rotmat[4][4],
float  winx,
float  winy 
)

Apply uv from perspective matrix.

Parameters
persmatCan be rv3d->persmat.

Definition at line 79 of file uvproject.c.

References copy_v3_v3(), fabsf, mul_m4_v4(), x, and y.

Referenced by uv_from_view_exec().

◆ BLI_uvproject_from_view_ortho()

void BLI_uvproject_from_view_ortho ( float  target[2],
float  source[3],
const float  rotmat[4][4] 
)

Apply orthographic UV's.

Definition at line 169 of file uvproject.c.

References mul_v3_m4v3().

Referenced by uv_from_view_exec().