Blender  V3.3
Classes | Typedefs | Enumerations | Functions
ED_transverts.h File Reference

Go to the source code of this file.

Classes

struct  TransVert
 
struct  TransVertStore
 

Typedefs

typedef struct TransVert TransVert
 
typedef struct TransVertStore TransVertStore
 

Enumerations

enum  { TM_INDEX_ON = 1 , TM_INDEX_OFF = 0 , TM_INDEX_SKIP = -1 }
 
enum  { TM_ALL_JOINTS = (1 << 0) , TM_SKIP_HANDLES = (1 << 1) , TM_CALC_NORMALS = (1 << 2) , TM_CALC_MAPLOC = (1 << 2) }
 
enum  { TX_VERT_USE_MAPLOC = (1 << 1) , TX_VERT_USE_NORMAL = (1 << 2) }
 

Functions

void ED_transverts_create_from_obedit (TransVertStore *tvs, const struct Object *obedit, int mode)
 
void ED_transverts_update_obedit (TransVertStore *tvs, struct Object *obedit)
 
void ED_transverts_free (TransVertStore *tvs)
 
bool ED_transverts_check_obedit (const struct Object *obedit)
 
bool ED_transverts_poll (struct bContext *C)
 

Typedef Documentation

◆ TransVert

typedef struct TransVert TransVert

◆ TransVertStore

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TM_INDEX_ON 

Tag to make trans verts.

TM_INDEX_OFF 

Don't make verts.

TM_INDEX_SKIP 

Don't make verts (when the index values point to trans-verts).

Definition at line 41 of file ED_transverts.h.

◆ anonymous enum

anonymous enum
Enumerator
TM_ALL_JOINTS 

all joints (for bones only)

TM_SKIP_HANDLES 

skip handles when control point is selected (for curves only)

TM_CALC_NORMALS 

fill in normals when available

TM_CALC_MAPLOC 

Calculates TransVert.maploc where possible.

Definition at line 51 of file ED_transverts.h.

◆ anonymous enum

anonymous enum
Enumerator
TX_VERT_USE_MAPLOC 

Calculated when TM_CALC_MAPLOC is set.

TX_VERT_USE_NORMAL 

Calculated when TM_CALC_NORMALS is set, avoid nonzero check.

Definition at line 62 of file ED_transverts.h.

Function Documentation

◆ ED_transverts_check_obedit()

bool ED_transverts_check_obedit ( const struct Object obedit)

◆ ED_transverts_create_from_obedit()

void ED_transverts_create_from_obedit ( TransVertStore tvs,
const struct Object obedit,
int  mode 
)
Parameters
obeditWhen mode has the TM_CALC_MAPLOC flag set, obedit must be evaluated, to access evaluated vertices.

Referenced by ED_view3d_minmax_verts(), object_rand_verts_exec(), object_warp_verts_exec(), snap_curs_to_sel_ex(), snap_sel_to_grid_exec(), and snap_selected_to_location().

◆ ED_transverts_free()

void ED_transverts_free ( TransVertStore tvs)

◆ ED_transverts_poll()

bool ED_transverts_poll ( struct bContext C)

◆ ED_transverts_update_obedit()

void ED_transverts_update_obedit ( TransVertStore tvs,
struct Object obedit 
)