Blender V2.61 - r43446
Classes | Typedefs | Functions

uvproject.c File Reference

#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_camera_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_uvproject.h"

Go to the source code of this file.

Classes

struct  UvCameraInfo

Typedefs

typedef struct UvCameraInfo UvCameraInfo

Functions

void project_from_camera (float target[2], float source[3], UvCameraInfo *uci)
void project_from_view (float target[2], float source[3], float persmat[4][4], float rotmat[4][4], float winx, float winy)
UvCameraInfoproject_camera_info (Object *ob, float(*rotmat)[4], float winx, float winy)
void project_from_view_ortho (float target[2], float source[3], float rotmat[4][4])
void project_camera_info_scale (UvCameraInfo *uci, float scale_x, float scale_y)

Detailed Description

Definition in file uvproject.c.


Typedef Documentation

typedef struct UvCameraInfo UvCameraInfo

Function Documentation

UvCameraInfo* project_camera_info ( Object ob,
float(*)  rotmat[4],
float  winx,
float  winy 
)
void project_camera_info_scale ( UvCameraInfo uci,
float  scale_x,
float  scale_y 
)

Definition at line 197 of file uvproject.c.

References UvCameraInfo::xasp, and UvCameraInfo::yasp.

Referenced by uvprojectModifier_do().

void project_from_camera ( float  target[2],
float  source[3],
UvCameraInfo uci 
)
void project_from_view ( float  target[2],
float  source[3],
float  persmat[4][4],
float  rotmat[4][4],
float  winx,
float  winy 
)

Definition at line 96 of file uvproject.c.

References copy_v3_v3(), fabsf, mul_m4_v4(), and mul_v3_m4v3().

Referenced by uv_from_view_exec().

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

Definition at line 185 of file uvproject.c.

References mul_v3_m4v3().

Referenced by uv_from_view_exec().