Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_opdefines.c
| Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | |||||
| static BMO_FlagSet bmo_enum_axis_xyz[] = { | static BMO_FlagSet bmo_enum_axis_xyz[] = { | ||||
| {0, "X"}, | {0, "X"}, | ||||
| {1, "Y"}, | {1, "Y"}, | ||||
| {2, "Z"}, | {2, "Z"}, | ||||
| {0, NULL}, | {0, NULL}, | ||||
| }; | }; | ||||
| static BMO_FlagSet bmo_enum_axis_neg_xyz_and_xyz[] = { | |||||
| {0, "-X"}, | |||||
| {1, "-Y"}, | |||||
| {2, "-Z"}, | |||||
| {3, "X"}, | |||||
| {4, "Y"}, | |||||
| {5, "Z"}, | |||||
| {0, NULL}, | |||||
| }; | |||||
| static BMO_FlagSet bmo_enum_falloff_type[] = { | static BMO_FlagSet bmo_enum_falloff_type[] = { | ||||
| {SUBD_FALLOFF_SMOOTH, "SMOOTH"}, | {SUBD_FALLOFF_SMOOTH, "SMOOTH"}, | ||||
| {SUBD_FALLOFF_SPHERE, "SPHERE"}, | {SUBD_FALLOFF_SPHERE, "SPHERE"}, | ||||
| {SUBD_FALLOFF_ROOT, "ROOT"}, | {SUBD_FALLOFF_ROOT, "ROOT"}, | ||||
| {SUBD_FALLOFF_SHARP, "SHARP"}, | {SUBD_FALLOFF_SHARP, "SHARP"}, | ||||
| {SUBD_FALLOFF_LIN, "LINEAR"}, | {SUBD_FALLOFF_LIN, "LINEAR"}, | ||||
| {SUBD_FALLOFF_INVSQUARE, "INVERSE_SQUARE"}, | {SUBD_FALLOFF_INVSQUARE, "INVERSE_SQUARE"}, | ||||
| {0, NULL}, | {0, NULL}, | ||||
| ▲ Show 20 Lines • Show All 1,928 Lines • ▼ Show 20 Lines | |||||
| * symmetry are split as needed to enforce symmetry. | * symmetry are split as needed to enforce symmetry. | ||||
| * | * | ||||
| * All new vertices, edges, and faces are added to the "geom.out" slot. | * All new vertices, edges, and faces are added to the "geom.out" slot. | ||||
| */ | */ | ||||
| static BMOpDefine bmo_symmetrize_def = { | static BMOpDefine bmo_symmetrize_def = { | ||||
| "symmetrize", | "symmetrize", | ||||
| /* slots_in */ | /* slots_in */ | ||||
| {{"input", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT | BM_EDGE | BM_FACE}}, | {{"input", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT | BM_EDGE | BM_FACE}}, | ||||
| {"direction", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, bmo_enum_axis_xyz}, /* axis to use */ | {"direction", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, bmo_enum_axis_neg_xyz_and_xyz}, /* axis to use */ | ||||
| {"dist", BMO_OP_SLOT_FLT}, /* minimum distance */ | {"dist", BMO_OP_SLOT_FLT}, /* minimum distance */ | ||||
| {{'\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}}, | ||||
| {{'\0'}}, | {{'\0'}}, | ||||
| }, | }, | ||||
| bmo_symmetrize_exec, | bmo_symmetrize_exec, | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||