Blender V2.61 - r43446
|
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "BLO_sys_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_key_types.h"
#include "MEM_guardedalloc.h"
#include "RNA_define.h"
#include "RNA_access.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_editVert.h"
#include "BLI_rand.h"
#include "BLI_ghash.h"
#include "BLI_linklist.h"
#include "BLI_heap.h"
#include "BLI_scanfill.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_global.h"
#include "BKE_key.h"
#include "BKE_mesh.h"
#include "BKE_bmesh.h"
#include "BKE_report.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_view3d.h"
#include "ED_object.h"
#include "mesh_intern.h"
Go to the source code of this file.
Classes | |
struct | xvertsort |
struct | facesort |
struct | Collection |
struct | CollectedEdge |
struct | wUV |
struct | wUVNode |
struct | wUVEdge |
struct | wUVEdgeCollect |
struct | PathNode |
struct | PathEdge |
Defines | |
#define | add_numbut(a, b, c, d, e, f, g) {} |
#define | EDGENEW 2 |
#define | FACENEW 2 |
#define | EDGEINNER 4 |
#define | EDGEOLD 8 |
#define | DOUBLEOPFILL 16 |
#define | VTEST(face, num, other) (face->v##num != other->v1 && face->v##num != other->v2 && face->v##num != other->v3) |
#define | T2QUV_LIMIT 0.005f |
#define | T2QCOL_LIMIT 3 |
#define | T2QDELETE 1 |
#define | T2QCOMPLEX 2 |
#define | T2QJOIN 4 |
#define | FACE_MARKCLEAR(f) (f->f1 = 1) |
#define | DIRECTION_CW 1 |
#define | DIRECTION_CCW 2 |
#define | AXIS_X 1 |
#define | AXIS_Y 2 |
#define | MERGELIMIT 0.000001 |
#define | PATH_SELECT_EDGE_LENGTH 0 |
#define | PATH_SELECT_TOPOLOGICAL 1 |
Typedefs | |
typedef struct xvertsort | xvertsort |
typedef EditFace * | EVPtr |
typedef EVPtr | EVPTuple [2] |
typedef struct Collection | Collection |
typedef struct CollectedEdge | CollectedEdge |
typedef struct wUV | wUV |
typedef struct wUVNode | wUVNode |
typedef struct wUVEdge | wUVEdge |
typedef struct wUVEdgeCollect | wUVEdgeCollect |
typedef struct PathNode | PathNode |
typedef struct PathEdge | PathEdge |
Functions | |
static void | waitcursor (int UNUSED(val)) |
static void | free_tagged_edges_faces (EditMesh *em, EditEdge *eed, EditFace *efa) |
int | EdgeLoopDelete (EditMesh *em, wmOperator *op) |
static int | vergxco (const void *v1, const void *v2) |
static int | vergface (const void *v1, const void *v2) |
static void | convert_to_triface (EditMesh *em, int direction) |
int | removedoublesflag (EditMesh *em, short flag, short automerge, float limit) |
static int | removedoublesflag_exec (bContext *C, wmOperator *op) |
void | MESH_OT_remove_doubles (wmOperatorType *ot) |
static void | xsortvert_flag__doSetX (void *userData, EditVert *UNUSED(eve), int x, int UNUSED(y), int index) |
static void | xsortvert_flag (bContext *C, int flag) |
static int | mesh_vertices_sort_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_vertices_sort (wmOperatorType *ot) |
static void | hashvert_flag (EditMesh *em, int flag) |
static int | mesh_vertices_randomize_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_vertices_randomize (wmOperatorType *ot) |
static void | extrude_mesh (Object *obedit, EditMesh *em, wmOperator *op, short type) |
static int | mesh_extrude_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event)) |
static int | mesh_extrude_exec (bContext *C, wmOperator *op) |
static EnumPropertyItem * | mesh_extrude_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free) |
void | MESH_OT_extrude (wmOperatorType *ot) |
static int | split_mesh (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_split (wmOperatorType *ot) |
static int | extrude_repeat_mesh_exec (bContext *C, wmOperator *op) |
static int | extrude_repeat_mesh_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event)) |
void | MESH_OT_extrude_repeat (wmOperatorType *ot) |
static int | spin_mesh (bContext *C, wmOperator *op, float *dvec, int steps, float degr, int dupli) |
static int | spin_mesh_exec (bContext *C, wmOperator *op) |
static int | spin_mesh_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event)) |
void | MESH_OT_spin (wmOperatorType *ot) |
static int | screw_mesh_exec (bContext *C, wmOperator *op) |
static int | screw_mesh_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event)) |
void | MESH_OT_screw (wmOperatorType *ot) |
static void | erase_edges (EditMesh *em, ListBase *l) |
static void | erase_faces (EditMesh *em, ListBase *l) |
static void | erase_vertices (EditMesh *em, ListBase *l) |
static void | delete_mesh (EditMesh *em, wmOperator *op, int event) |
static int | delete_mesh_exec (bContext *C, wmOperator *op) |
void | MESH_OT_delete (wmOperatorType *ot) |
static void | alter_co (float *co, EditEdge *edge, float smooth, float fractal, int beauty, float perc) |
static EditVert * | subdivide_edge_addvert (EditMesh *em, EditEdge *edge, float smooth, float fractal, int beauty, float percent) |
static void | flipvertarray (EditVert **arr, short size) |
static void | facecopy (EditMesh *em, EditFace *source, EditFace *target) |
static void | fill_quad_single (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts, int seltype) |
static void | fill_tri_single (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts, int seltype) |
static void | fill_quad_double_op (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts) |
static void | fill_quad_double_adj_path (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts) |
static void | fill_quad_double_adj_fan (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts) |
static void | fill_quad_double_adj_inner (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts) |
static void | fill_tri_double (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts) |
static void | fill_quad_triple (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts) |
static void | fill_quad_quadruple (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts, float smooth, float fractal, int beauty) |
static void | fill_tri_triple (EditMesh *em, EditFace *efa, struct GHash *gh, int numcuts, float smooth, float fractal, int beauty) |
static void | fill_quad_doublevert (EditMesh *em, EditFace *efa, int v1, int v2) |
static void | fill_quad_singlevert (EditMesh *em, EditFace *efa, struct GHash *gh) |
static EditVert * | subdivideedgenum (EditMesh *em, EditEdge *edge, int curpoint, int totpoint, float smooth, float fractal, int beauty) |
void | esubdivideflag (Object *obedit, EditMesh *em, int flag, float smooth, float fractal, int beauty, int numcuts, int corner_pattern, int seltype) |
static int | count_selected_edges (EditEdge *ed) |
static int | collect_quadedges (EVPTuple *efaa, EditEdge *eed, EditFace *efa) |
static void | givequadverts (EditFace *efa, EditFace *efa1, EditVert **v1, EditVert **v2, EditVert **v3, EditVert **v4, int *vindex) |
static void | untag_edges (EditFace *f) |
static float | measure_facepair (EditVert *v1, EditVert *v2, EditVert *v3, EditVert *v4, float limit) |
static int | compareFaceAttribs (EditMesh *em, EditFace *f1, EditFace *f2, EditEdge *eed) |
static int | fplcmp (const void *v1, const void *v2) |
void | join_triangles (EditMesh *em) |
static void | edge_flip (EditMesh *em) |
static void | edge_rotate (EditMesh *em, wmOperator *op, EditEdge *eed, int dir) |
static int | edge_rotate_selected (bContext *C, wmOperator *op) |
void | MESH_OT_edge_rotate (wmOperatorType *ot) |
static void UNUSED_FUNCTION() | bevel_menu (EditMesh *em) |
short | sharesFace (EditMesh *em, EditEdge *e1, EditEdge *e2) |
int | EdgeLoopDelete (EditMesh *UNUSED(em), wmOperator *UNUSED(op)) |
static float | mesh_rip_edgedist (ARegion *ar, float mat[][4], float *co1, float *co2, const int mval[2]) |
static void | mesh_rip_setface (EditMesh *em, EditFace *sefa) |
static int | mesh_rip_invoke (bContext *C, wmOperator *op, wmEvent *event) |
void | MESH_OT_rip (wmOperatorType *ot) |
static void | shape_propagate (Object *obedit, EditMesh *em, wmOperator *op) |
static int | shape_propagate_to_all_exec (bContext *C, wmOperator *op) |
void | MESH_OT_shape_propagate_to_all (wmOperatorType *ot) |
static int | blend_from_shape_exec (bContext *C, wmOperator *op) |
static EnumPropertyItem * | shape_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free) |
void | MESH_OT_blend_from_shape (wmOperatorType *ot) |
static void | build_edgecollection (EditMesh *em, ListBase *allcollections) |
static void | freecollections (ListBase *allcollections) |
static void | append_weldedUV (EditMesh *em, EditFace *efa, EditVert *eve, int tfindex, ListBase *uvverts) |
static void | build_weldedUVs (EditMesh *em, ListBase *uvverts) |
static void | append_weldedUVEdge (EditMesh *em, EditFace *efa, EditEdge *eed, ListBase *uvedges) |
static void | build_weldedUVEdges (EditMesh *em, ListBase *uvedges, ListBase *uvverts) |
static void | free_weldedUVs (ListBase *uvverts) |
static void | collapse_edgeuvs (EditMesh *em) |
static void | collapseuvs (EditMesh *em, EditVert *mergevert) |
static int | collapseEdges (EditMesh *em) |
static int | merge_firstlast (EditMesh *em, int first, int uvmerge) |
static void | em_snap_to_center (EditMesh *em) |
static void | em_snap_to_cursor (EditMesh *em, bContext *C) |
static int | merge_target (bContext *C, EditMesh *em, int target, int uvmerge) |
static int | merge_exec (bContext *C, wmOperator *op) |
static EnumPropertyItem * | merge_type_itemf (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free) |
void | MESH_OT_merge (wmOperatorType *ot) |
static int | select_vertex_path_exec (bContext *C, wmOperator *op) |
void | MESH_OT_select_vertex_path (wmOperatorType *ot) |
static int | region_to_loop (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_region_to_loop (wmOperatorType *ot) |
static int | validate_loop (EditMesh *em, Collection *edgecollection) |
static int | loop_bisect (EditMesh *em, Collection *edgecollection) |
static int | loop_to_region (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_loop_to_region (wmOperatorType *ot) |
static int | mesh_rotate_uvs (bContext *C, wmOperator *op) |
static int | mesh_mirror_uvs (bContext *C, wmOperator *op) |
static int | mesh_rotate_colors (bContext *C, wmOperator *op) |
static int | mesh_mirror_colors (bContext *C, wmOperator *op) |
void | MESH_OT_uvs_rotate (wmOperatorType *ot) |
void | MESH_OT_uvs_mirror (wmOperatorType *ot) |
void | MESH_OT_colors_rotate (wmOperatorType *ot) |
void | MESH_OT_colors_mirror (wmOperatorType *ot) |
static int | subdivide_exec (bContext *C, wmOperator *op) |
void | MESH_OT_subdivide (wmOperatorType *ot) |
static void | beautify_fill (EditMesh *em) |
static void | fill_mesh (EditMesh *em) |
static int | fill_mesh_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_fill (wmOperatorType *ot) |
static int | beautify_fill_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_beautify_fill (wmOperatorType *ot) |
static void | permutate (void *list, int num, int size, int *index) |
static int | float_sort (const void *v1, const void *v2) |
static int | sort_faces_exec (bContext *C, wmOperator *op) |
void | MESH_OT_sort_faces (wmOperatorType *ot) |
static int | quads_convert_to_tris_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_quads_convert_to_tris (wmOperatorType *ot) |
static int | tris_convert_to_quads_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_tris_convert_to_quads (wmOperatorType *ot) |
static int | edge_flip_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_edge_flip (wmOperatorType *ot) |
static void | mesh_set_smooth_faces (EditMesh *em, short smooth) |
static int | mesh_faces_shade_smooth_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_faces_shade_smooth (wmOperatorType *ot) |
static int | mesh_faces_shade_flat_exec (bContext *C, wmOperator *UNUSED(op)) |
void | MESH_OT_faces_shade_flat (wmOperatorType *ot) |
static int | select_axis_exec (bContext *C, wmOperator *op) |
void | MESH_OT_select_axis (wmOperatorType *ot) |
Variables | |
EnumPropertyItem | corner_type_items [] |
static EnumPropertyItem | extrude_items [] |
static EnumPropertyItem | prop_mesh_delete_types [] |
static const EnumPropertyItem | direction_items [] |
static const EnumPropertyItem | axis_items_xy [] |
static EnumPropertyItem | merge_type_items [] |
static float * | face_sort_floats |
Definition in file editmesh_tools.c.
#define add_numbut | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) | {} |
Definition at line 90 of file editmesh_tools.c.
#define AXIS_X 1 |
Definition at line 3597 of file editmesh_tools.c.
Referenced by ntlTree::ntlTree().
#define AXIS_Y 2 |
Definition at line 3598 of file editmesh_tools.c.
Referenced by mesh_mirror_colors(), and mesh_mirror_uvs().
#define DIRECTION_CCW 2 |
Definition at line 3590 of file editmesh_tools.c.
Referenced by edge_rotate(), mesh_rotate_colors(), and mesh_rotate_uvs().
#define DIRECTION_CW 1 |
Definition at line 3589 of file editmesh_tools.c.
Referenced by edge_rotate(), MESH_OT_colors_mirror(), MESH_OT_colors_rotate(), MESH_OT_edge_rotate(), MESH_OT_uvs_mirror(), and MESH_OT_uvs_rotate().
#define DOUBLEOPFILL 16 |
Definition at line 1456 of file editmesh_tools.c.
Referenced by esubdivideflag(), and fill_quad_double_op().
#define EDGEINNER 4 |
Definition at line 1452 of file editmesh_tools.c.
Referenced by esubdivideflag(), fill_quad_double_adj_fan(), fill_quad_double_adj_inner(), fill_quad_double_adj_path(), fill_quad_double_op(), fill_quad_doublevert(), fill_quad_quadruple(), fill_quad_single(), fill_quad_singlevert(), fill_quad_triple(), fill_tri_double(), fill_tri_single(), and fill_tri_triple().
#define EDGENEW 2 |
Definition at line 1450 of file editmesh_tools.c.
Referenced by esubdivideflag(), fill_quad_doublevert(), fill_quad_quadruple(), fill_quad_singlevert(), and fill_tri_triple().
#define EDGEOLD 8 |
Definition at line 1453 of file editmesh_tools.c.
Referenced by esubdivideflag().
#define FACE_MARKCLEAR | ( | f | ) | (f->f1 = 1) |
Definition at line 3496 of file editmesh_tools.c.
Referenced by edge_flip().
#define FACENEW 2 |
Definition at line 1451 of file editmesh_tools.c.
#define MERGELIMIT 0.000001 |
Definition at line 4514 of file editmesh_tools.c.
Referenced by collapseEdges(), merge_firstlast(), and merge_target().
#define PATH_SELECT_EDGE_LENGTH 0 |
Definition at line 5226 of file editmesh_tools.c.
Referenced by MESH_OT_select_vertex_path(), and select_vertex_path_exec().
#define PATH_SELECT_TOPOLOGICAL 1 |
Definition at line 5227 of file editmesh_tools.c.
Referenced by MESH_OT_select_vertex_path().
#define T2QCOL_LIMIT 3 |
Definition at line 3260 of file editmesh_tools.c.
Referenced by compareFaceAttribs().
#define T2QCOMPLEX 2 |
Definition at line 3336 of file editmesh_tools.c.
Referenced by join_triangles().
#define T2QDELETE 1 |
Definition at line 3335 of file editmesh_tools.c.
Referenced by join_triangles().
#define T2QJOIN 4 |
Definition at line 3337 of file editmesh_tools.c.
Referenced by join_triangles().
#define T2QUV_LIMIT 0.005f |
Definition at line 3259 of file editmesh_tools.c.
Referenced by compareFaceAttribs().
#define VTEST | ( | face, | |
num, | |||
other | |||
) | (face->v##num != other->v1 && face->v##num != other->v2 && face->v##num != other->v3) |
Definition at line 3114 of file editmesh_tools.c.
Referenced by givequadverts().
typedef struct CollectedEdge CollectedEdge |
typedef struct Collection Collection |
Definition at line 3026 of file editmesh_tools.c.
Definition at line 3027 of file editmesh_tools.c.
typedef struct wUVEdgeCollect wUVEdgeCollect |
static void alter_co | ( | float * | co, |
EditEdge * | edge, | ||
float | smooth, | ||
float | fractal, | ||
int | beauty, | ||
float | perc | ||
) | [static] |
Definition at line 1459 of file editmesh_tools.c.
References add_v3_v3(), B_FRACTAL, B_SMOOTH, B_SPHERE, BLI_drand(), EditVert::co, copy_v3_v3(), dot_v3v3(), fabs(), fabsf, len(), len_v3v3(), madd_v3_v3fl(), mul_v3_fl(), mul_v3_v3fl(), EditVert::no, normalize_v3(), sqrtf, sub_v3_v3v3(), EditEdge::v1, and EditEdge::v2.
Referenced by subdivide_edge_addvert().
static void append_weldedUV | ( | EditMesh * | em, |
EditFace * | efa, | ||
EditVert * | eve, | ||
int | tfindex, | ||
ListBase * | uvverts | ||
) | [static] |
Definition at line 4633 of file editmesh_tools.c.
References BLI_addtail(), CD_MTFACE, CustomData_em_get(), EditFace::data, wUV::eve, EditMesh::fdata, ListBase::first, MEM_callocN(), wUV::next, wUV::nodes, wUV::u, wUVNode::u, MTFace::uv, wUV::v, and wUVNode::v.
Referenced by build_weldedUVs().
static void append_weldedUVEdge | ( | EditMesh * | em, |
EditFace * | efa, | ||
EditEdge * | eed, | ||
ListBase * | uvedges | ||
) | [static] |
Definition at line 4680 of file editmesh_tools.c.
References BLI_addtail(), CD_MTFACE, CustomData_em_get(), EditFace::data, wUVEdge::eed, EditMesh::fdata, ListBase::first, MEM_callocN(), wUVEdge::next, MTFace::uv, EditFace::v1, EditEdge::v1, wUVEdge::v1uv, EditFace::v2, EditEdge::v2, wUVEdge::v2uv, and EditFace::v3.
Referenced by build_weldedUVEdges().
static void beautify_fill | ( | EditMesh * | em | ) | [static] |
Definition at line 6054 of file editmesh_tools.c.
References area_tri_v3(), EditVert::co, collect_quadedges(), convex(), count_selected_edges(), EditFace::e1, EditFace::e2, EditFace::e3, EditMesh::edges, EM_face_from_faces(), EM_select_face(), EM_select_flush(), EM_selectmode_set(), EditFace::f1, EditEdge::f1, EditEdge::f2, EditMesh::faces, EditFace::fgonf, ListBase::first, free_tagged_edges_faces(), givequadverts(), EditEdge::h, len_v3v3(), MEM_callocN(), MEM_freeN(), EditEdge::next, EditEdge::p, EditEdge::tmp, EditEdge::v1, EditEdge::v2, and simple_enum_gen::w.
Referenced by beautify_fill_exec(), and fill_mesh().
static int beautify_fill_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6326 of file editmesh_tools.c.
References beautify_fill(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_beautify_fill().
static void UNUSED_FUNCTION() bevel_menu | ( | EditMesh * | em | ) | [static] |
Definition at line 3874 of file editmesh_tools.c.
References BME_bevel(), BME_BEVEL_RUNNING, BME_BEVEL_SELECT, BME_bmesh_to_editmesh(), BME_editmesh_to_bmesh(), BME_free_mesh(), BME_free_transdata(), EM_selectmode_flush(), free_editMesh(), G, MEM_callocN(), MEM_freeN(), NULL, and options.
static int blend_from_shape_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 4383 of file editmesh_tools.c.
References add(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), blend(), BLI_findlink(), Key::block, co, EditVert::co, copy_v3_v3(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, data, KeyBlock::data, EditVert::f, ListBase::first, Mesh::id, interp_v3_v3v3(), Mesh::key, EditVert::keyindex, madd_v3_v3fl(), NC_GEOM, ND_DATA, EditVert::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, KeyBlock::relative, RNA_boolean_get(), RNA_enum_get(), RNA_float_get(), SELECT, sub_v3_v3v3(), KeyBlock::totelem, EditMesh::verts, and WM_event_add_notifier().
Referenced by MESH_OT_blend_from_shape().
Definition at line 4516 of file editmesh_tools.c.
References BLI_addtail(), Collection::collectionbase, EditMesh::edges, CollectedEdge::eed, EditEdge::f, ListBase::first, Collection::index, EditVert::l, EditEdge::l, ListBase::last, MEM_mallocN(), EditEdge::next, Collection::next, NULL, SELECT, EditVert::tmp, EditEdge::tmp, EditEdge::v1, and EditEdge::v2.
Referenced by collapseEdges(), and loop_to_region().
Definition at line 4717 of file editmesh_tools.c.
References append_weldedUVEdge(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, wUVEdge::eed, wUV::eve, EditEdge::f1, EditMesh::faces, ListBase::first, wUVEdge::next, EditFace::next, wUV::next, wUV::u, wUV::v, wUVEdge::v1, EditEdge::v1, wUVEdge::v1uv, wUVEdge::v2, EditEdge::v2, and wUVEdge::v2uv.
Referenced by collapse_edgeuvs().
Definition at line 4669 of file editmesh_tools.c.
References append_weldedUV(), EditVert::f1, EditMesh::faces, ListBase::first, EditFace::next, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by collapse_edgeuvs().
static void collapse_edgeuvs | ( | EditMesh * | em | ) | [static] |
Definition at line 4755 of file editmesh_tools.c.
References avg, BLI_addtail(), BLI_freelistN(), build_weldedUVEdges(), build_weldedUVs(), Collection::collectionbase, EM_texFaceCheck(), wUV::f, wUVEdge::f, ListBase::first, free_weldedUVs(), freecollections(), Collection::index, ListBase::last, MEM_callocN(), wUVEdge::next, Collection::next, wUVEdgeCollect::next, wUVNode::next, wUV::nodes, NULL, wUVNode::u, wUVEdgeCollect::uved, wUVNode::v, wUVEdge::v1, wUVEdge::v1uv, wUVEdge::v2, and wUVEdge::v2uv.
Referenced by collapseEdges().
static int collapseEdges | ( | EditMesh * | em | ) | [static] |
Definition at line 4926 of file editmesh_tools.c.
References BLI_countlist(), build_edgecollection(), collapse_edgeuvs(), Collection::collectionbase, EditMesh::edges, CollectedEdge::eed, EM_texFaceCheck(), EditVert::f1, EditEdge::f1, ListBase::first, freecollections(), ListBase::last, MERGELIMIT, EditEdge::next, EditVert::next, CollectedEdge::next, Collection::next, removedoublesflag(), EditEdge::v1, EditEdge::v2, VECCOPY, and EditMesh::verts.
Referenced by merge_exec().
Definition at line 4860 of file editmesh_tools.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, ELEM, EM_texFaceCheck(), EditVert::f1, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::next, NULL, MTFace::uv, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by merge_firstlast(), and merge_target().
builds EVPTuple array efaa of face tuples (in fact pointers to EditFaces) sharing one edge. arguments: selected edge list, face list. Edges will also be tagged accordingly (see eed->f2)
Definition at line 3034 of file editmesh_tools.c.
References EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditEdge::f, EditFace::f, EditFace::f1, EditEdge::f1, EditEdge::f2, i, EditEdge::next, EditFace::next, NULL, EditEdge::p, SELECT, EditEdge::tmp, and EditFace::v4.
Referenced by beautify_fill(), edge_flip(), and join_triangles().
static int compareFaceAttribs | ( | EditMesh * | em, |
EditFace * | f1, | ||
EditFace * | f2, | ||
EditEdge * | eed | ||
) | [static] |
Definition at line 3261 of file editmesh_tools.c.
References B_JOINTRIA_UV, B_JOINTRIA_VCOL, CD_MCOL, CD_MTFACE, CustomData_em_get(), EditFace::data, EditVert::f1, EditMesh::fdata, i, NULL, T2QCOL_LIMIT, T2QUV_LIMIT, MTFace::tpage, MTFace::uv, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, and EditFace::v3.
Referenced by join_triangles().
static void convert_to_triface | ( | EditMesh * | em, |
int | direction | ||
) | [static] |
Definition at line 142 of file editmesh_tools.c.
References BLI_remlink(), EditVert::co, facesort::efa, EM_face_from_faces(), EM_fgon_flags(), EM_select_face(), EditFace::f, EditMesh::faces, free_editface(), ListBase::last, len_v3v3(), next, NULL, EditFace::prev, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by quads_convert_to_tris_exec().
static int count_selected_edges | ( | EditEdge * | ed | ) | [static] |
Definition at line 3014 of file editmesh_tools.c.
References EditEdge::f, EditEdge::next, EditEdge::p, SELECT, and EditEdge::tmp.
Referenced by beautify_fill(), edge_flip(), and join_triangles().
static void delete_mesh | ( | EditMesh * | em, |
wmOperator * | op, | ||
int | event | ||
) | [static] |
Definition at line 1256 of file editmesh_tools.c.
References BLI_freelistN(), BLI_remlink(), delfaceflag(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EdgeLoopDelete(), EditMesh::edges, EM_fgon_flags(), erase_edges(), erase_faces(), erase_vertices(), EditEdge::f, EditVert::f, EditFace::f, EditMesh::faces, ListBase::first, free_edgelist(), free_editedge(), free_editface(), free_editvert(), free_facelist(), free_vertlist(), EditEdge::next, EditFace::next, EditVert::next, recalc_editnormals(), remedge(), SELECT, EditMesh::selected, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, EditFace::v4, and EditMesh::verts.
Referenced by delete_mesh_exec().
static int delete_mesh_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1407 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, delete_mesh(), NC_GEOM, ND_DATA, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), WM_event_add_notifier(), WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by MESH_OT_delete().
static void edge_flip | ( | EditMesh * | em | ) | [static] |
Definition at line 3499 of file editmesh_tools.c.
References EditVert::co, collect_quadedges(), convex(), count_selected_edges(), EditFace::e1, EditFace::e2, EditFace::e3, EditMesh::edges, EM_face_from_faces(), EM_select_face(), EM_selectmode_flush(), exist_face(), EditEdge::f1, EditEdge::f2, FACE_MARKCLEAR, EditMesh::faces, ListBase::first, free_tagged_edges_faces(), givequadverts(), MEM_callocN(), MEM_freeN(), EditEdge::next, EditEdge::p, EditEdge::tmp, and simple_enum_gen::w.
Referenced by edge_flip_exec().
static int edge_flip_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6594 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, edge_flip(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_edge_flip().
static void edge_rotate | ( | EditMesh * | em, |
wmOperator * | op, | ||
EditEdge * | eed, | ||
int | dir | ||
) | [static] |
Definition at line 3605 of file editmesh_tools.c.
References BKE_report(), BLI_remlink(), EditEdge::bweight, EditEdge::crease, EditEdge::dir, DIRECTION_CCW, DIRECTION_CW, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, EM_face_from_faces(), EditEdge::f, EditVert::f, EditEdge::f1, EditMesh::faces, ListBase::first, free_editedge(), free_editface(), EditEdge::h, i, MEM_freeN(), MEM_mallocN(), EditEdge::next, EditFace::next, p, remedge(), wmOperator::reports, RPT_ERROR, EditEdge::seam, SELECT, SWAP, EditFace::v1, EditEdge::v1, and EditEdge::v2.
Referenced by edge_rotate_selected().
static int edge_rotate_selected | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 3780 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, edge_rotate(), EditMesh::edges, EM_select_edge(), EM_select_flush(), EditEdge::f, EditFace::f, EditEdge::f1, EditEdge::f2, EditMesh::faces, ListBase::first, NC_GEOM, ND_DATA, EditEdge::next, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, and WM_event_add_notifier().
Referenced by MESH_OT_edge_rotate().
int EdgeLoopDelete | ( | EditMesh * | UNUSEDem, |
wmOperator * | UNUSEDop | ||
) |
Definition at line 3946 of file editmesh_tools.c.
References EdgeSlide(), EM_select_flush(), EM_select_more(), and removedoublesflag().
int EdgeLoopDelete | ( | EditMesh * | em, |
wmOperator * | op | ||
) |
Referenced by delete_mesh().
static void em_snap_to_center | ( | EditMesh * | em | ) | [static] |
Definition at line 5026 of file editmesh_tools.c.
References add_v3_v3(), EditVert::co, EditVert::f, EditFace::f, ListBase::first, i, mul_v3_fl(), EditVert::next, SELECT, VECCOPY, and EditMesh::verts.
Referenced by merge_target().
Definition at line 5051 of file editmesh_tools.c.
References co, EditVert::co, CTX_data_edit_object(), CTX_data_scene(), CTX_wm_view3d(), EditVert::f, ListBase::first, give_cursor(), invert_m4_m4(), mul_m4_v3(), EditVert::next, Object::obmat, SELECT, VECCOPY, and EditMesh::verts.
Referenced by merge_target().
Definition at line 1210 of file editmesh_tools.c.
References EditVert::f, ListBase::first, free_editedge(), EditEdge::next, remedge(), SELECT, EditEdge::v1, and EditEdge::v2.
Referenced by delete_mesh().
Definition at line 1225 of file editmesh_tools.c.
References BLI_remlink(), faceselectedOR(), ListBase::first, free_editface(), EditFace::next, and SELECT.
Referenced by delete_mesh().
Definition at line 1241 of file editmesh_tools.c.
References BLI_remlink(), EditVert::f, ListBase::first, free_editvert(), and EditVert::next.
Referenced by delete_mesh().
void esubdivideflag | ( | Object * | obedit, |
EditMesh * | em, | ||
int | flag, | ||
float | smooth, | ||
float | fractal, | ||
int | beauty, | ||
int | numcuts, | ||
int | corner_pattern, | ||
int | seltype | ||
) |
Definition at line 2643 of file editmesh_tools.c.
References addedgelist(), B_BEAUTY, B_BEAUTY_SHORT, B_KNIFE, BLI_ghash_free(), BLI_ghash_haskey(), BLI_ghash_insert(), BLI_ghash_new(), BLI_ghashutil_ptrcmp(), BLI_ghashutil_ptrhash(), EditVert::co, DOUBLEOPFILL, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EDGENEW, EDGEOLD, EditMesh::edges, EM_select_edge(), EM_selectmode_flush(), eModifierMode_Realtime, eModifierType_Mirror, EditEdge::f, EditVert::f, EditFace::f, EditFace::f1, EditVert::f1, EditEdge::f1, EditVert::f2, EditEdge::f2, fabsf, EditMesh::faces, fill_quad_double_adj_fan(), fill_quad_double_adj_inner(), fill_quad_double_adj_path(), fill_quad_double_op(), fill_quad_doublevert(), fill_quad_quadruple(), fill_quad_single(), fill_quad_singlevert(), fill_quad_triple(), fill_tri_double(), fill_tri_single(), fill_tri_triple(), ListBase::first, MirrorModifierData::flag, EditEdge::fp, free_tagged_edges_faces(), EditEdge::h, EditVert::h, EditFace::h, i, if(), len_v3v3(), length(), MEM_freeN(), MEM_mallocN(), MOD_MIR_AXIS_X, MOD_MIR_AXIS_Y, MOD_MIR_AXIS_Z, MOD_MIR_CLIPPING, ModifierData::mode, Object::modifiers, mul_mat3_m4_v3(), ModifierData::next, EditEdge::next, EditFace::next, EditVert::next, NULL, Object::obmat, recalc_editnormals(), SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, sort(), SUBDIV_SELECT_INNER, SUBDIV_SELECT_INNER_SEL, SUBDIV_SELECT_LOOPCUT, SUBDIV_SELECT_ORIG, subdivideedgenum(), EditEdge::tmp, MirrorModifierData::tolerance, ModifierData::type, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, EditFace::v4, VECCOPY, and EditMesh::verts.
Referenced by knife_cut_exec(), make_prim(), ringsel_finish(), and subdivide_exec().
static void extrude_mesh | ( | Object * | obedit, |
EditMesh * | em, | ||
wmOperator * | op, | ||
short | type | ||
) | [static] |
Definition at line 678 of file editmesh_tools.c.
References BKE_report(), DAG_id_tag_update(), Object::data, EM_fgon_flags(), EM_stats_update(), extrudeflag(), extrudeflag_edges_indiv(), extrudeflag_face_indiv(), extrudeflag_verts_indiv(), mul_m4_v3(), Object::obmat, wmOperator::reports, RPT_WARNING, SELECT, and sub_v3_v3().
Referenced by mesh_extrude_exec(), and mesh_extrude_invoke().
static int extrude_repeat_mesh_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 894 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), copy_m3_m4(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, EM_fgon_flags(), extrudeflag(), invert_m3_m3(), mul_m3_v3(), NC_GEOM, ND_DATA, normalize_v3(), Object::obmat, offs, OPERATOR_FINISHED, wmOperator::ptr, recalc_editnormals(), RNA_float_get(), RNA_float_get_array(), RNA_int_get(), SELECT, translateflag(), and WM_event_add_notifier().
Referenced by extrude_repeat_mesh_invoke(), and MESH_OT_extrude_repeat().
static int extrude_repeat_mesh_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | UNUSEDevent | ||
) | [static] |
Definition at line 935 of file editmesh_tools.c.
References ED_view3d_context_rv3d(), extrude_repeat_mesh_exec(), RegionView3D::persinv, wmOperator::ptr, and RNA_float_set_array().
Referenced by MESH_OT_extrude_repeat().
Definition at line 1552 of file editmesh_tools.c.
References EditVert::co, CustomData_em_copy_data(), CustomData_em_interp(), CustomData_em_validate_data(), EditFace::data, EditMesh::fdata, EditFace::flag, EditFace::h, interp_weights_face_v3(), EditFace::mat_nr, NULL, xvertsort::v1, EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and simple_enum_gen::w.
Referenced by fill_quad_double_adj_fan(), fill_quad_double_adj_inner(), fill_quad_double_adj_path(), fill_quad_double_op(), fill_quad_doublevert(), fill_quad_quadruple(), fill_quad_single(), fill_quad_singlevert(), fill_quad_triple(), fill_tri_double(), fill_tri_single(), and fill_tri_triple().
static void fill_mesh | ( | EditMesh * | em | ) | [static] |
Definition at line 6217 of file editmesh_tools.c.
References addfacelist(), beautify_fill(), BLI_addfilledge(), BLI_addfillvert(), BLI_edgefill(), BLI_end_edgefill(), BLI_remlink(), EditVert::co, EditMesh::edges, EM_select_face(), EM_select_flush(), EditVert::f, EditMesh::faces, faceselectedAND(), filledgebase, fillfacebase, ListBase::first, EditMesh::mat_nr, EditEdge::next, EditFace::next, EditVert::next, NULL, SELECT, EditVert::tmp, EditVert::v, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, EditFace::v4, EditMesh::verts, waitcursor(), WM_cursor_wait(), and EditVert::xs.
Referenced by fill_mesh_exec().
static int fill_mesh_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6295 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, fill_mesh(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_fill().
static void fill_quad_double_adj_fan | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts | ||
) | [static] |
Definition at line 1871 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, NULL, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_quad_double_adj_inner | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts | ||
) | [static] |
Definition at line 1935 of file editmesh_tools.c.
References addfacelist(), addvertlist(), BLI_ghash_lookup(), co, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EM_data_interp_from_verts(), EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, MEM_freeN(), MEM_mallocN(), NULL, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_quad_double_adj_path | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts | ||
) | [static] |
Definition at line 1793 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, NULL, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_quad_double_op | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts | ||
) | [static] |
Definition at line 1730 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), DOUBLEOPFILL, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, left(), NULL, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
Definition at line 2485 of file editmesh_tools.c.
References addfacelist(), EditFace::e1, EditFace::e2, EditFace::e3, EDGEINNER, EDGENEW, EditEdge::f2, facecopy(), NULL, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_quad_quadruple | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts, | ||
float | smooth, | ||
float | fractal, | ||
int | beauty | ||
) | [static] |
Definition at line 2280 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EDGENEW, EditEdge::f2, facecopy(), flipvertarray(), i, MEM_freeN(), MEM_mallocN(), NULL, subdivide_edge_addvert(), EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_quad_single | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts, | ||
int | seltype | ||
) | [static] |
Definition at line 1574 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, left(), NULL, SELECT, SUBDIV_SELECT_INNER, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
Definition at line 2530 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EDGENEW, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), left(), NULL, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_quad_triple | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts | ||
) | [static] |
Definition at line 2106 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, NULL, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by esubdivideflag().
static void fill_tri_double | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts | ||
) | [static] |
Definition at line 2043 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, NULL, SELECT, EditFace::v1, EditFace::v2, and EditFace::v3.
Referenced by esubdivideflag().
static void fill_tri_single | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts, | ||
int | seltype | ||
) | [static] |
Definition at line 1660 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EDGEINNER, EditEdge::f, EditEdge::f2, facecopy(), flipvertarray(), i, NULL, SELECT, SUBDIV_SELECT_INNER, EditFace::v1, EditFace::v2, and EditFace::v3.
Referenced by esubdivideflag().
static void fill_tri_triple | ( | EditMesh * | em, |
EditFace * | efa, | ||
struct GHash * | gh, | ||
int | numcuts, | ||
float | smooth, | ||
float | fractal, | ||
int | beauty | ||
) | [static] |
Definition at line 2377 of file editmesh_tools.c.
References addfacelist(), BLI_ghash_lookup(), EditFace::e1, EditFace::e2, EditFace::e3, EDGEINNER, EDGENEW, EditEdge::f2, facecopy(), flipvertarray(), i, MEM_freeN(), MEM_mallocN(), NULL, subdivide_edge_addvert(), EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, and EditFace::v3.
Referenced by esubdivideflag().
static void flipvertarray | ( | EditVert ** | arr, |
short | size | ||
) | [static] |
Definition at line 1540 of file editmesh_tools.c.
References i.
Referenced by fill_quad_double_adj_fan(), fill_quad_double_adj_inner(), fill_quad_double_adj_path(), fill_quad_double_op(), fill_quad_quadruple(), fill_quad_single(), fill_quad_singlevert(), fill_quad_triple(), fill_tri_double(), fill_tri_single(), and fill_tri_triple().
static int float_sort | ( | const void * | v1, |
const void * | v2 | ||
) | [static] |
Definition at line 6377 of file editmesh_tools.c.
Referenced by sort_faces_exec().
static int fplcmp | ( | const void * | v1, |
const void * | v2 | ||
) | [static] |
Definition at line 3324 of file editmesh_tools.c.
References EditEdge::crease.
Referenced by join_triangles().
remove and free list of tagged edges and faces
Definition at line 3170 of file editmesh_tools.c.
References BLI_remlink(), EditFace::f1, EditEdge::f1, EditMesh::faces, free_editedge(), free_editface(), EditEdge::next, EditFace::next, remedge(), and untag_edges().
Referenced by beautify_fill(), edge_flip(), esubdivideflag(), and join_triangles().
static void free_weldedUVs | ( | ListBase * | uvverts | ) | [static] |
Definition at line 4748 of file editmesh_tools.c.
References BLI_freelistN(), ListBase::first, wUV::next, and wUV::nodes.
Referenced by collapse_edgeuvs().
static void freecollections | ( | ListBase * | allcollections | ) | [static] |
Definition at line 4591 of file editmesh_tools.c.
References BLI_freelistN(), Collection::collectionbase, ListBase::first, and Collection::next.
Referenced by collapse_edgeuvs(), collapseEdges(), and loop_to_region().
static void givequadverts | ( | EditFace * | efa, |
EditFace * | efa1, | ||
EditVert ** | v1, | ||
EditVert ** | v2, | ||
EditVert ** | v3, | ||
EditVert ** | v4, | ||
int * | vindex | ||
) | [static] |
Definition at line 3117 of file editmesh_tools.c.
References NULL, EditFace::v1, EditFace::v2, EditFace::v3, and VTEST.
Referenced by beautify_fill(), edge_flip(), and join_triangles().
static void hashvert_flag | ( | EditMesh * | em, |
int | flag | ||
) | [static] |
Definition at line 595 of file editmesh_tools.c.
References BLI_addtail(), BLI_drand(), BLI_movelisttolist(), BLI_remlink(), BLI_srand(), EditVert::f, ListBase::first, ListBase::last, MEM_freeN(), MEM_mallocN(), EditVert::next, xvertsort::v1, and EditMesh::verts.
Referenced by mesh_vertices_randomize_exec().
void join_triangles | ( | EditMesh * | em | ) |
Definition at line 3338 of file editmesh_tools.c.
References collect_quadedges(), compareFaceAttribs(), count_selected_edges(), EditEdge::crease, EditMesh::edges, EM_face_from_faces(), EM_select_face(), EM_selectmode_flush(), exist_face(), EditFace::f1, EditVert::f1, EditEdge::f1, EditVert::f2, EditEdge::f2, EditMesh::faces, ListBase::first, fplcmp(), free_tagged_edges_faces(), givequadverts(), i, EditFace::l, measure_facepair(), MEM_callocN(), MEM_freeN(), EditEdge::next, EditFace::next, EditVert::next, NULL, EditEdge::p, T2QCOMPLEX, T2QDELETE, T2QJOIN, EditFace::tmp, EditEdge::tmp, EditMesh::verts, and waitcursor().
Referenced by addedgeface_mesh(), and tris_convert_to_quads_exec().
static int loop_bisect | ( | EditMesh * | em, |
Collection * | edgecollection | ||
) | [static] |
Definition at line 5509 of file editmesh_tools.c.
References Collection::collectionbase, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, CollectedEdge::eed, EditFace::f1, EditEdge::f1, EditEdge::f2, EditMesh::faces, ListBase::first, EditEdge::next, EditFace::next, CollectedEdge::next, and NULL.
Referenced by loop_to_region().
static int loop_to_region | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 5599 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), build_edgecollection(), CTX_data_edit_object(), Object::data, EM_select_face(), EditFace::f, EditFace::f1, EditMesh::faces, ListBase::first, freecollections(), loop_bisect(), NC_GEOM, ND_SELECT, EditFace::next, Collection::next, NULL, OPERATOR_FINISHED, SELECT, validate_loop(), and WM_event_add_notifier().
Referenced by MESH_OT_loop_to_region().
static float measure_facepair | ( | EditVert * | v1, |
EditVert * | v2, | ||
EditVert * | v3, | ||
EditVert * | v4, | ||
float | limit | ||
) | [static] |
Definition at line 3199 of file editmesh_tools.c.
References angle_v3v3(), area_tri_v3(), EditVert::co, KDL::diff(), fabsf, normal_tri_v3(), RAD2DEGF, and sub_v3_v3v3().
Referenced by join_triangles().
static int merge_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 5092 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), BKE_reportf(), collapseEdges(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, EDITVERT, ListBase::first, ListBase::last, merge_firstlast(), merge_target(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, recalc_editnormals(), wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_INFO, RPT_WARNING, EditMesh::selected, EditMesh::totedge, EditMesh::totface, EditMesh::totvert, EditSelection::type, and WM_event_add_notifier().
Referenced by MESH_OT_merge().
static int merge_firstlast | ( | EditMesh * | em, |
int | first, | ||
int | uvmerge | ||
) | [static] |
Definition at line 4992 of file editmesh_tools.c.
References CD_MTFACE, EditVert::co, collapseuvs(), CustomData_has_layer(), EditSelection::data, EditVert::f, EditVert::f1, EditMesh::fdata, ListBase::first, ListBase::last, MERGELIMIT, EditVert::next, removedoublesflag(), SELECT, EditMesh::selected, VECCOPY, and EditMesh::verts.
Referenced by merge_exec().
Definition at line 5072 of file editmesh_tools.c.
References CD_MTFACE, collapseuvs(), CustomData_has_layer(), em_snap_to_center(), em_snap_to_cursor(), EditVert::f, EditVert::f1, EditMesh::fdata, ListBase::first, MERGELIMIT, EditVert::next, NULL, removedoublesflag(), SELECT, and EditMesh::verts.
Referenced by merge_exec().
static EnumPropertyItem* merge_type_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
int * | free | ||
) | [static] |
Definition at line 5152 of file editmesh_tools.c.
References BKE_mesh_get_editmesh(), CTX_data_edit_object(), Object::data, EDITVERT, ListBase::first, ListBase::last, merge_type_items, NULL, OB_MESH, RNA_enum_item_end(), RNA_enum_items_add_value(), SCE_SELECT_VERTEX, EditMesh::selected, EditMesh::selectmode, and Object::type.
Referenced by MESH_OT_merge().
static int mesh_extrude_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 742 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, extrude_mesh(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by MESH_OT_extrude().
static int mesh_extrude_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | UNUSEDevent | ||
) | [static] |
Definition at line 726 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, extrude_mesh(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by MESH_OT_extrude().
static EnumPropertyItem* mesh_extrude_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
int * | free | ||
) | [static] |
Definition at line 764 of file editmesh_tools.c.
References BKE_mesh_get_editmesh(), CTX_data_edit_object(), Object::data, EM_stats_update(), extrude_items, NULL, OB_MESH, RNA_enum_item_add(), RNA_enum_item_end(), SCE_SELECT_EDGE, SCE_SELECT_VERTEX, EditMesh::selectmode, EditMesh::totedgesel, EditMesh::totfacesel, EditMesh::totvertsel, and Object::type.
Referenced by MESH_OT_extrude().
static int mesh_faces_shade_flat_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6671 of file editmesh_tools.c.
References BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, mesh_set_smooth_faces(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_faces_shade_flat().
static int mesh_faces_shade_smooth_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6641 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, mesh_set_smooth_faces(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_faces_shade_smooth().
static int mesh_mirror_colors | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 5876 of file editmesh_tools.c.
References AXIS_Y, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), CD_MCOL, CTX_data_edit_object(), CustomData_em_get(), DAG_id_tag_update(), Object::data, EditFace::data, EM_vertColorCheck(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, EditFace::v4, and WM_event_add_notifier().
Referenced by MESH_OT_colors_mirror().
static int mesh_mirror_uvs | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 5730 of file editmesh_tools.c.
References AXIS_Y, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), CD_MTFACE, CTX_data_edit_object(), CustomData_em_get(), DAG_id_tag_update(), Object::data, EditFace::data, EM_texFaceCheck(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, MTFace::uv, EditFace::v4, and WM_event_add_notifier().
Referenced by MESH_OT_uvs_mirror().
void MESH_OT_beautify_fill | ( | wmOperatorType * | ot | ) |
Definition at line 6341 of file editmesh_tools.c.
References beautify_fill_exec(), wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_blend_from_shape | ( | wmOperatorType * | ot | ) |
Definition at line 4471 of file editmesh_tools.c.
References blend_from_shape_exec(), wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_float(), shape_itemf(), wmOperatorType::srna, and WM_operator_props_popup().
Referenced by ED_operatortypes_mesh().
void MESH_OT_colors_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 5985 of file editmesh_tools.c.
References wmOperatorType::description, DIRECTION_CW, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_mirror_colors(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_colors_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 5967 of file editmesh_tools.c.
References wmOperatorType::description, DIRECTION_CW, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_rotate_colors(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1425 of file editmesh_tools.c.
References delete_mesh_exec(), wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_flip | ( | wmOperatorType * | ot | ) |
Definition at line 6608 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), edge_flip_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 3851 of file editmesh_tools.c.
References wmOperatorType::description, DIRECTION_CW, ED_operator_editmesh(), edge_rotate_selected(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 832 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, mesh_extrude_exec(), mesh_extrude_invoke(), mesh_extrude_itemf(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_extrude_repeat | ( | wmOperatorType * | ot | ) |
Definition at line 945 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, extrude_repeat_mesh_exec(), extrude_repeat_mesh_invoke(), wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float(), RNA_def_float_vector(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_faces_shade_flat | ( | wmOperatorType * | ot | ) |
Definition at line 6684 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_faces_shade_flat_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_faces_shade_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 6656 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_faces_shade_smooth_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_fill | ( | wmOperatorType * | ot | ) |
Definition at line 6311 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, fill_mesh_exec(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_loop_to_region | ( | wmOperatorType * | ot | ) |
Definition at line 5636 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, loop_to_region(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_merge | ( | wmOperatorType * | ot | ) |
Definition at line 5188 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, merge_exec(), merge_type_itemf(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mesh().
void MESH_OT_quads_convert_to_tris | ( | wmOperatorType * | ot | ) |
Definition at line 6550 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and quads_convert_to_tris_exec().
Referenced by ED_operatortypes_mesh().
void MESH_OT_region_to_loop | ( | wmOperatorType * | ot | ) |
Definition at line 5460 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and region_to_loop().
Referenced by ED_operatortypes_mesh().
void MESH_OT_remove_doubles | ( | wmOperatorType * | ot | ) |
Definition at line 503 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, EditVert::f, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, removedoublesflag_exec(), RNA_def_float(), RNA_def_property_ui_range(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_rip | ( | wmOperatorType * | ot | ) |
Definition at line 4287 of file editmesh_tools.c.
References wmOperatorType::description, EM_view3d_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, mesh_rip_invoke(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, P_CONSTRAINT, P_MIRROR, wmOperatorType::poll, and Transform_Properties().
Referenced by ED_operatortypes_mesh().
void MESH_OT_screw | ( | wmOperatorType * | ot | ) |
Definition at line 1187 of file editmesh_tools.c.
References wmOperatorType::description, EM_view3d_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float_vector(), RNA_def_float_vector_xyz(), RNA_def_int(), screw_mesh_exec(), screw_mesh_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_select_axis | ( | wmOperatorType * | ot | ) |
Definition at line 6750 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), select_axis_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_select_vertex_path | ( | wmOperatorType * | ot | ) |
Definition at line 5393 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, PATH_SELECT_EDGE_LENGTH, PATH_SELECT_TOPOLOGICAL, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), select_vertex_path_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_shape_propagate_to_all | ( | wmOperatorType * | ot | ) |
Definition at line 4368 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and shape_propagate_to_all_exec().
Referenced by ED_operatortypes_mesh().
void MESH_OT_sort_faces | ( | wmOperatorType * | ot | ) |
Definition at line 6507 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), sort_faces_exec(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_mesh().
void MESH_OT_spin | ( | wmOperatorType * | ot | ) |
Definition at line 1081 of file editmesh_tools.c.
References wmOperatorType::description, EM_view3d_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float(), RNA_def_float_vector(), RNA_def_float_vector_xyz(), RNA_def_int(), spin_mesh_exec(), spin_mesh_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_split | ( | wmOperatorType * | ot | ) |
Definition at line 878 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and split_mesh().
Referenced by ED_operatortypes_mesh().
void MESH_OT_subdivide | ( | wmOperatorType * | ot | ) |
Definition at line 6029 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), RNA_def_float(), RNA_def_int(), wmOperatorType::srna, SUBDIV_CORNER_INNERVERT, and subdivide_exec().
Referenced by ED_operatortypes_mesh().
void MESH_OT_tris_convert_to_quads | ( | wmOperatorType * | ot | ) |
Definition at line 6579 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and tris_convert_to_quads_exec().
Referenced by ED_operatortypes_mesh().
void MESH_OT_uvs_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 5949 of file editmesh_tools.c.
References wmOperatorType::description, DIRECTION_CW, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_mirror_uvs(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_uvs_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 5931 of file editmesh_tools.c.
References wmOperatorType::description, DIRECTION_CW, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_rotate_uvs(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vertices_randomize | ( | wmOperatorType * | ot | ) |
Definition at line 660 of file editmesh_tools.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_vertices_randomize_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_vertices_sort | ( | wmOperatorType * | ot | ) |
Definition at line 577 of file editmesh_tools.c.
References wmOperatorType::description, EM_view3d_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mesh_vertices_sort_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
static float mesh_rip_edgedist | ( | ARegion * | ar, |
float | mat[][4], | ||
float * | co1, | ||
float * | co2, | ||
const int | mval[2] | ||
) | [static] |
Definition at line 4044 of file editmesh_tools.c.
References dist_to_line_segment_v2(), and ED_view3d_project_float().
Referenced by mesh_rip_invoke().
static int mesh_rip_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 4077 of file editmesh_tools.c.
References addedgelist(), addvertlist(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), BLI_remlink(), EditFace::cent, EditVert::co, CTX_data_edit_object(), CTX_wm_region(), DAG_id_tag_update(), Object::data, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, ED_view3d_ob_project_mat_get(), ED_view3d_project_float(), EditMesh::edges, EDITEDGE, EM_remove_selection(), EM_select_edge(), EM_selectmode_set(), EditEdge::f, EditVert::f, EditFace::f, EditFace::f1, EditVert::f1, EditEdge::f1, faceloop_select(), EditMesh::faces, faceselectedOR(), ListBase::first, free_editedge(), free_editvert(), ListBase::last, mesh_rip_edgedist(), mesh_rip_setface(), NC_GEOM, ND_DATA, EditFace::next, EditVert::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditEdge::prev, EditVert::prev, ARegion::regiondata, remedge(), wmOperator::reports, RPT_WARNING, SELECT, sqrt(), EditVert::tmp, EditEdge::tmp, EditEdge::v, EditVert::v, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, EditFace::v4, EditMesh::verts, and WM_event_add_notifier().
Referenced by MESH_OT_rip().
Definition at line 4057 of file editmesh_tools.c.
References addedgelist(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditVert::tmp, EditVert::v, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by mesh_rip_invoke().
static int mesh_rotate_colors | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 5819 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), CD_MCOL, CTX_data_edit_object(), CustomData_em_get(), DAG_id_tag_update(), Object::data, EditFace::data, DIRECTION_CCW, EM_vertColorCheck(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, EditFace::v4, and WM_event_add_notifier().
Referenced by MESH_OT_colors_rotate().
static int mesh_rotate_uvs | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 5656 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), CD_MTFACE, CTX_data_edit_object(), CustomData_em_get(), DAG_id_tag_update(), Object::data, EditFace::data, DIRECTION_CCW, EM_texFaceCheck(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, MTFace::uv, EditFace::v4, and WM_event_add_notifier().
Referenced by MESH_OT_uvs_rotate().
static void mesh_set_smooth_faces | ( | EditMesh * | em, |
short | smooth | ||
) | [static] |
Definition at line 6625 of file editmesh_tools.c.
References EditFace::f, EditMesh::faces, ListBase::first, EditFace::flag, ME_SMOOTH, EditFace::next, NULL, recalc_editnormals(), and SELECT.
Referenced by mesh_faces_shade_flat_exec(), and mesh_faces_shade_smooth_exec().
static int mesh_vertices_randomize_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 652 of file editmesh_tools.c.
References BKE_mesh_get_editmesh(), CTX_data_edit_object(), Object::data, hashvert_flag(), OPERATOR_FINISHED, and SELECT.
Referenced by MESH_OT_vertices_randomize().
static int mesh_vertices_sort_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 571 of file editmesh_tools.c.
References OPERATOR_FINISHED, SELECT, and xsortvert_flag().
Referenced by MESH_OT_vertices_sort().
static void permutate | ( | void * | list, |
int | num, | ||
int | size, | ||
int * | index | ||
) | [static] |
Definition at line 6358 of file editmesh_tools.c.
References i, len(), MEM_freeN(), MEM_mallocN(), and size().
Referenced by sort_faces_exec().
static int quads_convert_to_tris_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6536 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), convert_to_triface(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_quads_convert_to_tris().
static int region_to_loop | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 5418 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), CTX_data_tool_settings(), Object::data, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, EM_clear_flag_all(), EM_select_edge(), EM_selectmode_set(), EditFace::f, EditEdge::f1, EditMesh::faces, ListBase::first, NC_GEOM, ND_SELECT, EditEdge::next, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, SCE_SELECT_EDGE, SELECT, EditMesh::selectmode, ToolSettings::selectmode, and WM_event_add_notifier().
Referenced by MESH_OT_region_to_loop().
int removedoublesflag | ( | EditMesh * | em, |
short | flag, | ||
short | automerge, | ||
float | limit | ||
) |
Definition at line 180 of file editmesh_tools.c.
References addedgelist(), BLI_remlink(), EditVert::co, compareface(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, facesort::efa, EM_data_interp_from_faces(), EM_data_interp_from_verts(), EditEdge::f, EditVert::f, EditFace::f1, EditEdge::f2, fabs(), EditMesh::faces, faceselectedOR(), findedgelist(), ListBase::first, free_editedge(), free_editface(), free_editvert(), EditVert::h, ListBase::last, MEM_freeN(), MEM_mallocN(), MIN3, MIN4, EditEdge::next, EditFace::next, EditVert::next, NULL, EditEdge::prev, remedge(), SELECT, rna_array::test, EditVert::tmp, EditVert::v, xvertsort::v1, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, EditFace::v4, vergface(), vergxco(), EditMesh::verts, facesort::x, and xvertsort::x.
Referenced by collapseEdges(), EdgeLoopDelete(), EM_automerge(), make_prim(), merge_firstlast(), merge_target(), and removedoublesflag_exec().
static int removedoublesflag_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 481 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_reportf(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, recalc_editnormals(), removedoublesflag(), wmOperator::reports, RNA_float_get(), RPT_INFO, EditMesh::totedge, EditMesh::totface, EditMesh::totvert, and WM_event_add_notifier().
Referenced by MESH_OT_remove_doubles().
static int screw_mesh_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1106 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), EditVert::co, CTX_data_edit_object(), DAG_id_tag_update(), Object::data, EditMesh::edges, EditVert::f, EditVert::f1, ListBase::first, NC_GEOM, ND_DATA, negate_v3(), EditEdge::next, EditVert::next, NULL, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_int_get(), RPT_WARNING, SELECT, spin_mesh(), xvertsort::v1, EditEdge::v1, EditEdge::v2, VECCOPY, EditMesh::verts, and WM_event_add_notifier().
Referenced by MESH_OT_screw(), and screw_mesh_invoke().
static int screw_mesh_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | UNUSEDevent | ||
) | [static] |
Definition at line 1175 of file editmesh_tools.c.
References CTX_data_scene(), CTX_wm_view3d(), ED_view3d_context_rv3d(), give_cursor(), wmOperator::ptr, RNA_float_set_array(), screw_mesh_exec(), and RegionView3D::viewinv.
Referenced by MESH_OT_screw().
static int select_axis_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 6700 of file editmesh_tools.c.
References BKE_mesh_get_editmesh(), BKE_report(), EditVert::co, CTX_data_edit_object(), CTX_data_tool_settings(), EditSelection::data, Object::data, ToolSettings::doublimit, EDITVERT, EM_select_flush(), EditVert::f, fabs(), ListBase::first, EditVert::h, ListBase::last, NC_GEOM, ND_DATA, EditVert::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, EditMesh::selected, EditSelection::type, EditMesh::verts, and WM_event_add_notifier().
Referenced by MESH_OT_select_axis().
static int select_vertex_path_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 5229 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), BLI_addtail(), BLI_freelistN(), BLI_heap_empty(), BLI_heap_free(), BLI_heap_insert(), BLI_heap_new(), BLI_heap_popmin(), EditVert::co, CTX_data_edit_object(), Object::data, PathNode::edges, EditMesh::edges, EM_select_flush(), EditVert::f, EditVert::f1, ListBase::first, GET_INT_FROM_POINTER, EditEdge::h, ListBase::last, len_v3v3(), MEM_callocN(), MEM_freeN(), MEM_mallocN(), NC_GEOM, ND_SELECT, EditEdge::next, EditVert::next, PathEdge::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditVert::p, PATH_SELECT_EDGE_LENGTH, PathEdge::prev, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, SELECT, SET_INT_IN_POINTER, EditVert::tmp, PathNode::u, PathEdge::v, EditEdge::v1, EditEdge::v2, EditMesh::verts, PathNode::visited, PathEdge::w, and WM_event_add_notifier().
Referenced by MESH_OT_select_vertex_path().
static EnumPropertyItem* shape_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
int * | free | ||
) | [static] |
Definition at line 4440 of file editmesh_tools.c.
References CTX_data_edit_object(), Object::data, and NULL.
Referenced by MESH_OT_blend_from_shape().
static void shape_propagate | ( | Object * | obedit, |
EditMesh * | em, | ||
wmOperator * | op | ||
) | [static] |
Definition at line 4309 of file editmesh_tools.c.
References BKE_report(), EditVert::co, DAG_id_tag_update(), Object::data, data, EditVert::f, ListBase::first, Mesh::key, EditVert::keyindex, EditVert::next, NULL, OB_RECALC_DATA, wmOperator::reports, RPT_WARNING, SELECT, VECCOPY, and EditMesh::verts.
Referenced by shape_propagate_to_all_exec().
static int shape_propagate_to_all_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 4353 of file editmesh_tools.c.
References BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, Mesh::id, NC_GEOM, ND_DATA, OPERATOR_FINISHED, shape_propagate(), and WM_event_add_notifier().
Referenced by MESH_OT_shape_propagate_to_all().
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().
static int sort_faces_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 6390 of file editmesh_tools.c.
References add_v3_v3(), add_v3_v3v3(), BLI_frand(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_view3d(), Scene::cursor, View3D::cursor, CustomData_sizeof(), DAG_id_tag_update(), Object::data, CustomDataLayer::data, ED_object_enter_editmode(), ED_object_exit_editmode(), ED_view3d_context_rv3d(), EM_FREEDATA, Mesh::fdata, MFace::flag, float_sort(), i, invert_m4_m4(), CustomData::layers, len_v3v3(), View3D::localvd, MFace::mat_nr, ME_FACE_SEL, MEM_freeN(), MEM_mallocN(), Mesh::mface, mul_m4_v3(), mul_v3_fl(), mult_m4_m4m4(), Mesh::mvert, OBACT, OPERATOR_CANCELLED, OPERATOR_FINISHED, permutate(), wmOperator::ptr, RNA_enum_get(), Mesh::totface, CustomData::totlayer, CustomDataLayer::type, MFace::v1, MFace::v2, MFace::v3, MFace::v4, VECCOPY, and RegionView3D::viewmat.
Referenced by MESH_OT_sort_faces().
static int spin_mesh | ( | bContext * | C, |
wmOperator * | op, | ||
float * | dvec, | ||
int | steps, | ||
float | degr, | ||
int | dupli | ||
) | [static] |
Definition at line 969 of file editmesh_tools.c.
References adduplicateflag(), B_CLOCKWISE, B_KEEPORIG, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BLI_remlink(), copy_m3_m4(), cos(), CTX_data_edit_object(), CTX_data_tool_settings(), DAG_id_tag_update(), Object::data, ToolSettings::editbutflag, EM_fgon_flags(), extrudeflag(), EditVert::f, EditFace::f, ListBase::first, free_editvert(), invert_m3_m3(), M_PI, mul_m3_m3m3(), mul_m3_v3(), EditVert::next, normalize_v3(), Object::obmat, wmOperator::ptr, quat_to_mat3(), recalc_editnormals(), RNA_float_get_array(), rotateflag(), SELECT, si, sin(), translateflag(), and EditMesh::verts.
Referenced by screw_mesh_exec(), and spin_mesh_exec().
static int spin_mesh_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1051 of file editmesh_tools.c.
References BKE_report(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), RPT_WARNING, spin_mesh(), and WM_event_add_notifier().
Referenced by MESH_OT_spin(), and spin_mesh_invoke().
static int spin_mesh_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | UNUSEDevent | ||
) | [static] |
Definition at line 1069 of file editmesh_tools.c.
References CTX_data_scene(), CTX_wm_view3d(), ED_view3d_context_rv3d(), give_cursor(), wmOperator::ptr, RNA_float_set_array(), spin_mesh_exec(), and RegionView3D::viewinv.
Referenced by MESH_OT_spin().
static int split_mesh | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 856 of file editmesh_tools.c.
References adduplicateflag(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, delfaceflag(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, recalc_editnormals(), SELECT, WM_cursor_wait(), and WM_event_add_notifier().
Referenced by MESH_OT_split().
static EditVert* subdivide_edge_addvert | ( | EditMesh * | em, |
EditEdge * | edge, | ||
float | smooth, | ||
float | fractal, | ||
int | beauty, | ||
float | percent | ||
) | [static] |
Definition at line 1505 of file editmesh_tools.c.
References addvertlist(), alter_co(), co, EditVert::co, EM_data_interp_from_verts(), EditVert::f2, interp_v3_v3v3(), EditVert::no, normalize_v3(), NULL, EditEdge::v1, and EditEdge::v2.
Referenced by fill_quad_quadruple(), fill_tri_triple(), and subdivideedgenum().
static int subdivide_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 6005 of file editmesh_tools.c.
References B_FRACTAL, B_SMOOTH, BKE_mesh_get_editmesh(), CTX_data_edit_object(), CTX_data_tool_settings(), DAG_id_tag_update(), Object::data, ToolSettings::editbutflag, esubdivideflag(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), smooth(), and WM_event_add_notifier().
Referenced by MESH_OT_subdivide().
static EditVert* subdivideedgenum | ( | EditMesh * | em, |
EditEdge * | edge, | ||
int | curpoint, | ||
int | totpoint, | ||
float | smooth, | ||
float | fractal, | ||
int | beauty | ||
) | [static] |
Definition at line 2626 of file editmesh_tools.c.
References B_PERCENTSUBD, EditVert::f, EditEdge::fp, subdivide_edge_addvert(), EditEdge::tmp, and EditEdge::v1.
Referenced by esubdivideflag().
static int tris_convert_to_quads_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 6565 of file editmesh_tools.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, join_triangles(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_tris_convert_to_quads().
static void untag_edges | ( | EditFace * | f | ) | [static] |
Definition at line 3161 of file editmesh_tools.c.
References EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, and EditEdge::f1.
Referenced by free_tagged_edges_faces().
static int validate_loop | ( | EditMesh * | em, |
Collection * | edgecollection | ||
) | [static] |
Definition at line 5475 of file editmesh_tools.c.
References Collection::collectionbase, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, CollectedEdge::eed, EditVert::f1, EditEdge::f1, EditMesh::faces, ListBase::first, EditEdge::next, EditFace::next, CollectedEdge::next, EditEdge::v1, and EditEdge::v2.
Referenced by loop_to_region().
static int vergface | ( | const void * | v1, |
const void * | v2 | ||
) | [static] |
Definition at line 130 of file editmesh_tools.c.
References facesort::x.
Referenced by removedoublesflag().
static int vergxco | ( | const void * | v1, |
const void * | v2 | ||
) | [static] |
Definition at line 115 of file editmesh_tools.c.
References xvertsort::x.
Referenced by removedoublesflag(), and xsortvert_flag().
static void waitcursor | ( | int | UNUSEDval | ) | [static] |
Definition at line 89 of file editmesh_tools.c.
Referenced by fill_mesh(), and join_triangles().
static void xsortvert_flag | ( | bContext * | C, |
int | flag | ||
) | [static] |
Definition at line 533 of file editmesh_tools.c.
References BLI_addtail(), BLI_countlist(), BLI_movelisttolist(), BLI_remlink(), ED_view3d_init_mats_rv3d(), ViewContext::em, em_setup_viewcontext(), EditVert::f, ListBase::first, i, ListBase::last, MEM_callocN(), MEM_freeN(), mesh_foreachScreenVert(), EditVert::next, ViewContext::obedit, ViewContext::rv3d, xvertsort::v1, V3D_CLIP_TEST_OFF, vergxco(), EditMesh::verts, and xsortvert_flag__doSetX().
Referenced by mesh_vertices_sort_exec().
static void xsortvert_flag__doSetX | ( | void * | userData, |
EditVert * | UNUSEDeve, | ||
int | x, | ||
int | UNUSEDy, | ||
int | index | ||
) | [static] |
Definition at line 525 of file editmesh_tools.c.
References xvertsort::x.
Referenced by xsortvert_flag().
const EnumPropertyItem axis_items_xy[] [static] |
{ {SUBDIV_CORNER_PATH, "PATH", 0, "Path", ""}, {SUBDIV_CORNER_INNERVERT, "INNER_VERTEX", 0, "Inner Vertex", ""}, {SUBDIV_CORNER_FAN, "FAN", 0, "Fan", ""}, {0, NULL, 0, NULL, NULL}}
Definition at line 96 of file editmesh_tools.c.
const EnumPropertyItem direction_items[] [static] |
{ {DIRECTION_CW, "CW", 0, "Clockwise", ""}, {DIRECTION_CCW, "CCW", 0, "Counter Clockwise", ""}, {0, NULL, 0, NULL, NULL}}
Definition at line 3592 of file editmesh_tools.c.
Referenced by ARMATURE_OT_select_hierarchy(), CURVE_OT_cyclic_toggle(), POSE_OT_select_hierarchy(), and uv_transform_properties().
EnumPropertyItem extrude_items[] [static] |
{ {1, "REGION", 0, "Region", ""}, {2, "FACES", 0, "Individual Faces", ""}, {3, "EDGES", 0, "Only Edges", ""}, {4, "VERTS", 0, "Only Vertices", ""}, {0, NULL, 0, NULL, NULL}}
Definition at line 756 of file editmesh_tools.c.
Referenced by mesh_extrude_itemf().
float* face_sort_floats [static] |
Definition at line 6376 of file editmesh_tools.c.
EnumPropertyItem merge_type_items[] [static] |
{ {6, "FIRST", 0, "At First", ""}, {1, "LAST", 0, "At Last", ""}, {3, "CENTER", 0, "At Center", ""}, {4, "CURSOR", 0, "At Cursor", ""}, {5, "COLLAPSE", 0, "Collapse", ""}, {0, NULL, 0, NULL, NULL}}
Definition at line 5144 of file editmesh_tools.c.
Referenced by merge_type_itemf().
EnumPropertyItem prop_mesh_delete_types[] [static] |
{ {10,"VERT", 0, "Vertices", ""}, {1, "EDGE", 0, "Edges", ""}, {2, "FACE", 0, "Faces", ""}, {3, "ALL", 0, "All", ""}, {4, "EDGE_FACE",0, "Edges & Faces", ""}, {5, "ONLY_FACE",0, "Only Faces", ""}, {6, "EDGE_LOOP",0, "Edge Loop", ""}, {0, NULL, 0, NULL, NULL} }
Definition at line 1396 of file editmesh_tools.c.