Blender  V3.3
Classes | Macros | Typedefs | Functions | Variables
editmesh_add.c File Reference
#include "BLI_math.h"
#include "BLI_sys_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_editmesh.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "mesh_intern.h"

Go to the source code of this file.

Classes

struct  MakePrimitiveData
 

Macros

#define MESH_ADD_VERTS_MAXI   10000000
 

Typedefs

typedef struct MakePrimitiveData MakePrimitiveData
 

Functions

static Objectmake_prim_init (bContext *C, const char *idname, const float loc[3], const float rot[3], const float scale[3], ushort local_view_bits, MakePrimitiveData *r_creation_data)
 
static void make_prim_finish (bContext *C, Object *obedit, const MakePrimitiveData *creation_data, int enter_editmode)
 
static int add_primitive_plane_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_plane_add (wmOperatorType *ot)
 
static int add_primitive_cube_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_cube_add (wmOperatorType *ot)
 
static int add_primitive_circle_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_circle_add (wmOperatorType *ot)
 
static int add_primitive_cylinder_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_cylinder_add (wmOperatorType *ot)
 
static int add_primitive_cone_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_cone_add (wmOperatorType *ot)
 
static int add_primitive_grid_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_grid_add (wmOperatorType *ot)
 
static int add_primitive_monkey_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_monkey_add (wmOperatorType *ot)
 
static int add_primitive_uvsphere_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_uv_sphere_add (wmOperatorType *ot)
 
static int add_primitive_icosphere_exec (bContext *C, wmOperator *op)
 
void MESH_OT_primitive_ico_sphere_add (wmOperatorType *ot)
 

Variables

static const EnumPropertyItem fill_type_items []
 

Macro Definition Documentation

◆ MESH_ADD_VERTS_MAXI

#define MESH_ADD_VERTS_MAXI   10000000

Definition at line 31 of file editmesh_add.c.

Typedef Documentation

◆ MakePrimitiveData

Function Documentation

◆ add_primitive_circle_exec()

static int add_primitive_circle_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_cone_exec()

static int add_primitive_cone_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_cube_exec()

static int add_primitive_cube_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_cylinder_exec()

static int add_primitive_cylinder_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_grid_exec()

static int add_primitive_grid_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_icosphere_exec()

static int add_primitive_icosphere_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_monkey_exec()

static int add_primitive_monkey_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_plane_exec()

static int add_primitive_plane_exec ( bContext C,
wmOperator op 
)
static

◆ add_primitive_uvsphere_exec()

static int add_primitive_uvsphere_exec ( bContext C,
wmOperator op 
)
static

◆ make_prim_finish()

static void make_prim_finish ( bContext C,
Object obedit,
const MakePrimitiveData creation_data,
int  enter_editmode 
)
static

◆ make_prim_init()

static Object* make_prim_init ( bContext C,
const char *  idname,
const float  loc[3],
const float  rot[3],
const float  scale[3],
ushort  local_view_bits,
MakePrimitiveData r_creation_data 
)
static

◆ MESH_OT_primitive_circle_add()

void MESH_OT_primitive_circle_add ( wmOperatorType ot)

◆ MESH_OT_primitive_cone_add()

void MESH_OT_primitive_cone_add ( wmOperatorType ot)

◆ MESH_OT_primitive_cube_add()

void MESH_OT_primitive_cube_add ( wmOperatorType ot)

◆ MESH_OT_primitive_cylinder_add()

void MESH_OT_primitive_cylinder_add ( wmOperatorType ot)

◆ MESH_OT_primitive_grid_add()

void MESH_OT_primitive_grid_add ( wmOperatorType ot)

◆ MESH_OT_primitive_ico_sphere_add()

void MESH_OT_primitive_ico_sphere_add ( wmOperatorType ot)

◆ MESH_OT_primitive_monkey_add()

void MESH_OT_primitive_monkey_add ( wmOperatorType ot)

◆ MESH_OT_primitive_plane_add()

void MESH_OT_primitive_plane_add ( wmOperatorType ot)

◆ MESH_OT_primitive_uv_sphere_add()

void MESH_OT_primitive_uv_sphere_add ( wmOperatorType ot)

Variable Documentation

◆ fill_type_items

const EnumPropertyItem fill_type_items[]
static
Initial value:
= {
{0, "NOTHING", 0, "Nothing", "Don't fill at all"},
{1, "NGON", 0, "N-Gon", "Use n-gons"},
{2, "TRIFAN", 0, "Triangle Fan", "Use triangle fans"},
{0, NULL, 0, NULL, NULL},
}

Definition at line 220 of file editmesh_add.c.

Referenced by MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), and MESH_OT_primitive_cylinder_add().