Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_opdefines.c
| Show First 20 Lines • Show All 1,581 Lines • ▼ Show 20 Lines | |||||
| * | * | ||||
| * Creates a grid with a variable number of subdivisions | * Creates a grid with a variable number of subdivisions | ||||
| */ | */ | ||||
| static BMOpDefine bmo_create_uvsphere_def = { | static BMOpDefine bmo_create_uvsphere_def = { | ||||
| "create_uvsphere", | "create_uvsphere", | ||||
| /* slots_in */ | /* slots_in */ | ||||
| {{"u_segments", BMO_OP_SLOT_INT}, /* number of u segments */ | {{"u_segments", BMO_OP_SLOT_INT}, /* number of u segments */ | ||||
| {"v_segments", BMO_OP_SLOT_INT}, /* number of v segment */ | {"v_segments", BMO_OP_SLOT_INT}, /* number of v segment */ | ||||
| {"diameter", BMO_OP_SLOT_FLT}, /* diameter */ | {"radius", BMO_OP_SLOT_FLT}, /* radius */ | ||||
| {"matrix", BMO_OP_SLOT_MAT}, /* matrix to multiply the new geometry with */ | {"matrix", BMO_OP_SLOT_MAT}, /* matrix to multiply the new geometry with */ | ||||
| {"calc_uvs", BMO_OP_SLOT_BOOL}, /* calculate default UVs */ | {"calc_uvs", BMO_OP_SLOT_BOOL}, /* calculate default UVs */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| /* slots_out */ | /* slots_out */ | ||||
| {{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */ | {{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| bmo_create_uvsphere_exec, | bmo_create_uvsphere_exec, | ||||
| (BMO_OPTYPE_FLAG_NORMALS_CALC | | (BMO_OPTYPE_FLAG_NORMALS_CALC | | ||||
| BMO_OPTYPE_FLAG_SELECT_FLUSH), | BMO_OPTYPE_FLAG_SELECT_FLUSH), | ||||
| }; | }; | ||||
| /* | /* | ||||
| * Create Ico-Sphere. | * Create Ico-Sphere. | ||||
| * | * | ||||
| * Creates a grid with a variable number of subdivisions | * Creates a grid with a variable number of subdivisions | ||||
| */ | */ | ||||
| static BMOpDefine bmo_create_icosphere_def = { | static BMOpDefine bmo_create_icosphere_def = { | ||||
| "create_icosphere", | "create_icosphere", | ||||
| /* slots_in */ | /* slots_in */ | ||||
| {{"subdivisions", BMO_OP_SLOT_INT}, /* how many times to recursively subdivide the sphere */ | {{"subdivisions", BMO_OP_SLOT_INT}, /* how many times to recursively subdivide the sphere */ | ||||
| {"diameter", BMO_OP_SLOT_FLT}, /* diameter */ | {"radius", BMO_OP_SLOT_FLT}, /* radius */ | ||||
| {"matrix", BMO_OP_SLOT_MAT}, /* matrix to multiply the new geometry with */ | {"matrix", BMO_OP_SLOT_MAT}, /* matrix to multiply the new geometry with */ | ||||
| {"calc_uvs", BMO_OP_SLOT_BOOL}, /* calculate default UVs */ | {"calc_uvs", BMO_OP_SLOT_BOOL}, /* calculate default UVs */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| /* slots_out */ | /* slots_out */ | ||||
| {{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */ | {{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| Show All 29 Lines | |||||
| * Creates a cone with variable depth at both ends | * Creates a cone with variable depth at both ends | ||||
| */ | */ | ||||
| static BMOpDefine bmo_create_cone_def = { | static BMOpDefine bmo_create_cone_def = { | ||||
| "create_cone", | "create_cone", | ||||
| /* slots_in */ | /* slots_in */ | ||||
| {{"cap_ends", BMO_OP_SLOT_BOOL}, /* whether or not to fill in the ends with faces */ | {{"cap_ends", BMO_OP_SLOT_BOOL}, /* whether or not to fill in the ends with faces */ | ||||
| {"cap_tris", BMO_OP_SLOT_BOOL}, /* fill ends with triangles instead of ngons */ | {"cap_tris", BMO_OP_SLOT_BOOL}, /* fill ends with triangles instead of ngons */ | ||||
| {"segments", BMO_OP_SLOT_INT}, /* number of vertices in the base circle */ | {"segments", BMO_OP_SLOT_INT}, /* number of vertices in the base circle */ | ||||
| {"diameter1", BMO_OP_SLOT_FLT}, /* diameter of one end */ | {"radius1", BMO_OP_SLOT_FLT}, /* radius of one end */ | ||||
| {"diameter2", BMO_OP_SLOT_FLT}, /* diameter of the opposite */ | {"radius2", BMO_OP_SLOT_FLT}, /* radius of the opposite */ | ||||
| {"depth", BMO_OP_SLOT_FLT}, /* distance between ends */ | {"depth", BMO_OP_SLOT_FLT}, /* distance between ends */ | ||||
| {"matrix", BMO_OP_SLOT_MAT}, /* matrix to multiply the new geometry with */ | {"matrix", BMO_OP_SLOT_MAT}, /* matrix to multiply the new geometry with */ | ||||
| {"calc_uvs", BMO_OP_SLOT_BOOL}, /* calculate default UVs */ | {"calc_uvs", BMO_OP_SLOT_BOOL}, /* calculate default UVs */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| /* slots_out */ | /* slots_out */ | ||||
| {{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */ | {{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| ▲ Show 20 Lines • Show All 515 Lines • Show Last 20 Lines | |||||