Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_opdefines.c
| Show First 20 Lines • Show All 942 Lines • ▼ Show 20 Lines | static BMOpDefine bmo_extrude_vert_indiv_def = { | ||||
| {"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output vertices */ | {"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output vertices */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| bmo_extrude_vert_indiv_exec, | bmo_extrude_vert_indiv_exec, | ||||
| (BMO_OPTYPE_FLAG_SELECT_FLUSH), | (BMO_OPTYPE_FLAG_SELECT_FLUSH), | ||||
| }; | }; | ||||
| /* | /* | ||||
| * Destructive Extrude (Regions). | |||||
| * | |||||
| * Extrudes face regions destructively. | |||||
| */ | |||||
| static BMOpDefine bmo_extrude_destructive_def = { | |||||
| "extrude_destructive", | |||||
| /* slots_in */ | |||||
| {{"faces", BMO_OP_SLOT_ELEMENT_BUF, {BM_FACE}}, /* input faces */ | |||||
| {"dir", BMO_OP_SLOT_VEC}, | |||||
| {"depth", BMO_OP_SLOT_FLT}, | |||||
| {"original_loop", BMO_OP_SLOT_BOOL}, | |||||
| {"keep_sides", BMO_OP_SLOT_BOOL}, | |||||
| {{'\0'}}, | |||||
| }, | |||||
| /* slots_out */ | |||||
| {{"depth_limit", BMO_OP_SLOT_FLT}, /* used for snapping and recursion */ | |||||
| {"geom.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT | BM_EDGE | BM_FACE}}, | |||||
| {{'\0'}}, | |||||
| }, | |||||
| bmo_extrude_destructive_exec, | |||||
| (BMO_OPTYPE_FLAG_NORMALS_CALC | | |||||
| BMO_OPTYPE_FLAG_SELECT_FLUSH), | |||||
| }; | |||||
| /* | |||||
| * Connect Verts. | * Connect Verts. | ||||
| * | * | ||||
| * Split faces by adding edges that connect **verts**. | * Split faces by adding edges that connect **verts**. | ||||
| */ | */ | ||||
| static BMOpDefine bmo_connect_verts_def = { | static BMOpDefine bmo_connect_verts_def = { | ||||
| "connect_verts", | "connect_verts", | ||||
| /* slots_in */ | /* slots_in */ | ||||
| {{"verts", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, | {{"verts", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, | ||||
| ▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | static BMOpDefine bmo_extrude_face_region_def = { | ||||
| {"use_normal_flip", BMO_OP_SLOT_BOOL}, /* Create faces with reversed direction. */ | {"use_normal_flip", BMO_OP_SLOT_BOOL}, /* Create faces with reversed direction. */ | ||||
| {"use_normal_from_adjacent", BMO_OP_SLOT_BOOL}, /* Use winding from surrounding faces instead of this region. */ | {"use_normal_from_adjacent", BMO_OP_SLOT_BOOL}, /* Use winding from surrounding faces instead of this region. */ | ||||
| {"use_dissolve_ortho_edges", BMO_OP_SLOT_BOOL}, /* Dissolve edges whose faces form a flat surface. */ | {"use_dissolve_ortho_edges", BMO_OP_SLOT_BOOL}, /* Dissolve edges whose faces form a flat surface. */ | ||||
| {"use_select_history", BMO_OP_SLOT_BOOL}, /* pass to duplicate */ | {"use_select_history", BMO_OP_SLOT_BOOL}, /* pass to duplicate */ | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| /* slots_out */ | /* slots_out */ | ||||
| {{"geom.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT | BM_EDGE | BM_FACE}}, | {{"geom.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT | BM_EDGE | BM_FACE}}, | ||||
| {"boundary_map.out", BMO_OP_SLOT_MAPPING, {(int)BMO_OP_SLOT_SUBTYPE_MAP_ELEM}}, | |||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| bmo_extrude_face_region_exec, | bmo_extrude_face_region_exec, | ||||
| (BMO_OPTYPE_FLAG_NORMALS_CALC), | (BMO_OPTYPE_FLAG_NORMALS_CALC), | ||||
| }; | }; | ||||
| /* | /* | ||||
| * Dissolve Verts. | * Dissolve Verts. | ||||
| ▲ Show 20 Lines • Show All 1,065 Lines • ▼ Show 20 Lines | #endif | ||||
| &bmo_offset_edgeloops_def, | &bmo_offset_edgeloops_def, | ||||
| &bmo_edgeloop_fill_def, | &bmo_edgeloop_fill_def, | ||||
| &bmo_edgenet_fill_def, | &bmo_edgenet_fill_def, | ||||
| &bmo_edgenet_prepare_def, | &bmo_edgenet_prepare_def, | ||||
| &bmo_extrude_discrete_faces_def, | &bmo_extrude_discrete_faces_def, | ||||
| &bmo_extrude_edge_only_def, | &bmo_extrude_edge_only_def, | ||||
| &bmo_extrude_face_region_def, | &bmo_extrude_face_region_def, | ||||
| &bmo_extrude_vert_indiv_def, | &bmo_extrude_vert_indiv_def, | ||||
| &bmo_extrude_destructive_def, | |||||
| &bmo_find_doubles_def, | &bmo_find_doubles_def, | ||||
| &bmo_grid_fill_def, | &bmo_grid_fill_def, | ||||
| &bmo_inset_individual_def, | &bmo_inset_individual_def, | ||||
| &bmo_inset_region_def, | &bmo_inset_region_def, | ||||
| &bmo_join_triangles_def, | &bmo_join_triangles_def, | ||||
| &bmo_mesh_to_bmesh_def, | &bmo_mesh_to_bmesh_def, | ||||
| &bmo_mirror_def, | &bmo_mirror_def, | ||||
| &bmo_object_load_bmesh_def, | &bmo_object_load_bmesh_def, | ||||
| Show All 35 Lines | |||||