Blender V2.61 - r43446
|
Go to the source code of this file.
Classes | |
struct | MirrTopoStore_t |
Defines | |
#define | EM_FGON_DRAW 1 |
#define | EM_FGON 2 |
#define | B_CLOCKWISE 1 |
#define | B_KEEPORIG 2 |
#define | B_BEAUTY 4 |
#define | B_SMOOTH 8 |
#define | B_BEAUTY_SHORT 0x10 |
#define | B_AUTOFGON 0x20 |
#define | B_KNIFE 0x80 |
#define | B_PERCENTSUBD 0x40 |
#define | B_JOINTRIA_UV 0x200 |
#define | B_JOINTRIA_VCOL 0X400 |
#define | B_JOINTRIA_SHARP 0X800 |
#define | B_JOINTRIA_MAT 0X1000 |
#define | B_FRACTAL 0x2000 |
#define | B_SPHERE 0x4000 |
#define | WEIGHT_REPLACE 1 |
#define | WEIGHT_ADD 2 |
#define | WEIGHT_SUBTRACT 3 |
Typedefs | |
typedef struct MirrTopoStore_t | MirrTopoStore_t |
Functions | |
intptr_t | mesh_octree_table (struct Object *ob, struct EditMesh *em, float *co, char mode) |
int | mesh_mirrtopo_table (struct Object *ob, char mode) |
struct EditVert * | editmesh_get_x_mirror_vert (struct Object *ob, struct EditMesh *em, struct EditVert *eve, float *co, int index) |
int | mesh_get_x_mirror_vert (struct Object *ob, int index) |
int * | mesh_get_x_mirror_faces (struct Object *ob, struct EditMesh *em) |
int | join_mesh_exec (struct bContext *C, struct wmOperator *op) |
int | join_mesh_shapes_exec (struct bContext *C, struct wmOperator *op) |
void | ED_operatortypes_mesh (void) |
void | ED_operatormacros_mesh (void) |
void | ED_keymap_mesh (struct wmKeyConfig *keyconf) |
void | make_editMesh (struct Scene *scene, struct Object *ob) |
void | load_editMesh (struct Scene *scene, struct Object *ob) |
void | remake_editMesh (struct Scene *scene, struct Object *ob) |
void | free_editMesh (struct EditMesh *em) |
void | recalc_editnormals (struct EditMesh *em) |
void | EM_init_index_arrays (struct EditMesh *em, int forVert, int forEdge, int forFace) |
void | EM_free_index_arrays (void) |
struct EditVert * | EM_get_vert_for_index (int index) |
struct EditEdge * | EM_get_edge_for_index (int index) |
struct EditFace * | EM_get_face_for_index (int index) |
int | EM_texFaceCheck (struct EditMesh *em) |
int | EM_vertColorCheck (struct EditMesh *em) |
void | undo_push_mesh (struct bContext *C, const char *name) |
void | paintvert_flush_flags (struct Object *ob) |
void | paintvert_deselect_all_visible (struct Object *ob, int action, short flush_flags) |
struct EditFace * | EM_get_actFace (struct EditMesh *em, int sloppy) |
void | EM_set_actFace (struct EditMesh *em, struct EditFace *efa) |
float | EM_face_area (struct EditFace *efa) |
void | EM_select_edge (struct EditEdge *eed, int sel) |
void | EM_select_face (struct EditFace *efa, int sel) |
void | EM_select_face_fgon (struct EditMesh *em, struct EditFace *efa, int val) |
void | EM_select_swap (struct EditMesh *em) |
void | EM_toggle_select_all (struct EditMesh *em) |
void | EM_select_all (struct EditMesh *em) |
void | EM_deselect_all (struct EditMesh *em) |
void | EM_selectmode_flush (struct EditMesh *em) |
void | EM_deselect_flush (struct EditMesh *em) |
void | EM_selectmode_set (struct EditMesh *em) |
void | EM_select_flush (struct EditMesh *em) |
void | EM_convertsel (struct EditMesh *em, short oldmode, short selectmode) |
void | EM_validate_selections (struct EditMesh *em) |
void | EM_selectmode_to_scene (struct Scene *scene, struct Object *obedit) |
int | EM_get_actSelection (struct EditMesh *em, struct EditSelection *ese) |
void | EM_editselection_normal (float *normal, struct EditSelection *ese) |
void | EM_editselection_plane (float *plane, struct EditSelection *ese) |
void | EM_editselection_center (float *center, struct EditSelection *ese) |
struct UvVertMap * | EM_make_uv_vert_map (struct EditMesh *em, int selected, int do_face_idx_array, float *limit) |
struct UvMapVert * | EM_get_uv_map_vert (struct UvVertMap *vmap, unsigned int v) |
void | EM_free_uv_vert_map (struct UvVertMap *vmap) |
void | EM_add_data_layer (struct EditMesh *em, struct CustomData *data, int type, const char *name) |
void | EM_free_data_layer (struct EditMesh *em, struct CustomData *data, int type) |
void | EM_make_hq_normals (struct EditMesh *em) |
void | EM_solidify (struct EditMesh *em, float dist) |
int | EM_deselect_nth (struct EditMesh *em, int nth) |
void | EM_project_snap_verts (struct bContext *C, struct ARegion *ar, struct Object *obedit, struct EditMesh *em) |
void | EM_cache_x_mirror_vert (struct Object *ob, struct EditMesh *em) |
int | mouse_mesh (struct bContext *C, const int mval[2], short extend) |
int | EM_check_backbuf (unsigned int index) |
int | EM_mask_init_backbuf_border (struct ViewContext *vc, int mcords[][2], short tot, short xmin, short ymin, short xmax, short ymax) |
void | EM_free_backbuf (void) |
int | EM_init_backbuf_border (struct ViewContext *vc, short xmin, short ymin, short xmax, short ymax) |
int | EM_init_backbuf_circle (struct ViewContext *vc, short xs, short ys, short rads) |
void | EM_hide_mesh (struct EditMesh *em, int swap) |
void | EM_reveal_mesh (struct EditMesh *em) |
void | EM_select_by_material (struct EditMesh *em, int index) |
void | EM_deselect_by_material (struct EditMesh *em, int index) |
void | EM_automerge (struct Scene *scene, struct Object *obedit, int update) |
void | paintface_flush_flags (struct Object *ob) |
struct MTFace * | EM_get_active_mtface (struct EditMesh *em, struct EditFace **act_efa, struct MCol **mcol, int sloppy) |
int | paintface_mouse_select (struct bContext *C, struct Object *ob, const int mval[2], int extend) |
int | do_paintface_box_select (struct ViewContext *vc, struct rcti *rect, int select, int extend) |
void | paintface_deselect_all_visible (struct Object *ob, int action, short flush_flags) |
void | paintface_select_linked (struct bContext *C, struct Object *ob, int mval[2], int mode) |
int | paintface_minmax (struct Object *ob, float *min, float *max) |
void | paintface_hide (struct Object *ob, const int unselected) |
void | paintface_reveal (struct Object *ob) |
struct bDeformGroup * | ED_vgroup_add (struct Object *ob) |
struct bDeformGroup * | ED_vgroup_add_name (struct Object *ob, const char *name) |
void | ED_vgroup_delete (struct Object *ob, struct bDeformGroup *defgroup) |
void | ED_vgroup_clear (struct Object *ob) |
void | ED_vgroup_select_by_name (struct Object *ob, const char *name) |
int | ED_vgroup_data_create (struct ID *id) |
int | ED_vgroup_give_array (struct ID *id, struct MDeformVert **dvert_arr, int *dvert_tot) |
int | ED_vgroup_copy_array (struct Object *ob, struct Object *ob_from) |
void | ED_vgroup_mirror (struct Object *ob, const short mirror_weights, const short flip_vgroups, const short all_vgroups) |
int | ED_vgroup_object_is_edit_mode (struct Object *ob) |
void | ED_vgroup_vert_add (struct Object *ob, struct bDeformGroup *dg, int vertnum, float weight, int assignmode) |
void | ED_vgroup_vert_remove (struct Object *ob, struct bDeformGroup *dg, int vertnum) |
float | ED_vgroup_vert_weight (struct Object *ob, struct bDeformGroup *dg, int vertnum) |
struct EditVert * | editedge_getOtherVert (struct EditEdge *eed, struct EditVert *eve) |
struct EditVert * | editedge_getSharedVert (struct EditEdge *eed, struct EditEdge *eed2) |
int | editedge_containsVert (struct EditEdge *eed, struct EditVert *eve) |
int | editface_containsVert (struct EditFace *efa, struct EditVert *eve) |
int | editface_containsEdge (struct EditFace *efa, struct EditEdge *eed) |
short | sharesFace (struct EditMesh *em, struct EditEdge *e1, struct EditEdge *e2) |
void | ED_mesh_faces_add (struct Mesh *mesh, struct ReportList *reports, int count) |
void | ED_mesh_edges_add (struct Mesh *mesh, struct ReportList *reports, int count) |
void | ED_mesh_vertices_add (struct Mesh *mesh, struct ReportList *reports, int count) |
void | ED_mesh_transform (struct Mesh *me, float *mat) |
void | ED_mesh_calc_normals (struct Mesh *me) |
void | ED_mesh_material_link (struct Mesh *me, struct Material *ma) |
void | ED_mesh_update (struct Mesh *mesh, struct bContext *C, int calc_edges) |
int | ED_mesh_uv_texture_add (struct bContext *C, struct Mesh *me, const char *name, int active_set) |
int | ED_mesh_uv_texture_remove (struct bContext *C, struct Object *ob, struct Mesh *me) |
int | ED_mesh_color_add (struct bContext *C, struct Scene *scene, struct Object *ob, struct Mesh *me, const char *name, int active_set) |
int | ED_mesh_color_remove (struct bContext *C, struct Object *ob, struct Mesh *me) |
int | ED_mesh_color_remove_named (struct bContext *C, struct Object *ob, struct Mesh *me, const char *name) |
int | ED_mesh_mirrtopo_recalc_check (struct Mesh *me, const int ob_mode, MirrTopoStore_t *mesh_topo_store) |
void | ED_mesh_mirrtopo_init (struct Mesh *me, const int ob_mode, MirrTopoStore_t *mesh_topo_store, const short skip_em_vert_array_init) |
void | ED_mesh_mirrtopo_free (MirrTopoStore_t *mesh_topo_store) |
Variables | |
unsigned int | em_vertoffs |
unsigned int | em_solidoffs |
unsigned int | em_wireoffs |
Definition in file ED_mesh.h.
#define B_BEAUTY 4 |
Definition at line 74 of file ED_mesh.h.
Referenced by esubdivideflag().
#define B_BEAUTY_SHORT 0x10 |
Definition at line 76 of file ED_mesh.h.
Referenced by esubdivideflag().
#define B_CLOCKWISE 1 |
Definition at line 72 of file ED_mesh.h.
Referenced by spin_mesh().
#define B_FRACTAL 0x2000 |
Definition at line 85 of file ED_mesh.h.
Referenced by alter_co(), and subdivide_exec().
#define B_JOINTRIA_UV 0x200 |
Definition at line 81 of file ED_mesh.h.
Referenced by compareFaceAttribs().
#define B_JOINTRIA_VCOL 0X400 |
Definition at line 82 of file ED_mesh.h.
Referenced by compareFaceAttribs().
#define B_KEEPORIG 2 |
Definition at line 73 of file ED_mesh.h.
Referenced by spin_mesh().
#define B_KNIFE 0x80 |
Definition at line 78 of file ED_mesh.h.
Referenced by esubdivideflag(), and knife_cut_exec().
#define B_PERCENTSUBD 0x40 |
Definition at line 79 of file ED_mesh.h.
Referenced by knife_cut_exec(), and subdivideedgenum().
#define B_SMOOTH 8 |
Definition at line 75 of file ED_mesh.h.
Referenced by alter_co(), and subdivide_exec().
#define B_SPHERE 0x4000 |
Definition at line 86 of file ED_mesh.h.
Referenced by alter_co(), and make_prim().
#define EM_FGON 2 |
Definition at line 69 of file ED_mesh.h.
Referenced by addedgelist(), bbs_mesh_solid__drawCenter(), draw_dm_face_centers__mapFunc(), draw_dm_face_normals__mapFunc(), draw_em_measure_stats(), EM_fgon_flags(), load_editMesh(), make_editMesh(), make_fgon(), and mesh_foreachScreenFace__mapFunc().
#define EM_FGON_DRAW 1 |
Definition at line 68 of file ED_mesh.h.
Referenced by EM_fgon_flags().
#define WEIGHT_ADD 2 |
Definition at line 202 of file ED_mesh.h.
Referenced by ED_vgroup_nr_vert_add(), heat_bone_weighting(), and rna_def_vertex_group().
#define WEIGHT_REPLACE 1 |
Definition at line 201 of file ED_mesh.h.
Referenced by ED_vgroup_nr_vert_add(), envelope_bone_weighting(), heat_bone_weighting(), SkinInfo::link_armature(), and rna_def_vertex_group().
#define WEIGHT_SUBTRACT 3 |
Definition at line 203 of file ED_mesh.h.
Referenced by ED_vgroup_nr_vert_add(), and rna_def_vertex_group().
typedef struct MirrTopoStore_t MirrTopoStore_t |
int do_paintface_box_select | ( | struct ViewContext * | vc, |
struct rcti * | rect, | ||
int | select, | ||
int | extend | ||
) |
Definition at line 759 of file editface.c.
References ViewContext::ar, B_ENDIAN, ENDIAN_ORDER, FALSE, MFace::flag, get_mesh(), IB_rect, IMB_allocImBuf(), IMB_convert_rgba_to_abgr(), IMB_freeImBuf(), ImBuf::index, ME_FACE_SEL, ME_HIDE, MEM_callocN(), MEM_freeN(), Mesh::mface, NULL, ViewContext::obact, OPERATOR_CANCELLED, OPERATOR_FINISHED, paintface_deselect_all_visible(), paintface_flush_flags(), ImBuf::rect, SEL_DESELECT, Mesh::totface, view3d_validate_backbuf(), ARegion::winrct, WM_framebuffer_to_index(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by view3d_borderselect_exec().
void ED_keymap_mesh | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 234 of file mesh_ops.c.
References ACTIONMOUSE, AKEY, DELKEY, DKEY, ED_object_generic_keymap(), ED_operator_editmesh(), EKEY, FALSE, FKEY, GKEY, HKEY, i, IKEY, JKEY, KKEY, KM_ALT, KM_CLICK, KM_CTRL, KM_PRESS, KM_SHIFT, LEFTMOUSE, LKEY, MKEY, NKEY, PADMINUS, PADPLUSKEY, PKEY, wmKeyMap::poll, wmKeyMapItem::ptr, RKEY, RNA_boolean_set(), RNA_enum_set(), RNA_int_set(), SEL_INVERT, SEL_TOGGLE, SELECTMOUSE, SKEY, TABKEY, TKEY, TRUE, UKEY, VKEY, WKEY, WM_keymap_add_item(), WM_keymap_add_menu(), WM_keymap_find(), XKEY, YKEY, and ZEROKEY.
Referenced by ED_spacetypes_keymap().
void ED_mesh_calc_normals | ( | struct Mesh * | me | ) |
Definition at line 745 of file mesh_data.c.
References mesh_calc_normals(), Mesh::mface, Mesh::mvert, NULL, Mesh::totface, and Mesh::totvert.
int ED_mesh_color_add | ( | struct bContext * | C, |
struct Scene * | scene, | ||
struct Object * | ob, | ||
struct Mesh * | me, | ||
const char * | name, | ||
int | active_set | ||
) |
Referenced by output_toggle_exec(), and vertex_color_add_exec().
Definition at line 279 of file mesh_data.c.
References CD_MCOL, CustomData_get_active_layer_index(), DAG_id_tag_update(), data, delete_customdata_layer(), Mesh::edit_mesh, EditMesh::fdata, Mesh::fdata, Mesh::id, CustomData::layers, NC_GEOM, ND_DATA, NULL, and WM_event_add_notifier().
Referenced by vertex_color_remove_exec().
int ED_mesh_color_remove_named | ( | struct bContext * | C, |
struct Object * | ob, | ||
struct Mesh * | me, | ||
const char * | name | ||
) |
Definition at line 298 of file mesh_data.c.
References CD_MCOL, CustomData_get_named_layer_index(), DAG_id_tag_update(), data, delete_customdata_layer(), Mesh::edit_mesh, EditMesh::fdata, Mesh::fdata, Mesh::id, CustomData::layers, NC_GEOM, ND_DATA, NULL, and WM_event_add_notifier().
Referenced by output_toggle_exec().
void ED_mesh_edges_add | ( | struct Mesh * | mesh, |
struct ReportList * | reports, | ||
int | count | ||
) |
Definition at line 725 of file mesh_data.c.
References BKE_report(), Mesh::edit_mesh, mesh_add_edges(), and RPT_ERROR.
void ED_mesh_faces_add | ( | struct Mesh * | mesh, |
struct ReportList * | reports, | ||
int | count | ||
) |
Definition at line 715 of file mesh_data.c.
References BKE_report(), Mesh::edit_mesh, mesh_add_faces(), and RPT_ERROR.
void ED_mesh_mirrtopo_free | ( | MirrTopoStore_t * | mesh_topo_store | ) |
Definition at line 1047 of file editface.c.
References MirrTopoStore_t::index_lookup, MEM_freeN(), NULL, MirrTopoStore_t::prev_edge_tot, and MirrTopoStore_t::prev_vert_tot.
Referenced by ED_mesh_mirrtopo_init(), and mesh_mirrtopo_table().
void ED_mesh_mirrtopo_init | ( | struct Mesh * | me, |
const int | ob_mode, | ||
MirrTopoStore_t * | mesh_topo_store, | ||
const short | skip_em_vert_array_init | ||
) |
Definition at line 872 of file editface.c.
References ED_mesh_mirrtopo_free(), EditMesh::edges, Mesh::edit_mesh, EM_free_index_arrays(), EM_get_vert_for_index(), EM_init_index_arrays(), FALSE, ListBase::first, hash, MirrTopoVert_t::hash, MirrTopoStore_t::index_lookup, EditVert::l, Mesh::medge, MEM_callocN(), MEM_dupallocN(), MEM_freeN(), MEM_mallocN(), mirrtopo_hash_sort(), mirrtopo_vert_sort(), EditEdge::next, EditVert::next, NULL, EditVert::p, MirrTopoStore_t::prev_edge_tot, MirrTopoStore_t::prev_ob_mode, MirrTopoStore_t::prev_vert_tot, EditVert::tmp, Mesh::totedge, EditMesh::totvert, Mesh::totvert, MEdge::v1, EditEdge::v1, MEdge::v2, EditEdge::v2, MirrTopoVert_t::v_index, and EditMesh::verts.
Referenced by mesh_mirrtopo_table().
int ED_mesh_mirrtopo_recalc_check | ( | struct Mesh * | me, |
const int | ob_mode, | ||
MirrTopoStore_t * | mesh_topo_store | ||
) |
Definition at line 845 of file editface.c.
References Mesh::edit_mesh, FALSE, MirrTopoStore_t::index_lookup, NULL, MirrTopoStore_t::prev_edge_tot, MirrTopoStore_t::prev_ob_mode, MirrTopoStore_t::prev_vert_tot, EditMesh::totedge, Mesh::totedge, EditMesh::totvert, Mesh::totvert, and TRUE.
Referenced by mesh_mirrtopo_table().
void ED_mesh_transform | ( | struct Mesh * | me, |
float * | mat | ||
) |
Definition at line 627 of file mesh_data.c.
References MVert::co, i, mesh_calc_normals(), Mesh::mface, mul_m4_v3(), Mesh::mvert, NULL, Mesh::totface, and Mesh::totvert.
Definition at line 586 of file mesh_data.c.
References BKE_mesh_calc_edges(), DAG_id_tag_update(), Mesh::id, mesh_calc_normals(), Mesh::mface, Mesh::mvert, NC_GEOM, ND_DATA, NULL, Mesh::totedge, Mesh::totface, Mesh::totvert, and WM_event_add_notifier().
int ED_mesh_uv_texture_add | ( | struct bContext * | C, |
struct Mesh * | me, | ||
const char * | name, | ||
int | active_set | ||
) |
Definition at line 176 of file mesh_data.c.
References CD_DEFAULT, CD_DUPLICATE, CD_MTFACE, copy_editface_active_customdata(), CustomData_add_layer_named(), CustomData_number_of_layers(), CustomData_set_layer_active(), DAG_id_tag_update(), Mesh::edit_mesh, EM_add_data_layer(), Mesh::fdata, EditMesh::fdata, Mesh::id, MAX_MTFACE, mesh_update_customdata_pointers(), Mesh::mtface, NC_GEOM, ND_DATA, NULL, Mesh::totface, and WM_event_add_notifier().
Referenced by uv_texture_add_exec().
Definition at line 218 of file mesh_data.c.
References CD_MTFACE, CustomData_get_active_layer_index(), DAG_id_tag_update(), data, delete_customdata_layer(), Mesh::edit_mesh, EditMesh::fdata, Mesh::fdata, Mesh::id, CustomData::layers, NC_GEOM, ND_DATA, NULL, and WM_event_add_notifier().
Referenced by uv_texture_remove_exec().
void ED_mesh_vertices_add | ( | struct Mesh * | mesh, |
struct ReportList * | reports, | ||
int | count | ||
) |
Definition at line 735 of file mesh_data.c.
References BKE_report(), Mesh::edit_mesh, mesh_add_verts(), and RPT_ERROR.
void ED_operatormacros_mesh | ( | void | ) |
Definition at line 175 of file mesh_ops.c.
References wmOperatorType::description, FALSE, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_enum_set(), RNA_struct_idprops_unset(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacetypes_init().
void ED_operatortypes_mesh | ( | void | ) |
Definition at line 60 of file mesh_ops.c.
References MESH_OT_beautify_fill(), MESH_OT_blend_from_shape(), MESH_OT_colors_mirror(), MESH_OT_colors_rotate(), MESH_OT_delete(), MESH_OT_drop_named_image(), MESH_OT_dupli_extrude_cursor(), MESH_OT_duplicate(), MESH_OT_edge_face_add(), MESH_OT_edge_flip(), MESH_OT_edge_rotate(), MESH_OT_edgering_select(), MESH_OT_edges_select_sharp(), MESH_OT_extrude(), MESH_OT_extrude_repeat(), MESH_OT_faces_select_linked_flat(), MESH_OT_faces_shade_flat(), MESH_OT_faces_shade_smooth(), MESH_OT_fgon_clear(), MESH_OT_fgon_make(), MESH_OT_fill(), MESH_OT_flip_normals(), MESH_OT_hide(), MESH_OT_knife_cut(), MESH_OT_loop_multi_select(), MESH_OT_loop_select(), MESH_OT_loop_to_region(), MESH_OT_loopcut(), MESH_OT_mark_seam(), MESH_OT_mark_sharp(), MESH_OT_merge(), MESH_OT_navmesh_clear(), MESH_OT_navmesh_face_add(), MESH_OT_navmesh_face_copy(), MESH_OT_navmesh_make(), MESH_OT_navmesh_reset(), MESH_OT_noise(), MESH_OT_normals_make_consistent(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), MESH_OT_quads_convert_to_tris(), MESH_OT_region_to_loop(), MESH_OT_remove_doubles(), MESH_OT_reveal(), MESH_OT_rip(), MESH_OT_screw(), MESH_OT_select_all(), MESH_OT_select_axis(), MESH_OT_select_by_number_vertices(), MESH_OT_select_less(), MESH_OT_select_linked(), MESH_OT_select_linked_pick(), MESH_OT_select_mirror(), MESH_OT_select_more(), MESH_OT_select_non_manifold(), MESH_OT_select_nth(), MESH_OT_select_random(), MESH_OT_select_shortest_path(), MESH_OT_select_similar(), MESH_OT_select_vertex_path(), MESH_OT_separate(), MESH_OT_shape_propagate_to_all(), MESH_OT_solidify(), MESH_OT_sort_faces(), MESH_OT_spin(), MESH_OT_split(), MESH_OT_sticky_add(), MESH_OT_sticky_remove(), MESH_OT_subdivide(), MESH_OT_tris_convert_to_quads(), MESH_OT_uv_texture_add(), MESH_OT_uv_texture_remove(), MESH_OT_uvs_mirror(), MESH_OT_uvs_rotate(), MESH_OT_vertex_color_add(), MESH_OT_vertex_color_remove(), MESH_OT_vertices_randomize(), MESH_OT_vertices_smooth(), MESH_OT_vertices_sort(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
struct bDeformGroup* ED_vgroup_add | ( | struct Object * | ob | ) | [read] |
Definition at line 119 of file object_vgroup.c.
References ED_vgroup_add_name().
Referenced by vertex_group_add_exec(), vertex_group_assign_exec(), and wpaint_stroke_test_start().
struct bDeformGroup* ED_vgroup_add_name | ( | struct Object * | ob, |
const char * | name | ||
) | [read] |
Definition at line 100 of file object_vgroup.c.
References Object::actdef, BLI_addtail(), BLI_countlist(), BLI_strncpy(), Object::defbase, defgroup_unique_name(), MEM_callocN(), bDeformGroup::name, NULL, OB_TYPE_SUPPORT_VGROUP, and Object::type.
Referenced by dgroup_skinnable_cb(), ED_vgroup_add(), SkinInfo::link_armature(), output_toggle_exec(), vgroup_add_unique_bone_cb(), wpaint_mirror_vgroup_ensure(), and wpaint_stroke_test_start().
void ED_vgroup_clear | ( | struct Object * | ob | ) |
Definition at line 143 of file object_vgroup.c.
References Object::defbase, ED_vgroup_object_is_edit_mode(), ListBase::first, bDeformGroup::next, vgroup_delete_edit_mode(), and vgroup_delete_object_mode().
Definition at line 311 of file object_vgroup.c.
References Object::actdef, BLI_countlist(), BLI_duplicatelist(), BLI_freelistN(), Object::data, Object::defbase, ED_vgroup_data_create(), ED_vgroup_give_parray(), FALSE, i, MEM_dupallocN(), MEM_freeN(), MEM_mallocN(), NULL, TRUE, vgroup_delete_all(), and vgroup_remap_update_users().
Referenced by vertex_group_copy_to_selected_exec().
int ED_vgroup_data_create | ( | struct ID * | id | ) |
Definition at line 160 of file object_vgroup.c.
References CD_CALLOC, CD_MDEFORMVERT, CustomData_add_layer(), Lattice::dvert, Mesh::dvert, FALSE, GS, ID_LT, ID_ME, MEM_callocN(), ID::name, NULL, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, Mesh::totvert, and TRUE.
Referenced by create_vgroups_from_armature(), ED_vgroup_copy_array(), ED_vgroup_vert_add(), vgroup_active_remove_verts(), vgroup_assign_verts(), and wpaint_stroke_test_start().
void ED_vgroup_delete | ( | struct Object * | ob, |
struct bDeformGroup * | defgroup | ||
) |
Definition at line 124 of file object_vgroup.c.
References Object::defbase, ED_vgroup_object_is_edit_mode(), ListBase::first, bDeformGroup::next, NULL, vgroup_delete_edit_mode(), and vgroup_delete_object_mode().
Referenced by output_toggle_exec().
int ED_vgroup_give_array | ( | struct ID * | id, |
struct MDeformVert ** | dvert_arr, | ||
int * | dvert_tot | ||
) |
Definition at line 283 of file object_vgroup.c.
References Lattice::dvert, Mesh::dvert, Lattice::editlatt, FALSE, GS, ID_LT, ID_ME, EditLatt::latt, ID::name, NULL, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, Mesh::totvert, and TRUE.
Referenced by ED_vgroup_nr_vert_add(), ED_vgroup_vert_add(), ED_vgroup_vert_remove(), vgroup_delete_object_mode(), and vgroup_do_remap().
void ED_vgroup_mirror | ( | struct Object * | ob, |
const short | mirror_weights, | ||
const short | flip_vgroups, | ||
const short | all_vgroups | ||
) |
Definition at line 1503 of file object_vgroup.c.
References Object::actdef, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BLI_assert, BLI_findlink(), CD_MDEFORMVERT, CustomData_em_get(), CustomData_has_layer(), Object::data, EditVert::data, Lattice::def, Object::defbase, defgroup_flip_map(), defgroup_flip_map_single(), Lattice::dvert, Mesh::dvert, Mesh::editflag, EM_cache_x_mirror_vert(), EditVert::f, BPoint::f1, FALSE, ListBase::first, MVert::flag, LT_INDEX, ME_EDIT_VERT_SEL, ME_VERT_TMP_TAG, MEM_freeN(), mesh_get_x_mirror_vert(), Mesh::mvert, EditVert::next, NULL, OB_LATTICE, OB_MESH, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, SELECT, EditVert::tmp, TRUE, Object::type, EditVert::v, EditMesh::vdata, EditMesh::verts, vgroup_edit_lattice(), VGROUP_MIRR_OP, and simple_enum_gen::w.
Referenced by vertex_group_mirror_exec().
int ED_vgroup_object_is_edit_mode | ( | struct Object * | ob | ) |
Definition at line 90 of file object_vgroup.c.
References Object::data, NULL, OB_LATTICE, OB_MESH, and Object::type.
Referenced by ED_vgroup_clear(), and ED_vgroup_delete().
void ED_vgroup_select_by_name | ( | struct Object * | ob, |
const char * | name | ||
) |
Definition at line 567 of file object_vgroup.c.
References Object::actdef, and defgroup_name_index().
Referenced by ED_do_pose_selectbuffer(), pose_bone_flip_active_exec(), and set_wpaint().
void ED_vgroup_vert_add | ( | struct Object * | ob, |
struct bDeformGroup * | dg, | ||
int | vertnum, | ||
float | weight, | ||
int | assignmode | ||
) |
Definition at line 457 of file object_vgroup.c.
References BLI_findindex(), Object::data, Object::defbase, ED_vgroup_data_create(), ED_vgroup_give_array(), ED_vgroup_nr_vert_add(), and NULL.
Referenced by envelope_bone_weighting(), heat_bone_weighting(), and SkinInfo::link_armature().
void ED_vgroup_vert_remove | ( | struct Object * | ob, |
struct bDeformGroup * | dg, | ||
int | vertnum | ||
) |
Definition at line 483 of file object_vgroup.c.
References BLI_findindex(), Object::data, Object::defbase, defvert_find_index(), defvert_remove_group(), ED_vgroup_give_array(), and NULL.
Referenced by do_view3d_region_buttons(), envelope_bone_weighting(), and heat_bone_weighting().
float ED_vgroup_vert_weight | ( | struct Object * | ob, |
struct bDeformGroup * | dg, | ||
int | vertnum | ||
) |
Definition at line 556 of file object_vgroup.c.
References BLI_findindex(), Object::defbase, and get_vert_def_nr().
Referenced by heat_bone_weighting().
Definition at line 437 of file editmesh.c.
References EditEdge::v1, and EditEdge::v2.
Referenced by createSlideVerts().
Definition at line 415 of file editmesh.c.
References NULL, EditEdge::v1, and EditEdge::v2.
Referenced by createSlideVerts(), and doEdgeSlide().
Definition at line 426 of file editmesh.c.
References NULL, EditEdge::v1, and EditEdge::v2.
Referenced by createSlideVerts(), and doEdgeSlide().
Definition at line 447 of file editmesh.c.
References EditFace::e1, EditFace::e2, EditFace::e3, and EditFace::e4.
Referenced by createSlideVerts().
Definition at line 442 of file editmesh.c.
References EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
struct EditVert* editmesh_get_x_mirror_vert | ( | struct Object * | ob, |
struct EditMesh * | em, | ||
struct EditVert * | eve, | ||
float * | co, | ||
int | index | ||
) | [read] |
Definition at line 946 of file meshtools.c.
References Object::data, editmesh_get_x_mirror_vert_spacial(), editmesh_get_x_mirror_vert_topo(), and ME_EDIT_MIRROR_TOPO.
Referenced by createTransEditVerts(), editvert_mirror_update(), EM_cache_x_mirror_vert(), and smooth_vertex().
void EM_add_data_layer | ( | struct EditMesh * | em, |
struct CustomData * | data, | ||
int | type, | ||
const char * | name | ||
) |
Definition at line 975 of file editmesh_lib.c.
References CD_CALLOC, CustomData_add_layer_named(), data, CustomData::layers, MEM_dupallocN(), MEM_freeN(), NULL, and update_data_blocks().
Referenced by ED_mesh_color_add(), ED_mesh_uv_texture_add(), ED_uvedit_assign_image(), ED_uvedit_ensure_uvs(), and vgroup_assign_verts().
Definition at line 135 of file editmesh_mods.c.
References ToolSettings::automerge, DAG_id_tag_update(), Object::data, ToolSettings::doublimit, Mesh::edit_mesh, Mesh::id, Object::mode, NULL, OB_MESH, OB_MODE_EDIT, removedoublesflag(), Scene::toolsettings, EditMesh::totedge, EditMesh::totface, EditMesh::totvert, and Object::type.
Referenced by special_aftertrans_update().
Definition at line 94 of file editmesh_mods.c.
References EditVert::co, editmesh_get_x_mirror_vert(), ListBase::first, EditVert::next, NULL, EditVert::tmp, EditVert::v, and EditMesh::verts.
Referenced by ED_vgroup_mirror(), and EM_select_mirrored().
int EM_check_backbuf | ( | unsigned int | index | ) |
Definition at line 237 of file editmesh_mods.c.
References em_vertoffs, ImBuf::index, and NULL.
Referenced by do_lasso_select_mesh__doSelectEdge(), do_mesh_box_select__doSelectEdge(), EM_backbuf_checkAndSelectEdges(), EM_backbuf_checkAndSelectFaces(), EM_backbuf_checkAndSelectTFaces(), EM_backbuf_checkAndSelectVerts(), and EM_backbuf_checkAndSelectVerts_obmode().
void EM_convertsel | ( | struct EditMesh * | em, |
short | oldmode, | ||
short | selectmode | ||
) |
Definition at line 769 of file editmesh_lib.c.
References check_fgons_selection(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, EM_nedges_selected(), EM_nfaces_selected(), EM_nvertices_selected(), EM_select_edge(), EM_select_face(), EditEdge::f, EditVert::f, EditFace::f1, EditVert::f1, EditEdge::f1, EditMesh::faces, ListBase::first, EditEdge::next, EditFace::next, EditVert::next, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECT, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, EditFace::v4, and EditMesh::verts.
Referenced by do_view3d_header_buttons().
void EM_deselect_all | ( | struct EditMesh * | em | ) |
Definition at line 3401 of file editmesh_mods.c.
References EM_clear_flag_all(), and SELECT.
Referenced by do_lasso_select_mesh(), do_mesh_box_select(), editmesh_select_all_exec(), mesh_select_random_exec(), and select_all_perform().
void EM_deselect_by_material | ( | struct EditMesh * | em, |
int | index | ||
) |
Definition at line 3698 of file editmesh_mods.c.
References EM_select_face(), EM_selectmode_flush(), EditMesh::faces, ListBase::first, EditFace::mat_nr, and EditFace::next.
Referenced by material_slot_de_select().
void EM_deselect_flush | ( | struct EditMesh * | em | ) |
Definition at line 591 of file editmesh_lib.c.
References EditMesh::edges, EM_nedges_selected(), EM_nfaces_selected(), EditFace::f, EditEdge::f, EditVert::f, EditMesh::faces, ListBase::first, EditFace::next, EditEdge::next, SELECT, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, and EditFace::v4.
Referenced by border_select_exec(), circle_select_exec(), em_deselect_nth_vert(), EM_select_less(), hide_exec(), mouse_select(), and vgroup_select_verts().
int EM_deselect_nth | ( | struct EditMesh * | em, |
int | nth | ||
) |
Definition at line 2826 of file editmesh_lib.c.
References deselect_nth_active(), em_deselect_nth_edge(), em_deselect_nth_face(), and em_deselect_nth_vert().
Referenced by mesh_select_nth_exec().
void EM_editselection_center | ( | float * | center, |
struct EditSelection * | ese | ||
) |
Definition at line 295 of file editmesh_lib.c.
References add_v3_v3v3(), EditFace::cent, EditVert::co, copy_v3_v3(), EditSelection::data, EDITEDGE, EDITFACE, EDITVERT, mul_v3_fl(), EditSelection::type, EditEdge::v1, and EditEdge::v2.
Referenced by calc_manipulator_stats(), calculateCenter(), EM_editselection_plane(), and snap_curs_to_active().
void EM_editselection_normal | ( | float * | normal, |
struct EditSelection * | ese | ||
) |
Definition at line 310 of file editmesh_lib.c.
References add_v3_v3v3(), EditVert::co, copy_v3_v3(), cross_v3_v3v3(), EditSelection::data, EDITEDGE, EDITFACE, EDITVERT, EditFace::n, EditVert::no, normalize_v3(), sub_v3_v3v3(), EditSelection::type, EditEdge::v1, and EditEdge::v2.
Referenced by getTransformOrientation().
void EM_editselection_plane | ( | float * | plane, |
struct EditSelection * | ese | ||
) |
Definition at line 340 of file editmesh_lib.c.
References add_v3_v3v3(), EditVert::co, copy_v3_v3(), cross_v3_v3v3(), EditSelection::data, EDITEDGE, EDITFACE, EDITVERT, EM_editselection_center(), EditVert::no, normalize_v3(), EditSelection::prev, sub_v3_v3v3(), EditSelection::type, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, and EditFace::v4.
Referenced by getTransformOrientation().
float EM_face_area | ( | struct EditFace * | efa | ) |
Definition at line 2141 of file editmesh_lib.c.
References area_quad_v3(), area_tri_v3(), EditVert::co, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by draw_uvs_stretch(), EM_fgon_flags(), and similar_face_select__internal().
void EM_free_backbuf | ( | void | ) |
Definition at line 245 of file editmesh_mods.c.
References MEM_freeN(), and NULL.
Referenced by do_lasso_select_mesh(), do_lasso_select_paintface(), do_lasso_select_paintvert(), do_mesh_box_select(), mesh_circle_select(), paint_facesel_circle_select(), and paint_vertsel_circle_select().
void EM_free_data_layer | ( | struct EditMesh * | em, |
struct CustomData * | data, | ||
int | type | ||
) |
Definition at line 987 of file editmesh_lib.c.
References CustomData_free_layer_active(), data, CustomData::layers, MEM_dupallocN(), MEM_freeN(), NULL, and update_data_blocks().
Referenced by delete_customdata_layer(), and object_modifier_remove().
void EM_free_index_arrays | ( | void | ) |
Definition at line 1915 of file editmesh.c.
References MEM_freeN(), and NULL.
Referenced by createRepresentation(), draw_em_fancy(), draw_object_backbufsel(), ED_mesh_mirrtopo_init(), edgetag_shortest_path(), EM_make_hq_normals(), EM_make_uv_vert_map(), make_editMesh(), mesh_foreachScreenEdge(), mesh_foreachScreenFace(), mesh_foreachScreenVert(), select_edgeloop(), select_linked(), snapDerivedMesh(), stitch_exec(), undoMesh_to_editMesh(), and uv_faces_do_sticky().
void EM_free_uv_vert_map | ( | struct UvVertMap * | vmap | ) |
Definition at line 2377 of file editmesh_lib.c.
References UvVertMap::buf, MEM_freeN(), and UvVertMap::vert.
Referenced by select_edgeloop(), select_linked(), stitch_exec(), and uv_faces_do_sticky().
Definition at line 153 of file editmesh_lib.c.
References EditMesh::act_face, EditSelection::data, EDITFACE, EditFace::f, EditMesh::faces, ListBase::first, EditFace::h, if(), ListBase::last, EditFace::next, NULL, EditSelection::prev, SELECT, EditMesh::selected, and EditSelection::type.
Referenced by adduplicateflag(), construct_param_handle(), correct_uv_aspect(), deselect_nth_active(), draw_em_fancy(), ED_uvedit_assign_image(), EM_get_active_mtface(), EM_get_actSelection(), EM_mesh_copy_face(), image_refresh(), load_editMesh(), make_editMesh(), and navmesh_face_copy_exec().
struct MTFace* EM_get_active_mtface | ( | struct EditMesh * | em, |
struct EditFace ** | act_efa, | ||
struct MCol ** | mcol, | ||
int | sloppy | ||
) | [read] |
Definition at line 134 of file editface.c.
References CD_MCOL, CD_MTFACE, CustomData_em_get(), CustomData_has_layer(), EditFace::data, EM_get_actFace(), EM_texFaceCheck(), EditMesh::fdata, and NULL.
Referenced by draw_uvs(), and image_refresh().
int EM_get_actSelection | ( | struct EditMesh * | em, |
struct EditSelection * | ese | ||
) |
Definition at line 181 of file editmesh_lib.c.
References EditSelection::data, EDITFACE, EM_get_actFace(), ListBase::last, EditSelection::next, NULL, EditSelection::prev, EditMesh::selected, and EditSelection::type.
Referenced by calc_manipulator_stats(), calculateCenter(), getTransformOrientation(), and snap_curs_to_active().
struct EditEdge* EM_get_edge_for_index | ( | int | index | ) | [read] |
Definition at line 1930 of file editmesh.c.
References NULL.
Referenced by bbs_mesh_wire__setDrawOptions(), draw_dm_bweights__setDrawOptions(), draw_dm_creases__setDrawOptions(), draw_dm_edges__setDrawOptions(), draw_dm_edges_seams__setDrawOptions(), draw_dm_edges_sel__setDrawOptions(), draw_dm_edges_sel_interp__setDrawInterpOptions(), draw_dm_edges_sel_interp__setDrawOptions(), draw_dm_edges_sharp__setDrawOptions(), edgetag_add_adjacent(), edgetag_cut_cost(), edgetag_shortest_path(), make_editMesh(), mesh_foreachScreenEdge__mapFunc(), snapDerivedMesh(), and undoMesh_to_editMesh().
struct EditFace* EM_get_face_for_index | ( | int | index | ) | [read] |
Definition at line 1935 of file editmesh.c.
References NULL.
Referenced by bbs_mesh_solid__drawCenter(), bbs_mesh_solid__setSolidDrawOptions(), draw_dm_face_centers__mapFunc(), draw_dm_face_normals__mapFunc(), draw_dm_faces_sel__compareDrawOptions(), draw_dm_faces_sel__setDrawOptions(), draw_em_fancy__setFaceOpts(), draw_em_fancy__setGLSLFaceOpts(), draw_em_tf_mapped__set_draw(), EM_make_hq_normals(), EM_make_uv_vert_map(), make_editMesh(), mesh_foreachScreenFace__mapFunc(), select_linked(), snapDerivedMesh(), stitch_exec(), tex_mat_set_face_editmesh_cb(), undoMesh_to_editMesh(), uv_edge_tag_faces(), and uv_faces_do_sticky().
Definition at line 2372 of file editmesh_lib.c.
References EditVert::v, and UvVertMap::vert.
Referenced by select_linked(), stitch_exec(), uv_faces_do_sticky(), and uv_vertex_map_get().
struct EditVert* EM_get_vert_for_index | ( | int | index | ) | [read] |
Definition at line 1925 of file editmesh.c.
References NULL.
Referenced by bbs_mesh_verts__mapFunc(), createRepresentation(), draw_dm_bweights__mapFunc(), draw_dm_vert_normals__mapFunc(), draw_dm_verts__mapFunc(), ED_mesh_mirrtopo_init(), edgetag_cut_cost(), EM_make_hq_normals(), make_editMesh(), mesh_foreachScreenVert__mapFunc(), snapDerivedMesh(), and undoMesh_to_editMesh().
void EM_hide_mesh | ( | struct EditMesh * | em, |
int | swap | ||
) |
Definition at line 2672 of file editmesh_mods.c.
References EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, EM_select_edge(), EM_select_face(), EditEdge::f, EditVert::f, EditFace::f, EditVert::f1, EditEdge::f1, EditMesh::faces, ListBase::first, EditEdge::h, EditVert::h, EditFace::h, EditEdge::next, EditFace::next, EditVert::next, NULL, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, EditMesh::totedgesel, EditMesh::totfacesel, EditMesh::totvertsel, EditEdge::v1, EditEdge::v2, and EditMesh::verts.
Referenced by hide_exec(), and hide_mesh_exec().
int EM_init_backbuf_border | ( | struct ViewContext * | vc, |
short | xmin, | ||
short | ymin, | ||
short | xmax, | ||
short | ymax | ||
) |
Definition at line 210 of file editmesh_mods.c.
References View3D::drawtype, em_vertoffs, View3D::flag, IMB_freeImBuf(), MEM_callocN(), NULL, OB_SOLID, ViewContext::obedit, ImBuf::rect, ViewContext::v3d, V3D_ZBUF_SELECT, and view3d_read_backbuf().
Referenced by do_mesh_box_select().
int EM_init_backbuf_circle | ( | struct ViewContext * | vc, |
short | xs, | ||
short | ys, | ||
short | rads | ||
) |
Definition at line 320 of file editmesh_mods.c.
References View3D::drawtype, em_vertoffs, View3D::flag, IMB_freeImBuf(), MEM_callocN(), NULL, OB_SOLID, ViewContext::obact, ViewContext::obedit, paint_facesel_test(), paint_vertsel_test(), ImBuf::rect, ViewContext::v3d, V3D_ZBUF_SELECT, and view3d_read_backbuf().
Referenced by mesh_circle_select(), paint_facesel_circle_select(), and paint_vertsel_circle_select().
void EM_init_index_arrays | ( | struct EditMesh * | em, |
int | forVert, | ||
int | forEdge, | ||
int | forFace | ||
) |
Definition at line 1874 of file editmesh.c.
References BLI_countlist(), EditMesh::edges, EditMesh::faces, ListBase::first, i, MEM_mallocN(), EditFace::next, EditEdge::next, EditVert::next, EditMesh::totedge, EditMesh::totface, EditMesh::totvert, and EditMesh::verts.
Referenced by createRepresentation(), draw_em_fancy(), draw_object_backbufsel(), ED_mesh_mirrtopo_init(), edgetag_shortest_path(), EM_make_hq_normals(), EM_make_uv_vert_map(), make_editMesh(), mesh_foreachScreenEdge(), mesh_foreachScreenFace(), mesh_foreachScreenVert(), select_edgeloop(), select_linked(), snapDerivedMesh(), stitch_exec(), undoMesh_to_editMesh(), and uv_faces_do_sticky().
void EM_make_hq_normals | ( | struct EditMesh * | em | ) |
Definition at line 2406 of file editmesh_lib.c.
References add_v3_v3(), add_v3_v3v3(), angle(), angle_normalized_v3v3(), BLI_edgehash_free(), BLI_edgehash_new(), BLI_edgehashIterator_free(), BLI_edgehashIterator_getKey(), BLI_edgehashIterator_getValue(), BLI_edgehashIterator_isDone(), BLI_edgehashIterator_new(), BLI_edgehashIterator_step(), copy_v3_v3(), EM_free_index_arrays(), EM_get_face_for_index(), EM_get_vert_for_index(), EM_init_index_arrays(), EdgeFaceRef::f1, EdgeFaceRef::f2, EditMesh::faces, ListBase::first, i, EditVert::l, M_PI, MEM_callocN(), MEM_freeN(), mul_v3_fl(), EditFace::n, EditFace::next, EditVert::next, EditVert::no, NOCALC_EDGEWEIGHT_ADD_EDGEREF_FACE, normalize_v3(), NULL, EditVert::tmp, EditMesh::totedge, EditMesh::totface, EditMesh::verts, and zero_v3().
Referenced by solidify_exec().
struct UvVertMap* EM_make_uv_vert_map | ( | struct EditMesh * | em, |
int | selected, | ||
int | do_face_idx_array, | ||
float * | limit | ||
) | [read] |
Definition at line 2254 of file editmesh_lib.c.
References UvVertMap::buf, CD_MTFACE, CustomData_em_get(), EditFace::data, EM_free_index_arrays(), EM_get_face_for_index(), EM_init_index_arrays(), UvMapVert::f, EditFace::f, fabsf, EditMesh::faces, EditMesh::fdata, ListBase::first, free_uv_vert_map(), EditFace::h, i, EditVert::l, MEM_callocN(), EditFace::next, EditVert::next, UvMapVert::next, next, NULL, SELECT, UvMapVert::separate, sub_v2_v2v2(), UvMapVert::tfindex, EditVert::tmp, MTFace::uv, EditVert::v, EditFace::v1, EditFace::v4, UvVertMap::vert, and EditMesh::verts.
Referenced by select_edgeloop(), select_linked(), stitch_exec(), and uv_faces_do_sticky().
int EM_mask_init_backbuf_border | ( | struct ViewContext * | vc, |
int | mcords[][2], | ||
short | tot, | ||
short | xmin, | ||
short | ymin, | ||
short | xmax, | ||
short | ymax | ||
) |
Definition at line 257 of file editmesh_mods.c.
References ViewContext::ar, draw_triangulated(), View3D::drawtype, ED_region_pixelspace(), em_vertoffs, View3D::flag, IMB_freeImBuf(), MEM_callocN(), NULL, OB_SOLID, ViewContext::obact, ViewContext::obedit, paint_facesel_test(), paint_vertsel_test(), ImBuf::rect, ViewContext::v3d, V3D_ZBUF_SELECT, and view3d_read_backbuf().
Referenced by do_lasso_select_mesh(), do_lasso_select_paintface(), and do_lasso_select_paintvert().
void EM_project_snap_verts | ( | struct bContext * | C, |
struct ARegion * | ar, | ||
struct Object * | obedit, | ||
struct EditMesh * | em | ||
) |
Definition at line 2846 of file editmesh_lib.c.
References EditVert::co, EditVert::f, ListBase::first, Object::imat, mul_v3_m4v3(), EditVert::next, Object::obmat, project_float_noclip(), SELECT, SNAP_NOT_OBEDIT, snapObjectsContext(), and EditMesh::verts.
Referenced by dupli_extrude_cursor().
void EM_reveal_mesh | ( | struct EditMesh * | em | ) |
Definition at line 2805 of file editmesh_mods.c.
References EditMesh::edges, EM_fgon_flags(), EM_select_edge(), EM_select_face(), EM_selectmode_flush(), EditVert::f, EditMesh::faces, ListBase::first, EditEdge::h, EditVert::h, EditFace::h, EditEdge::next, EditFace::next, EditVert::next, NULL, SCE_SELECT_EDGE, SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, and EditMesh::verts.
Referenced by reveal_exec(), and reveal_mesh_exec().
void EM_select_all | ( | struct EditMesh * | em | ) |
Definition at line 3396 of file editmesh_mods.c.
References EM_set_flag_all_selectmode(), and SELECT.
Referenced by editmesh_select_all_exec(), and select_all_perform().
void EM_select_by_material | ( | struct EditMesh * | em, |
int | index | ||
) |
Definition at line 3685 of file editmesh_mods.c.
References EM_select_face(), EM_selectmode_flush(), EditMesh::faces, ListBase::first, EditFace::mat_nr, and EditFace::next.
Referenced by material_slot_de_select(), and mesh_separate_material().
void EM_select_edge | ( | struct EditEdge * | eed, |
int | sel | ||
) |
Definition at line 433 of file editmesh_lib.c.
References EditVert::f, EditEdge::f, SELECT, EditEdge::v1, and EditEdge::v2.
Referenced by addedgeface_mesh(), do_lasso_select_mesh__doSelectEdge(), do_mesh_box_select__doSelectEdge(), edge_rotate_selected(), edgeloop_select(), edgering_sel(), edgering_select(), edgetag_context_set(), EM_backbuf_checkAndSelectEdges(), EM_convertsel(), em_deselect_nth_edge(), EM_hide_mesh(), EM_reveal_mesh(), EM_select_less(), EM_select_more(), EM_select_swap(), EM_selectmode_set(), esubdivideflag(), make_editMesh(), mesh_circle_doSelectEdge(), mesh_rip_invoke(), mouse_mesh(), mouse_mesh_shortest_path(), region_to_loop(), select_linked_pick_invoke(), select_non_manifold(), select_sharp_edges_exec(), selectrandom_mesh(), similar_edge_select__internal(), uvedit_edge_deselect(), and uvedit_edge_select().
void EM_select_face | ( | struct EditFace * | efa, |
int | sel | ||
) |
Definition at line 407 of file editmesh_lib.c.
References EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditEdge::f, EditVert::f, EditFace::f, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by addedgeface_mesh(), beautify_fill(), convert_to_triface(), edge_flip(), EM_convertsel(), EM_deselect_by_material(), em_deselect_nth_face(), EM_hide_mesh(), EM_reveal_mesh(), EM_select_by_material(), EM_select_face_fgon(), EM_select_less(), EM_select_more(), EM_select_swap(), EM_selectmode_flush(), EM_selectmode_set(), faceloop_select(), fill_mesh(), hide_exec(), join_triangles(), loop_to_region(), make_editMesh(), reveal_exec(), select_by_number_vertices_exec(), select_linked_limited_invoke(), select_linked_pick_invoke(), selectrandom_mesh(), similar_face_select__internal(), uvedit_edge_deselect(), uvedit_edge_select(), uvedit_face_deselect(), uvedit_face_select(), uvedit_uv_deselect(), and uvedit_uv_select().
Definition at line 447 of file editmesh_lib.c.
References EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EM_select_face(), EditMesh::faces, EditFace::fgonf, EditEdge::fgoni, ListBase::first, G, G_DEBUG, EditFace::next, and EditFace::v4.
Referenced by do_lasso_select_mesh__doSelectFace(), do_mesh_box_select__doSelectFace(), EM_backbuf_checkAndSelectFaces(), mesh_circle_doSelectFace(), and mouse_mesh().
void EM_select_flush | ( | struct EditMesh * | em | ) |
Definition at line 622 of file editmesh_lib.c.
References EditMesh::edges, EM_nedges_selected(), EM_nfaces_selected(), EditFace::f, EditEdge::f, EditVert::f, EditMesh::faces, ListBase::first, EditFace::next, EditEdge::next, SELECT, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, and EditFace::v4.
Referenced by addfaces_from_edgenet(), beautify_fill(), border_select_exec(), circle_select_exec(), edge_rotate_selected(), EdgeLoopDelete(), EM_selectmode_set(), extrudeflag_edge(), extrudeflag_face_indiv(), fill_mesh(), make_prim(), mouse_select(), reveal_exec(), select_axis_exec(), select_editmesh_hook(), select_vertex_path_exec(), selectconnected_mesh_all(), and vgroup_select_verts().
void EM_select_swap | ( | struct EditMesh * | em | ) |
Definition at line 3350 of file editmesh_mods.c.
References EditMesh::edges, EM_select_edge(), EM_select_face(), EM_selectmode_flush(), EditEdge::f, EditVert::f, EditFace::f, EditMesh::faces, ListBase::first, EditEdge::h, EditVert::h, EditFace::h, EditEdge::next, EditFace::next, EditVert::next, SCE_SELECT_EDGE, SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, and EditMesh::verts.
Referenced by editmesh_select_all_exec(), and select_all_perform().
void EM_selectmode_flush | ( | struct EditMesh * | em | ) |
Definition at line 719 of file editmesh_lib.c.
References check_fgons_selection(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, EM_nedges_selected(), EM_nfaces_selected(), EM_nvertices_selected(), EM_select_face(), EditFace::f, EditEdge::f, EditVert::f, EditMesh::faces, ListBase::first, EditFace::next, EditEdge::next, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, and EditFace::v4.
Referenced by bevel_menu(), do_lasso_select_mesh(), do_mesh_box_select(), edge_flip(), EM_deselect_by_material(), EM_reveal_mesh(), EM_select_by_material(), EM_select_less(), EM_select_swap(), EM_selectmode_set(), esubdivideflag(), extrudeflag_vert(), join_triangles(), loop_multiselect(), mesh_circle_select(), mouse_mesh(), mouse_mesh_loop(), mouse_mesh_shortest_path(), ringsel_finish(), select_by_number_vertices_exec(), select_mirror_exec(), selectrandom_mesh(), similar_edge_select_exec(), and similar_face_select_exec().
void EM_selectmode_set | ( | struct EditMesh * | em | ) |
Definition at line 840 of file editmesh_lib.c.
References EditMesh::edges, EM_nedges_selected(), EM_nfaces_selected(), EM_nvertices_selected(), EM_select_edge(), EM_select_face(), EM_select_flush(), EM_selectmode_flush(), EM_strip_selections(), EditVert::f, EditFace::f, EditEdge::f, EditMesh::faces, ListBase::first, EditVert::next, EditFace::next, EditEdge::next, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, and EditMesh::verts.
Referenced by addedgeface_mesh(), adduplicateflag(), beautify_fill(), do_view3d_header_buttons(), make_editMesh(), mesh_rip_invoke(), mesh_separate_selected(), region_to_loop(), and ringsel_finish().
Definition at line 833 of file editmesh_lib.c.
References Mesh::edit_mesh, get_mesh(), EditMesh::selectmode, ToolSettings::selectmode, and Scene::toolsettings.
Referenced by undo_editmode_step().
Definition at line 148 of file editmesh_lib.c.
References EditMesh::act_face.
Referenced by adduplicateflag(), free_editface(), make_editMesh(), mesh_separate_selected(), mouse_mesh(), and mouse_select().
void EM_solidify | ( | struct EditMesh * | em, |
float | dist | ||
) |
Definition at line 2512 of file editmesh_lib.c.
References angle_normalized_v3v3(), angle_quad_v3(), angle_tri_v3(), EditVert::co, EditMesh::faces, ListBase::first, i, EditVert::l, madd_v3_v3fl(), MEM_callocN(), MEM_freeN(), EditFace::next, EditVert::next, EditVert::no, SELECT, shell_angle_to_dist(), EditVert::tmp, EditMesh::totface, EditMesh::totvert, and EditMesh::verts.
Referenced by solidify_exec().
int EM_texFaceCheck | ( | struct EditMesh * | em | ) |
Definition at line 1941 of file editmesh.c.
References CD_MTFACE, CustomData_has_layer(), EditMesh::faces, EditMesh::fdata, and ListBase::first.
Referenced by collapse_edgeuvs(), collapseEdges(), collapseuvs(), ED_space_image_show_uvedit(), ED_space_image_show_uvshadow(), ED_uvedit_test(), EM_get_active_mtface(), image_refresh(), mesh_mirror_uvs(), and mesh_rotate_uvs().
void EM_toggle_select_all | ( | struct EditMesh * | em | ) |
Definition at line 3388 of file editmesh_mods.c.
References EM_clear_flag_all(), EM_nvertices_selected(), EM_set_flag_all_selectmode(), and SELECT.
Referenced by editmesh_select_all_exec(), and select_all_perform().
void EM_validate_selections | ( | struct EditMesh * | em | ) |
Definition at line 244 of file editmesh_lib.c.
References BLI_freelinkN(), EditSelection::data, EDITEDGE, EDITFACE, EDITVERT, ListBase::first, EditSelection::next, SELECT, EditMesh::selected, and EditSelection::type.
Referenced by hide_exec(), and stats_object_edit().
int EM_vertColorCheck | ( | struct EditMesh * | em | ) |
Definition at line 1952 of file editmesh.c.
References CD_MCOL, CustomData_has_layer(), EditMesh::faces, EditMesh::fdata, and ListBase::first.
Referenced by mesh_mirror_colors(), and mesh_rotate_colors().
void free_editMesh | ( | struct EditMesh * | em | ) |
Definition at line 507 of file editmesh.c.
References EditMesh::act_face, EditMesh::alledges, EditMesh::allfaces, EditMesh::allverts, BLI_freelistN(), EditMesh::curedge, EditMesh::curface, EditMesh::curvert, CustomData_free(), EditMesh::derivedCage, EditMesh::derivedFinal, EditMesh::edges, EDHASHSIZE, HashEdge::eed, EditMesh::faces, EditMesh::fdata, ListBase::first, free_edgelist(), free_facelist(), free_vertlist(), EditMesh::hashedgetab, max, MEM_freeN(), mesh_mirrtopo_table(), mesh_octree_table(), DerivedMesh::needsFree, HashEdge::next, NULL, DerivedMesh::release, EditMesh::selected, EditMesh::totedge, EditMesh::totface, EditMesh::totvert, EditMesh::vdata, and EditMesh::verts.
Referenced by bevel_menu(), drop_named_image_invoke(), ED_editors_exit(), ED_object_exit_editmode(), join_mesh_exec(), make_editMesh(), mesh_separate_selected(), and undoMesh_to_editMesh().
int join_mesh_exec | ( | struct bContext * | C, |
struct wmOperator * | op | ||
) |
Definition at line 91 of file meshtools.c.
References Object::actdef, add_key(), KeyBlock::adrcode, BKE_report(), BKE_reportf(), BLI_addtail(), BLI_findlink(), BLI_remlink(), Key::block, CD_CALLOC, CD_DEFAULT, CD_MASK_MESH, CD_MDEFORMVERT, CD_MEDGE, CD_MFACE, CD_MVERT, MVert::co, copy_key(), CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CustomData_add_layer(), CustomData_copy_data(), CustomData_free(), CustomData_get(), CustomData_merge(), DAG_id_tag_update(), DAG_scene_sort(), Object::data, KeyBlock::data, MDeformWeight::def_nr, Object::defbase, defgroup_find_name(), MDeformVert::dw, ED_base_object_free_and_unlink(), ED_object_enter_editmode(), ED_object_exit_editmode(), EM_DO_UNDO, EM_FREEDATA, EM_WAITCURSOR, Mesh::fdata, ListBase::first, free_editMesh(), free_ipo(), free_key(), give_current_material(), i, Material::id, Object::id, id_us_plus(), invert_m4_m4(), Main::ipo, Main::key, Mesh::key, key_get_named_keyblock(), KEY_RELATIVE, ListBase::last, load_editMesh(), make_editMesh(), Object::mat, Mesh::mat, MFace::mat_nr, Object::matbits, MAXMAT, MEM_callocN(), MEM_dupallocN(), MEM_freeN(), MESH_MAX_VERTS, mesh_update_customdata_pointers(), mul_m4_v3(), mult_m4_m4m4(), multiresModifier_prepare_join(), bDeformGroup::name, KeyBlock::name, NC_SCENE, ND_OB_ACTIVE, KeyBlock::next, bDeformGroup::next, NULL, OB_MESH, OB_RECALC_DATA, OB_RECALC_OB, Scene::obedit, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, KeyBlock::pos, KeyBlock::prev, Key::refkey, wmOperator::reports, RPT_WARNING, STRINGIFY, test_object_materials(), Object::totcol, Mesh::totcol, Mesh::totedge, KeyBlock::totelem, Mesh::totface, LaplacianSystem::totface, Key::totkey, LaplacianSystem::totvert, Mesh::totvert, MDeformVert::totweight, Key::type, Object::type, ID::us, MEdge::v1, MFace::v1, MEdge::v2, MFace::v2, MFace::v3, MFace::v4, VECCOPY, KeyBlock::weights, and WM_event_add_notifier().
Referenced by join_exec().
int join_mesh_shapes_exec | ( | struct bContext * | C, |
struct wmOperator * | op | ||
) |
Definition at line 547 of file meshtools.c.
References add_key(), add_keyblock(), BKE_report(), CD_MASK_BAREMESH, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), Object::data, DM_to_meshkey(), if(), Mesh::key, KEY_RELATIVE, mesh_get_derived_deform(), mesh_to_key(), NC_SCENE, ND_OB_ACTIVE, NULL, OB_MESH, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, Mesh::totvert, and WM_event_add_notifier().
Referenced by join_shapes_exec().
Definition at line 950 of file editmesh.c.
References Mesh::act_face, Scene::base, BLI_findlink(), Key::block, EditEdge::bweight, MEdge::bweight, EditVert::bweight, MVert::bweight, CD_ASSIGN, CD_CALLOC, CD_MASK_MESH, CD_MEDGE, CD_MFACE, CD_MVERT, EditVert::co, MVert::co, EditEdge::crease, MEdge::crease, CustomData_add_layer(), CustomData_copy(), CustomData_free(), CustomData_from_em_block(), CustomData_set_layer(), EditSelection::data, KeyBlock::data, EditFace::data, EditEdge::data, EditVert::data, Object::data, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edata, edge_drawflags(), EditMesh::edges, Mesh::edit_mesh, EDITEDGE, EDITFACE, EDITVERT, ELEM, Key::elemsize, EM_FGON, EM_get_actFace(), EM_stats_update(), eModifierType_Hook, EditFace::f, EditEdge::f, EditVert::f, EditEdge::f2, EditMesh::faces, EditMesh::fdata, Mesh::fdata, ListBase::first, EditFace::flag, MFace::flag, MEdge::flag, MVert::flag, G, EditFace::h, EditEdge::h, EditVert::h, i, Mesh::id, Object::id, if(), MSelect::index, HookModifierData::indexar, Mesh::key, KEY_RELATIVE, EditVert::keyindex, EditFace::l, EditEdge::l, EditVert::l, EditFace::mat_nr, MFace::mat_nr, ME_EDGEDRAW, ME_EDGERENDER, ME_FACE_SEL, ME_FGON, ME_HIDE, ME_LOOSEEDGE, ME_SEAM, ME_SHARP, MEM_callocN(), MEM_freeN(), mesh_calc_normals(), mesh_update_customdata_pointers(), Mesh::mface, Object::modifiers, Mesh::mselect, multires_topology_changed(), Mesh::mvert, Base::next, EditSelection::next, KeyBlock::next, ModifierData::next, ID::next, EditFace::next, EditEdge::next, EditVert::next, EditVert::no, MVert::no, normal_float_to_short_v3(), NULL, OB_RECALC_DATA, Base::object, Object::par1, Object::par2, Object::par3, Object::parent, Object::partype, PARVERT1, PARVERT3, Object::recalc, Key::refkey, KeyBlock::relative, EditEdge::seam, SELECT, EditMesh::selected, EditMesh::shapenr, EditEdge::sharp, sub_v3_v3v3(), test_index_face(), EditFace::tmp, EditEdge::tmp, EditVert::tmp, Mesh::totedge, EditMesh::totedge, KeyBlock::totelem, Mesh::totface, EditMesh::totface, HookModifierData::totindex, Mesh::totselect, Mesh::totvert, EditMesh::totvert, EditSelection::type, MSelect::type, Key::type, ModifierData::type, ID::us, EditFace::v1, MFace::v1, EditEdge::v1, MEdge::v1, EditFace::v2, MFace::v2, EditEdge::v2, MEdge::v2, EditFace::v3, MFace::v3, MFace::v4, EditFace::v4, EditMesh::vdata, VECADD, VECCOPY, and EditMesh::verts.
Referenced by drop_named_image_invoke(), ED_object_exit_editmode(), join_mesh_exec(), mesh_separate_selected(), object_hook_index_array(), and vertex_parent_set_exec().
Definition at line 730 of file editmesh.c.
References Mesh::act_face, EditMesh::act_face, Object::actcol, addedgelist(), addfacelist(), addvertlist(), BLI_addtail(), MEdge::bweight, EditEdge::bweight, MVert::bweight, EditVert::bweight, CD_CALLOC, CD_MASK_EDITMESH, MVert::co, co, MEdge::crease, EditEdge::crease, CustomData_copy(), CustomData_to_em_block(), EditSelection::data, EditFace::data, EditEdge::data, EditVert::data, KeyBlock::data, Object::data, EditMesh::edata, Mesh::edit_mesh, EDITEDGE, EDITFACE, EDITVERT, EM_FGON, EM_fgon_flags(), EM_free_index_arrays(), EM_get_actFace(), EM_get_edge_for_index(), EM_get_face_for_index(), EM_get_vert_for_index(), EM_hide_reset(), EM_init_index_arrays(), EM_select_edge(), EM_select_face(), EM_selectmode_set(), EM_set_actFace(), end_editmesh_fastmalloc(), error(), EditFace::f, EditEdge::f, EditVert::f, EditMesh::faces, FALSE, EditMesh::fdata, Mesh::fdata, ListBase::first, MFace::flag, EditFace::flag, MEdge::flag, MVert::flag, free_editMesh(), EditFace::h, EditEdge::h, EditVert::h, MSelect::index, init_editmesh_fastmalloc(), EditVert::keyindex, MFace::mat_nr, EditFace::mat_nr, EditMesh::mat_nr, ME_FACE_SEL, ME_FGON, ME_HIDE, ME_SEAM, ME_SHARP, Mesh::medge, MEM_callocN(), MEM_freeN(), MEM_mallocN(), Mesh::mface, Mesh::mselect, Mesh::mvert, MVert::no, EditVert::no, normal_short_to_float_v3(), NULL, ob_get_keyblock(), paint_facesel_test(), paint_vertsel_test(), SCE_SELECT_EDGE, EditEdge::seam, SELECT, EditMesh::selected, ToolSettings::selectmode, EditMesh::selectmode, Object::shapenr, EditMesh::shapenr, EditEdge::sharp, Scene::toolsettings, Mesh::totedge, EditMesh::totedge, KeyBlock::totelem, totelem, Mesh::totface, EditMesh::totface, Mesh::totselect, Mesh::totvert, EditMesh::totvert, EditSelection::type, MSelect::type, undo_editmode_clear(), EditFace::v1, MFace::v1, EditEdge::v1, MEdge::v1, EditFace::v2, MFace::v2, EditEdge::v2, MEdge::v2, EditFace::v3, MFace::v3, EditFace::v4, MFace::v4, and EditMesh::vdata.
Referenced by drop_named_image_invoke(), ED_object_enter_editmode(), join_mesh_exec(), mesh_separate_selected(), object_hook_index_array(), remake_editMesh(), and vertex_parent_set_exec().
Definition at line 1052 of file meshtools.c.
References BLI_ghash_free(), BLI_ghash_insert(), BLI_ghash_lookup(), BLI_ghash_new(), Object::data, MEM_callocN(), MEM_freeN(), mesh_get_x_mirror_vert(), mesh_octree_table(), Mesh::mface, mirror_facecmp(), mirror_facehash(), mirror_facerotation(), Mesh::mvert, NULL, SWAP, Mesh::totface, Mesh::totvert, MFace::v1, MFace::v2, MFace::v3, and MFace::v4.
Referenced by PE_mirror_x().
int mesh_get_x_mirror_vert | ( | struct Object * | ob, |
int | index | ||
) |
Definition at line 894 of file meshtools.c.
References Object::data, ME_EDIT_MIRROR_TOPO, mesh_get_x_mirror_vert_spacial(), and mesh_get_x_mirror_vert_topo().
Referenced by do_weight_paint_vertex(), ED_vgroup_mirror(), envelope_bone_weighting(), heat_bone_weighting(), mesh_get_x_mirror_faces(), object_shape_key_mirror(), and wpaint_fill().
int mesh_mirrtopo_table | ( | struct Object * | ob, |
char | mode | ||
) |
Definition at line 856 of file meshtools.c.
References Object::data, ED_mesh_mirrtopo_free(), ED_mesh_mirrtopo_init(), ED_mesh_mirrtopo_recalc_check(), FALSE, mesh_mirrtopo_table(), and Object::mode.
Referenced by ED_editors_exit(), ED_object_exit_editmode(), editmesh_get_x_mirror_vert_topo(), free_editMesh(), mesh_get_x_mirror_vert_topo(), mesh_mirrtopo_table(), and set_wpaint().
Definition at line 761 of file meshtools.c.
References MVert::co, EditVert::co, Object::data, DO_MINMAX, Mesh::edit_mesh, ListBase::first, INIT_MINMAX, max, MEM_callocN(), MEM_freeN(), mesh_octree_add_nodes(), mesh_octree_find_index(), mesh_octree_free_node(), mesh_octree_get_base_offs(), mesh_octree_table(), MeshOctree, min, MOC_RES, MOC_THRESH, mul_v3_fl(), Mesh::mvert, EditVert::next, NULL, sub_v3_v3v3(), VECCOPY, and EditMesh::verts.
Referenced by add_verts_to_dgroups(), ED_editors_exit(), ED_object_exit_editmode(), editmesh_get_x_mirror_vert_spacial(), free_editMesh(), mesh_get_x_mirror_faces(), mesh_get_x_mirror_vert_spacial(), mesh_octree_table(), object_shape_key_mirror(), set_wpaint(), and special_aftertrans_update().
int mouse_mesh | ( | struct bContext * | C, |
const int | mval[2], | ||
short | extend | ||
) |
Definition at line 2276 of file editmesh_mods.c.
References Object::actcol, Object::data, EDITEDGE, EDITFACE, EDITVERT, ViewContext::em, EM_clear_flag_all(), EM_remove_selection(), EM_select_edge(), EM_select_face_fgon(), EM_selectmode_flush(), EM_set_actFace(), em_setup_viewcontext(), EM_store_selection(), EditEdge::f, EditVert::f, EditFace::f, EditMesh::mat_nr, EditFace::mat_nr, ViewContext::mval, NC_GEOM, NC_MATERIAL, ND_SELECT, ND_SHADING, NULL, ViewContext::obedit, SELECT, unified_findnearest(), and WM_event_add_notifier().
Referenced by view3d_select_invoke().
void paintface_deselect_all_visible | ( | struct Object * | ob, |
int | action, | ||
short | flush_flags | ||
) |
Definition at line 349 of file editface.c.
References MFace::flag, get_mesh(), ME_FACE_SEL, ME_HIDE, Mesh::mface, NULL, paintface_flush_flags(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, and Mesh::totface.
Referenced by do_lasso_select_paintface(), do_paintface_box_select(), face_select_all_exec(), and face_select_inverse_exec().
void paintface_flush_flags | ( | struct Object * | ob | ) |
Definition at line 70 of file editface.c.
References CD_ORIGINDEX, Object::derivedFinal, MFace::flag, get_mesh(), DerivedMesh::getFaceArray, DerivedMesh::getFaceDataArray, DerivedMesh::getNumFaces, i, Mesh::mface, and NULL.
Referenced by do_lasso_select_paintface(), do_paintface_box_select(), paintface_deselect_all_visible(), paintface_hide(), paintface_mouse_select(), paintface_reveal(), and paintface_select_linked().
void paintface_hide | ( | struct Object * | ob, |
const int | unselected | ||
) |
Definition at line 158 of file editface.c.
References MFace::flag, get_mesh(), ME_FACE_SEL, ME_HIDE, Mesh::mface, NULL, paintface_flush_flags(), and Mesh::totface.
Referenced by face_select_hide_exec().
int paintface_minmax | ( | struct Object * | ob, |
float * | min, | ||
float * | max | ||
) |
Definition at line 408 of file editface.c.
References DO_MINMAX, MFace::flag, get_mesh(), i, ME_FACE_SEL, ME_HIDE, Mesh::mface, mul_v3_m4v3(), Mesh::mvert, NULL, Object::obmat, Mesh::totface, MFace::v1, MFace::v4, and NurbSort::vec.
Referenced by viewselected_exec().
int paintface_mouse_select | ( | struct bContext * | C, |
struct Object * | ob, | ||
const int | mval[2], | ||
int | extend | ||
) |
Definition at line 716 of file editface.c.
References Mesh::act_face, CTX_wm_region(), Object::data, ED_region_tag_redraw(), facesel_face_pick(), MFace::flag, get_mesh(), ME_FACE_SEL, ME_HIDE, Mesh::mface, NC_GEOM, ND_SELECT, paintface_flush_flags(), Mesh::totface, and WM_event_add_notifier().
Referenced by view3d_select_invoke().
void paintface_reveal | ( | struct Object * | ob | ) |
Definition at line 187 of file editface.c.
References MFace::flag, get_mesh(), ME_FACE_SEL, ME_HIDE, Mesh::mface, NULL, paintface_flush_flags(), and Mesh::totface.
Referenced by face_select_reveal_exec().
Referenced by paint_select_linked_exec(), and paint_select_linked_pick_invoke().
void paintvert_deselect_all_visible | ( | struct Object * | ob, |
int | action, | ||
short | flush_flags | ||
) |
Definition at line 2012 of file editmesh.c.
References MVert::flag, get_mesh(), ME_HIDE, Mesh::mvert, NULL, paintvert_flush_flags(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, and Mesh::totvert.
Referenced by do_lasso_select_paintvert(), do_paintvert_box_select(), mouse_weight_paint_vertex_select(), vert_select_all_exec(), and vert_select_inverse_exec().
void paintvert_flush_flags | ( | struct Object * | ob | ) |
Definition at line 1977 of file editmesh.c.
References CD_ORIGINDEX, Object::derivedFinal, MVert::flag, get_mesh(), DerivedMesh::getNumVerts, DerivedMesh::getVertArray, DerivedMesh::getVertDataArray, i, Mesh::mvert, NULL, and ORIGINDEX_NONE.
Referenced by do_lasso_select_paintvert(), do_paintvert_box_select(), mouse_weight_paint_vertex_select(), paint_vertsel_circle_select(), paintvert_deselect_all_visible(), and vgroup_select_verts().
void recalc_editnormals | ( | struct EditMesh * | em | ) |
Definition at line 2007 of file editmesh_lib.c.
References accumulate_vertex_normals(), EditFace::cent, cent_quad_v3(), cent_tri_v3(), EditVert::co, copy_v3_v3(), EditMesh::faces, ListBase::first, EditFace::n, EditFace::next, EditVert::next, EditVert::no, normal_quad_v3(), normal_tri_v3(), normalize_v3(), NULL, EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, EditMesh::verts, and zero_v3().
Referenced by addedgeface_mesh(), delete_mesh(), dupli_extrude_cursor(), edge_drawflags(), EM_mesh_copy_edge(), EM_recalc_normal_direction(), esubdivideflag(), extrude_repeat_mesh_exec(), extrudeflag_edge(), extrudeflag_edges_indiv(), extrudeflag_face_indiv(), filterSmartReebGraph(), flip_normals(), make_prim(), merge_exec(), mesh_noise_exec(), mesh_set_smooth_faces(), object_origin_set_exec(), recalcData_view3d(), removedoublesflag_exec(), smooth_vertex(), solidify_exec(), special_transvert_update(), spin_mesh(), split_mesh(), and v3d_editvertex_buts().
Definition at line 1331 of file editmesh.c.
References BIF_undo_push(), DAG_id_tag_update(), Object::id, make_editMesh(), and OB_RECALC_DATA.
Definition at line 3926 of file editmesh_tools.c.
References EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::faces, ListBase::first, EditFace::next, and NULL.
Referenced by createSlideVerts().
void undo_push_mesh | ( | struct bContext * | C, |
const char * | name | ||
) |
Definition at line 1861 of file editmesh.c.
References editMesh_to_undoMesh(), free_undoMesh(), getEditMesh(), NULL, undo_editmode_push(), and undoMesh_to_editMesh().
Referenced by ED_undo_push().
unsigned int em_solidoffs |
Definition at line 157 of file editmesh_mods.c.
Referenced by do_lasso_select_mesh__doSelectEdge(), do_mesh_box_select__doSelectEdge(), draw_object_backbufsel(), and EM_backbuf_checkAndSelectEdges().
unsigned int em_vertoffs |
Definition at line 157 of file editmesh_mods.c.
Referenced by do_lasso_select_paintface(), do_lasso_select_paintvert(), draw_object_backbufsel(), EM_check_backbuf(), EM_init_backbuf_border(), EM_init_backbuf_circle(), EM_mask_init_backbuf_border(), paint_facesel_circle_select(), and paint_vertsel_circle_select().
unsigned int em_wireoffs |
Definition at line 157 of file editmesh_mods.c.
Referenced by draw_object_backbufsel(), EM_backbuf_checkAndSelectVerts(), findnearestedge(), and findnearestvert().