Blender
V3.3
|
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 struct TransVertStore TransVertStore |
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 |
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 |
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.
Referenced by ED_view3d_minmax_verts(), snap_curs_to_sel_ex(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_transverts_create_from_obedit | ( | TransVertStore * | tvs, |
const struct Object * | obedit, | ||
int | mode | ||
) |
obedit | When 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().
void ED_transverts_free | ( | TransVertStore * | tvs | ) |
Definition at line 495 of file ed_transverts.c.
References MEM_SAFE_FREE, TransVertStore::transverts, and TransVertStore::transverts_tot.
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().
Definition at line 501 of file ed_transverts.c.
References C, CTX_data_edit_object(), and ED_transverts_check_obedit().
Referenced by TRANSFORM_OT_vertex_random(), and TRANSFORM_OT_vertex_warp().
void ED_transverts_update_obedit | ( | TransVertStore * | tvs, |
struct Object * | obedit | ||
) |
Definition at line 37 of file ed_transverts.c.
References Freestyle::a, add_v3_v3(), ARM_MIRROR_EDIT, Nurb::bezt, BKE_curve_editNurbs_get(), BKE_editmesh_from_object(), BKE_nurb_handles_test(), BKE_nurb_project_2d(), BLI_assert, BMEditMesh::bm, BM_mesh_normals_update(), BONE_CONNECTED, BONE_ROOTSEL, BONE_TIPSEL, copy_v3_v3(), CU_IS_2D, Object::data, DEG_id_tag_update(), ED_armature_edit_transform_mirror_update(), ED_transverts_check_obedit(), bArmature::edbo, Lattice::editlatt, ELEM, BezTriple::f1, BezTriple::f2, BezTriple::f3, ListBase::first, EditBone::flag, bArmature::flag, Lattice::flag, EditBone::head, BezTriple::hide, ID_RECALC_GEOMETRY, EditLatt::latt, TransVert::loc, LT_OUTSIDE, TransVertStore::mode, EditBone::next, Nurb::next, OB_ARMATURE, OB_CURVES_LEGACY, OB_LATTICE, OB_MESH, OB_SURF, TransVert::oldloc, outside_lattice(), EditBone::parent, Nurb::pntsu, SELECT, sub_v3_v3v3(), EditBone::tail, TM_SKIP_HANDLES, TransVertStore::transverts, Object::type, v, and BezTriple::vec.
Referenced by object_rand_verts_exec(), object_warp_verts_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().