Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions | Variables

ED_mesh.h File Reference

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 EditVerteditmesh_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 EditVertEM_get_vert_for_index (int index)
struct EditEdgeEM_get_edge_for_index (int index)
struct EditFaceEM_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 EditFaceEM_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 UvVertMapEM_make_uv_vert_map (struct EditMesh *em, int selected, int do_face_idx_array, float *limit)
struct UvMapVertEM_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 MTFaceEM_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 bDeformGroupED_vgroup_add (struct Object *ob)
struct bDeformGroupED_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 EditVerteditedge_getOtherVert (struct EditEdge *eed, struct EditVert *eve)
struct EditVerteditedge_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

Detailed Description

Definition in file ED_mesh.h.


Define Documentation

#define B_AUTOFGON   0x20

Definition at line 77 of 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_MAT   0X1000

Definition at line 84 of file ED_mesh.h.

#define B_JOINTRIA_SHARP   0X800

Definition at line 83 of file ED_mesh.h.

#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
#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
#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 Documentation


Function Documentation

int do_paintface_box_select ( struct ViewContext vc,
struct rcti rect,
int  select,
int  extend 
)
void ED_keymap_mesh ( struct wmKeyConfig keyconf)
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 
)
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 
)
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_material_link ( struct Mesh me,
struct Material ma 
)
void ED_mesh_mirrtopo_free ( 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 
)
int ED_mesh_mirrtopo_recalc_check ( struct Mesh me,
const int  ob_mode,
MirrTopoStore_t mesh_topo_store 
)
void ED_mesh_transform ( struct Mesh me,
float *  mat 
)
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 
)
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  )
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]
struct bDeformGroup* ED_vgroup_add_name ( struct Object ob,
const char *  name 
) [read]
void ED_vgroup_clear ( struct Object ob)
int ED_vgroup_copy_array ( struct Object ob,
struct Object ob_from 
)
int ED_vgroup_data_create ( struct ID id)
void ED_vgroup_delete ( struct Object ob,
struct bDeformGroup defgroup 
)
int ED_vgroup_give_array ( struct ID id,
struct MDeformVert **  dvert_arr,
int *  dvert_tot 
)
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)

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 
)
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 
)

Definition at line 556 of file object_vgroup.c.

References BLI_findindex(), Object::defbase, and get_vert_def_nr().

Referenced by heat_bone_weighting().

int editedge_containsVert ( struct EditEdge eed,
struct EditVert eve 
)

Definition at line 437 of file editmesh.c.

References EditEdge::v1, and EditEdge::v2.

Referenced by createSlideVerts().

struct EditVert* editedge_getOtherVert ( struct EditEdge eed,
struct EditVert eve 
) [read]

Definition at line 415 of file editmesh.c.

References NULL, EditEdge::v1, and EditEdge::v2.

Referenced by createSlideVerts(), and doEdgeSlide().

struct EditVert* editedge_getSharedVert ( struct EditEdge eed,
struct EditEdge eed2 
) [read]

Definition at line 426 of file editmesh.c.

References NULL, EditEdge::v1, and EditEdge::v2.

Referenced by createSlideVerts(), and doEdgeSlide().

int editface_containsEdge ( struct EditFace efa,
struct EditEdge eed 
)

Definition at line 447 of file editmesh.c.

References EditFace::e1, EditFace::e2, EditFace::e3, and EditFace::e4.

Referenced by createSlideVerts().

