Blender V2.61 - r43446
|
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_define.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_library.h"
#include "BKE_mesh.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.
Definition in file editmesh_add.c.
#define add_numbut | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) | {} |
Definition at line 73 of file editmesh_add.c.
#define PRIM_CIRCLE 4 |
Definition at line 1015 of file editmesh_add.c.
Referenced by add_primitive_circle_exec(), get_mesh_defname(), and make_prim().
#define PRIM_CONE 7 |
Definition at line 1017 of file editmesh_add.c.
Referenced by add_primitive_cone_exec(), get_mesh_defname(), and make_prim().
#define PRIM_CUBE 1 |
Definition at line 1014 of file editmesh_add.c.
Referenced by add_primitive_cube_exec(), get_mesh_defname(), and make_prim().
#define PRIM_CYLINDER 5 |
Definition at line 1016 of file editmesh_add.c.
Referenced by add_primitive_cylinder_exec(), get_mesh_defname(), and make_prim().
#define PRIM_GRID 10 |
Definition at line 1018 of file editmesh_add.c.
Referenced by add_primitive_grid_exec(), get_mesh_defname(), and make_prim().
#define PRIM_ICOSPHERE 12 |
Definition at line 1020 of file editmesh_add.c.
Referenced by add_primitive_icosphere_exec(), get_mesh_defname(), and make_prim().
#define PRIM_MONKEY 13 |
Definition at line 1021 of file editmesh_add.c.
Referenced by add_primitive_monkey_exec(), get_mesh_defname(), and make_prim().
#define PRIM_PLANE 0 |
Definition at line 1013 of file editmesh_add.c.
Referenced by add_primitive_plane_exec(), get_mesh_defname(), and make_prim().
#define PRIM_UVSPHERE 11 |
Definition at line 1019 of file editmesh_add.c.
Referenced by add_primitive_uvsphere_exec(), get_mesh_defname(), and make_prim().
static int add_primitive_circle_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1454 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_CIRCLE, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), and rot.
Referenced by MESH_OT_primitive_circle_add().
static int add_primitive_cone_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1543 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_CONE, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), and rot.
Referenced by MESH_OT_primitive_cone_add().
static int add_primitive_cube_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1421 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), EditVert::f, make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_CUBE, rot, and sqrt().
Referenced by MESH_OT_primitive_cube_add().
static int add_primitive_cylinder_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1497 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_CYLINDER, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), and rot.
Referenced by MESH_OT_primitive_cylinder_add().
static int add_primitive_grid_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1588 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_GRID, wmOperator::ptr, RNA_float_get(), RNA_int_get(), and rot.
Referenced by MESH_OT_primitive_grid_add().
static int add_primitive_icosphere_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1707 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_ICOSPHERE, wmOperator::ptr, RNA_float_get(), RNA_int_get(), and rot.
Referenced by MESH_OT_primitive_ico_sphere_add().
static int add_primitive_monkey_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1631 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), EditVert::f, make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_MONKEY, and rot.
Referenced by MESH_OT_primitive_monkey_add().
static int add_primitive_plane_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1388 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), EditVert::f, make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_PLANE, rot, and sqrt().
Referenced by MESH_OT_primitive_plane_add().
static int add_primitive_uvsphere_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1664 of file editmesh_add.c.
References ED_object_add_generic_get_opts(), make_prim_ext(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PRIM_UVSPHERE, wmOperator::ptr, RNA_float_get(), RNA_int_get(), and rot.
Referenced by MESH_OT_primitive_uv_sphere_add().
static void addedgeface_mesh | ( | EditMesh * | em, |
wmOperator * | op | ||
) | [static] |
Definition at line 716 of file editmesh_add.c.
References addedgelist(), addface_from_edges(), addfacelist(), addfaces_from_edgenet(), BKE_report(), co, convex(), EditMesh::edges, EM_select_edge(), EM_select_face(), EM_selectmode_set(), exist_face(), exist_face_overlaps(), EditEdge::f, EditVert::f, ListBase::first, fix_new_face(), join_triangles(), EditEdge::next, EditVert::next, NULL, recalc_editnormals(), wmOperator::reports, RPT_WARNING, SCE_SELECT_EDGE, SELECT, EditMesh::selectmode, and EditMesh::verts.
Referenced by addedgeface_mesh_exec().
static int addedgeface_mesh_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 833 of file editmesh_add.c.
References addedgeface_mesh(), 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_edge_face_add().
Definition at line 451 of file editmesh_add.c.
References addfacelist(), EditMesh::edges, EditEdge::f, EditVert::f, ListBase::first, EditEdge::next, NULL, SELECT, EditEdge::v1, and EditEdge::v2.
Referenced by addedgeface_mesh().
static void addfaces_from_edgenet | ( | EditMesh * | em | ) | [static] |
Definition at line 670 of file editmesh_add.c.
References addfacelist(), EM_select_flush(), exist_face_overlaps(), EditVert::f, findedgelist(), ListBase::first, fix_new_face(), EditVert::next, NULL, and EditMesh::verts.
Referenced by addedgeface_mesh().
static int clear_fgon_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 418 of file editmesh_add.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, make_fgon(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_fgon_clear().
Definition at line 499 of file editmesh_add.c.
References equal(), NULL, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by exist_face_overlaps().
static int dupli_extrude_cursor | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 115 of file editmesh_add.c.
References addvertlist(), ViewContext::ar, EditVert::co, copy_v3_v3(), cos(), cross(), cross_v3_v3v3(), DAG_id_tag_update(), Object::data, DO_MINMAX, dot(), dot_v3v3(), EditMesh::edges, ViewContext::em, EM_project_snap_verts(), em_setup_viewcontext(), extrudeflag(), EditEdge::f, EditVert::f, fabs(), ListBase::first, give_cursor(), Object::imat, INIT_MINMAX, invert_m4_m4(), line_point_side_v2(), max, mid_v3_v3v3(), min, mul_m4_v3(), mul_mat3_m4_v3(), mul_v3_m4v3(), wmEvent::mval, NC_GEOM, ND_DATA, EditEdge::next, EditVert::next, normalize_v3(), NULL, ViewContext::obedit, Object::obmat, OPERATOR_FINISHED, project_float_noclip(), wmOperator::ptr, quat_to_mat3(), recalc_editnormals(), RNA_boolean_get(), rotateflag(), ViewContext::rv3d, saacos(), SCE_SELECT_VERTEX, SCE_SNAP, SCE_SNAP_MODE_FACE, ViewContext::scene, SELECT, EditMesh::selectmode, si, sin(), ToolSettings::snap_flag, ToolSettings::snap_mode, sub_v3_v3(), Scene::toolsettings, translateflag(), TRUE, unit_m3(), EditEdge::v1, EditEdge::v2, ViewContext::v3d, EditMesh::verts, view3d_get_view_aligned_coordinate(), RegionView3D::viewinv, and WM_event_add_notifier().
Referenced by MESH_OT_dupli_extrude_cursor().
static EditFace* exist_face_overlaps | ( | EditMesh * | em, |
EditVert * | v1, | ||
EditVert * | v2, | ||
EditVert * | v3, | ||
EditVert * | v4 | ||
) | [static] |
Definition at line 533 of file editmesh_add.c.
References compareface_overlaps(), EditMesh::faces, ListBase::first, EditFace::next, NULL, EditFace::v1, EditFace::v2, EditFace::v3, and EditFace::v4.
Referenced by addedgeface_mesh(), and addfaces_from_edgenet().
Definition at line 553 of file editmesh_add.c.
References EditMesh::faces, findedgelist(), ListBase::first, EditFace::flag, flipface(), ME_SMOOTH, EditFace::next, NULL, smooth(), EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v3, and EditFace::v4.
Referenced by addedgeface_mesh(), and addfaces_from_edgenet().
static const char* get_mesh_defname | ( | int | type | ) | [static] |
Definition at line 1332 of file editmesh_add.c.
References PRIM_CIRCLE, PRIM_CONE, PRIM_CUBE, PRIM_CYLINDER, PRIM_GRID, PRIM_ICOSPHERE, PRIM_MONKEY, PRIM_PLANE, and PRIM_UVSPHERE.
Referenced by make_prim_ext().
static int make_fgon | ( | EditMesh * | em, |
wmOperator * | op, | ||
int | make | ||
) | [static] |
Definition at line 291 of file editmesh_add.c.
References BKE_report(), EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edges, EM_FGON, EM_fgon_flags(), EditFace::f, EditVert::f1, EditEdge::f1, EditEdge::f2, EditMesh::faces, EditFace::fgonf, ListBase::first, EditEdge::h, EditFace::n, EditEdge::next, EditFace::next, EditVert::next, NULL, wmOperator::reports, RPT_WARNING, SELECT, EditEdge::v1, EditEdge::v2, and EditMesh::verts.
Referenced by clear_fgon_exec(), and make_fgon_exec().
static int make_fgon_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 386 of file editmesh_add.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, make_fgon(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MESH_OT_fgon_make().
static void make_prim | ( | Object * | obedit, |
int | type, | ||
float | mat[4][4], | ||
int | tot, | ||
int | seg, | ||
int | subdiv, | ||
float | dia, | ||
float | depth, | ||
int | ext, | ||
int | fill | ||
) | [static] |
Definition at line 1023 of file editmesh_add.c.
References addedgelist(), addfacelist(), addvertlist(), B_SPHERE, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), EditVert::co, cos(), cosf, Object::data, EditFace::e1, EditFace::e2, EditFace::e3, EditMesh::edges, ELEM, ELEM3, ELEM5, EM_clear_flag_all(), EM_recalc_normal_direction(), EM_select_flush(), EM_stats_update(), esubdivideflag(), extrudeflag_vert(), EditEdge::f, EditVert::f, fabs(), FALSE, ListBase::first, i, icoface, icovert, M_PI, MEM_freeN(), MEM_mallocN(), monkeyf, monkeynf, monkeynv, monkeyo, monkeyv, mul_m4_v3(), EditEdge::next, EditVert::next, NULL, EditVert::prev, PRIM_CIRCLE, PRIM_CONE, PRIM_CUBE, PRIM_CYLINDER, PRIM_GRID, PRIM_ICOSPHERE, PRIM_MONKEY, PRIM_PLANE, PRIM_UVSPHERE, quat_to_mat3(), recalc_editnormals(), removedoublesflag(), rotateflag(), SELECT, sin(), sinf, SUBDIV_CORNER_PATH, translateflag(), TRUE, EditVert::v, and EditMesh::verts.
Referenced by make_prim_ext().
static void make_prim_ext | ( | bContext * | C, |
float * | loc, | ||
float * | rot, | ||
int | enter_editmode, | ||
unsigned int | layer, | ||
int | type, | ||
int | tot, | ||
int | seg, | ||
int | subdiv, | ||
float | dia, | ||
float | depth, | ||
int | ext, | ||
int | fill | ||
) | [static] |
Definition at line 1349 of file editmesh_add.c.
References CTX_data_edit_object(), DAG_id_tag_update(), Object::data, ED_object_add_type(), ED_object_enter_editmode(), ED_object_exit_editmode(), ED_object_new_primitive_matrix(), EM_DO_UNDO, EM_FREEDATA, EM_IGNORE_LAYER, FALSE, get_mesh_defname(), Object::id, make_prim(), NC_GEOM, NC_OBJECT, ND_DATA, ND_DRAW, NULL, OB_MESH, OB_RECALC_DATA, rename_id(), Object::type, and WM_event_add_notifier().
Referenced by add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), and add_primitive_uvsphere_exec().
static int mesh_duplicate_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 1750 of file editmesh_add.c.
References adduplicateflag(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_FINISHED, SELECT, and WM_event_add_notifier().
Referenced by mesh_duplicate_invoke(), and MESH_OT_duplicate().
static int mesh_duplicate_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | UNUSEDevent | ||
) | [static] |
Definition at line 1765 of file editmesh_add.c.
References mesh_duplicate_exec(), OPERATOR_FINISHED, and WM_cursor_wait().
Referenced by MESH_OT_duplicate().
void MESH_OT_dupli_extrude_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 270 of file editmesh_add.c.
References wmOperatorType::description, dupli_extrude_cursor(), ED_operator_editmesh(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_mesh().
void MESH_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1774 of file editmesh_add.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, mesh_duplicate_exec(), mesh_duplicate_invoke(), wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, TFM_TRANSLATION, and transform_mode_types.
Referenced by ED_operatortypes_mesh().
void MESH_OT_edge_face_add | ( | wmOperatorType * | ot | ) |
Definition at line 847 of file editmesh_add.c.
References addedgeface_mesh_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_fgon_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 435 of file editmesh_add.c.
References clear_fgon_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_fgon_make | ( | struct wmOperatorType * | ot | ) |
Definition at line 403 of file editmesh_add.c.
References wmOperatorType::description, ED_operator_editmesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, make_fgon_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_circle_add | ( | wmOperatorType * | ot | ) |
Definition at line 1471 of file editmesh_add.c.
References add_primitive_circle_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_DISTANCE, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), RNA_def_property_subtype(), wmOperatorType::srna, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_cone_add | ( | wmOperatorType * | ot | ) |
Definition at line 1560 of file editmesh_add.c.
References add_primitive_cone_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_DISTANCE, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), RNA_def_property_subtype(), wmOperatorType::srna, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_cube_add | ( | wmOperatorType * | ot | ) |
Definition at line 1436 of file editmesh_add.c.
References add_primitive_cube_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_cylinder_add | ( | wmOperatorType * | ot | ) |
Definition at line 1515 of file editmesh_add.c.
References add_primitive_cylinder_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_DISTANCE, RNA_def_boolean(), RNA_def_float(), RNA_def_int(), RNA_def_property_subtype(), wmOperatorType::srna, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_grid_add | ( | wmOperatorType * | ot | ) |
Definition at line 1605 of file editmesh_add.c.
References add_primitive_grid_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_DISTANCE, RNA_def_float(), RNA_def_int(), RNA_def_property_subtype(), wmOperatorType::srna, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_ico_sphere_add | ( | wmOperatorType * | ot | ) |
Definition at line 1723 of file editmesh_add.c.
References add_primitive_icosphere_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_DISTANCE, RNA_def_float(), RNA_def_int(), RNA_def_property_subtype(), wmOperatorType::srna, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_monkey_add | ( | wmOperatorType * | ot | ) |
Definition at line 1646 of file editmesh_add.c.
References add_primitive_monkey_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_plane_add | ( | wmOperatorType * | ot | ) |
Definition at line 1403 of file editmesh_add.c.
References add_primitive_plane_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and TRUE.
Referenced by ED_operatortypes_mesh().
void MESH_OT_primitive_uv_sphere_add | ( | wmOperatorType * | ot | ) |
Definition at line 1681 of file editmesh_add.c.
References add_primitive_uvsphere_exec(), wmOperatorType::description, ED_object_add_generic_invoke(), ED_object_add_generic_props(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, PROP_DISTANCE, RNA_def_float(), RNA_def_int(), RNA_def_property_subtype(), wmOperatorType::srna, and TRUE.
Referenced by ED_operatortypes_mesh().
short icoface[20][3] [static] |
{ {2,0,1}, {1,0,5}, {3,0,2}, {4,0,3}, {5,0,4}, {1,5,10}, {2,1,6}, {3,2,7}, {4,3,8}, {5,4,9}, {6,1,10}, {7,2,6}, {8,3,7}, {9,4,8}, {10,5,9}, {6,10,11}, {7,6,11}, {8,7,11}, {9,8,11}, {10,9,11} }
Definition at line 90 of file editmesh_add.c.
Referenced by make_prim().
float icovert[12][3] [static] |
{ {0.0f,0.0f,-200.0f}, {144.72f, -105.144f,-89.443f}, {-55.277f, -170.128,-89.443f}, {-178.885f,0.0f,-89.443f}, {-55.277f,170.128f,-89.443f}, {144.72f,105.144f,-89.443f}, {55.277f,-170.128f,89.443f}, {-144.72f,-105.144f,89.443f}, {-144.72f,105.144f,89.443f}, {55.277f,170.128f,89.443f}, {178.885f,0.0f,89.443f}, {0.0f,0.0f,200.0f} }
Definition at line 76 of file editmesh_add.c.
Referenced by make_prim().
signed char monkeyf[250][4] [static] |
Definition at line 945 of file editmesh_add.c.
Referenced by make_prim().
int monkeynf = 250 [static] |
Definition at line 873 of file editmesh_add.c.
Referenced by make_prim().
int monkeynv = 271 [static] |
Definition at line 872 of file editmesh_add.c.
Referenced by make_prim().
int monkeyo = 4 [static] |
Definition at line 871 of file editmesh_add.c.
Referenced by make_prim().
signed char monkeyv[271][3] [static] |
Definition at line 874 of file editmesh_add.c.
Referenced by make_prim().