int editface_containsVert ( struct EditFace efa,
struct EditVert eve 
)

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]
void EM_add_data_layer ( struct EditMesh em,
struct CustomData data,
int  type,
const char *  name 
)
void EM_automerge ( struct Scene scene,
struct Object obedit,
int  update 
)
void EM_cache_x_mirror_vert ( struct Object ob,
struct EditMesh em 
)
int EM_check_backbuf ( unsigned int  index)
void EM_convertsel ( struct EditMesh em,
short  oldmode,
short  selectmode 
)
void EM_deselect_all ( struct EditMesh em)
void EM_deselect_by_material ( struct EditMesh em,
int  index 
)
void EM_deselect_flush ( struct EditMesh em)
int EM_deselect_nth ( struct EditMesh em,
int  nth 
)
void EM_editselection_center ( float *  center,
struct EditSelection ese 
)
void EM_editselection_normal ( float *  normal,
struct EditSelection ese 
)
void EM_editselection_plane ( float *  plane,
struct EditSelection ese 
)
float EM_face_area ( struct EditFace efa)
void EM_free_backbuf ( void  )
void EM_free_data_layer ( struct EditMesh em,
struct CustomData data,
int  type 
)
void EM_free_index_arrays ( void  )
void EM_free_uv_vert_map ( struct UvVertMap vmap)
struct EditFace* EM_get_actFace ( struct EditMesh em,
int  sloppy 
) [read]
struct MTFace* EM_get_active_mtface ( struct EditMesh em,
struct EditFace **  act_efa,
struct MCol **  mcol,
int  sloppy 
) [read]
int EM_get_actSelection ( struct EditMesh em,
struct EditSelection ese 
)
struct EditEdge* EM_get_edge_for_index ( int  index) [read]
struct EditFace* EM_get_face_for_index ( int  index) [read]
struct UvMapVert* EM_get_uv_map_vert ( struct UvVertMap vmap,
unsigned int  v 
) [read]

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]
void EM_hide_mesh ( struct EditMesh em,
int  swap 
)
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_init_index_arrays ( struct EditMesh em,
int  forVert,
int  forEdge,
int  forFace 
)
void EM_make_hq_normals ( struct EditMesh em)
struct UvVertMap* EM_make_uv_vert_map ( struct EditMesh em,
int  selected,
int  do_face_idx_array,
float *  limit 
) [read]
int EM_mask_init_backbuf_border ( struct ViewContext vc,
int  mcords[][2],
short  tot,
short  xmin,
short  ymin,
short  xmax,
short  ymax 
)
void EM_project_snap_verts ( struct bContext C,
struct ARegion ar,
struct Object obedit,
struct EditMesh em 
)
void EM_reveal_mesh ( struct EditMesh em)
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 
)
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_flush ( struct EditMesh em)
void EM_select_swap ( struct EditMesh em)
void EM_selectmode_flush ( struct EditMesh em)
void EM_selectmode_set ( struct EditMesh em)
void EM_selectmode_to_scene ( struct Scene scene,
struct Object obedit 
)
void EM_set_actFace ( struct EditMesh em,
struct EditFace efa 
)
void EM_solidify ( struct EditMesh em,
float  dist 
)
int EM_texFaceCheck ( struct EditMesh em)
void EM_toggle_select_all ( struct EditMesh em)
void EM_validate_selections ( struct EditMesh em)
int EM_vertColorCheck ( struct EditMesh em)
void free_editMesh ( struct EditMesh em)
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 
)
void load_editMesh ( struct Scene scene,
struct Object ob 
)

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().

void make_editMesh ( struct Scene scene,
struct Object ob 
)

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().

int* mesh_get_x_mirror_faces ( struct Object ob,
struct EditMesh em 
)
int mesh_get_x_mirror_vert ( struct Object ob,
int  index 
)
int mesh_mirrtopo_table ( struct Object ob,
char  mode 
)
intptr_t mesh_octree_table ( struct Object ob,
struct EditMesh em,
float *  co,
char  mode 
)
int mouse_mesh ( struct bContext C,
const int  mval[2],
short  extend 
)
void paintface_deselect_all_visible ( struct Object ob,
int  action,
short  flush_flags 
)
void paintface_flush_flags ( struct Object ob)
void paintface_hide ( struct Object ob,
const int  unselected 
)
int paintface_minmax ( struct Object ob,
float *  min,
float *  max 
)
int paintface_mouse_select ( struct bContext C,
struct Object ob,
const int  mval[2],
int  extend 
)
void paintface_reveal ( struct Object ob)
void paintface_select_linked ( struct bContext C,
struct Object ob,
int  mval[2],
int  mode 
)
void paintvert_deselect_all_visible ( struct Object ob,
int  action,
short  flush_flags 
)
void paintvert_flush_flags ( struct Object ob)
void recalc_editnormals ( struct EditMesh em)
void remake_editMesh ( struct Scene scene,
struct Object ob 
)
short sharesFace ( struct EditMesh em,
struct EditEdge e1,
struct EditEdge e2 
)
void undo_push_mesh ( struct bContext C,
const char *  name 
)

Variable Documentation

unsigned int em_solidoffs
unsigned int em_vertoffs
unsigned int em_wireoffs