Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_modifier_types.h
| Show First 20 Lines • Show All 787 Lines • ▼ Show 20 Lines | typedef struct ShrinkwrapModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| struct Object *target; /* shrink target */ | struct Object *target; /* shrink target */ | ||||
| struct Object *auxTarget; /* additional shrink target */ | struct Object *auxTarget; /* additional shrink target */ | ||||
| char vgroup_name[64]; /* optional vertexgroup name, MAX_VGROUP_NAME */ | char vgroup_name[64]; /* optional vertexgroup name, MAX_VGROUP_NAME */ | ||||
| float keepDist; /* distance offset to keep from mesh/projection point */ | float keepDist; /* distance offset to keep from mesh/projection point */ | ||||
| short shrinkType; /* shrink type projection */ | short shrinkType; /* shrink type projection */ | ||||
| char shrinkOpts; /* shrink options */ | char shrinkOpts; /* shrink options */ | ||||
| char pad1; | char pad1; | ||||
| float projLimit; /* limit the projection ray cast */ | float projLimit; /* limit the projection ray cast */ | ||||
| char projAxis; /* axis to project over */ | char projAxis; /* axis to project over */ | ||||
| /* If using projection over vertex normal this controls the level of subsurface that must be done | /* If using projection over vertex normal this controls the level of subsurface that must be done | ||||
| * before getting the vertex coordinates and normal | * before getting the vertex coordinates and normal | ||||
| */ | */ | ||||
| char subsurfLevels; | char subsurfLevels; | ||||
| char pad[2]; | short _pad; | ||||
| } ShrinkwrapModifierData; | } ShrinkwrapModifierData; | ||||
| /* Shrinkwrap->shrinkType */ | /* Shrinkwrap->shrinkType */ | ||||
| enum { | enum { | ||||
| MOD_SHRINKWRAP_NEAREST_SURFACE = 0, | MOD_SHRINKWRAP_NEAREST_SURFACE = 0, | ||||
| MOD_SHRINKWRAP_PROJECT = 1, | MOD_SHRINKWRAP_PROJECT = 1, | ||||
| MOD_SHRINKWRAP_NEAREST_VERTEX = 2, | MOD_SHRINKWRAP_NEAREST_VERTEX = 2, | ||||
| }; | }; | ||||
| /* Shrinkwrap->shrinkOpts */ | /* Shrinkwrap->shrinkOpts */ | ||||
| enum { | enum { | ||||
| /* allow shrinkwrap to move the vertex in the positive direction of axis */ | /* allow shrinkwrap to move the vertex in the positive direction of axis */ | ||||
| MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR = (1 << 0), | MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR = (1 << 0), | ||||
| /* allow shrinkwrap to move the vertex in the negative direction of axis */ | /* allow shrinkwrap to move the vertex in the negative direction of axis */ | ||||
| MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR = (1 << 1), | MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR = (1 << 1), | ||||
| /* ignore vertex moves if a vertex ends projected on a front face of the target */ | /* ignore vertex moves if a vertex ends projected on a front face of the target */ | ||||
| MOD_SHRINKWRAP_CULL_TARGET_FRONTFACE = (1 << 3), | MOD_SHRINKWRAP_CULL_TARGET_FRONTFACE = (1 << 3), | ||||
| /* ignore vertex moves if a vertex ends projected on a back face of the target */ | /* ignore vertex moves if a vertex ends projected on a back face of the target */ | ||||
| MOD_SHRINKWRAP_CULL_TARGET_BACKFACE = (1 << 4), | MOD_SHRINKWRAP_CULL_TARGET_BACKFACE = (1 << 4), | ||||
| MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE = (1 << 5), /* distance is measure to the front face of the target */ | MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE = (1 << 5), /* distance is measure to the front face of the target */ | ||||
| MOD_SHRINKWRAP_INVERT_VGROUP = (1 << 6), | |||||
| }; | }; | ||||
| /* Shrinkwrap->projAxis */ | /* Shrinkwrap->projAxis */ | ||||
| enum { | enum { | ||||
| MOD_SHRINKWRAP_PROJECT_OVER_NORMAL = 0, /* projection over normal is used if no axis is selected */ | MOD_SHRINKWRAP_PROJECT_OVER_NORMAL = 0, /* projection over normal is used if no axis is selected */ | ||||
| MOD_SHRINKWRAP_PROJECT_OVER_X_AXIS = (1 << 0), | MOD_SHRINKWRAP_PROJECT_OVER_X_AXIS = (1 << 0), | ||||
| MOD_SHRINKWRAP_PROJECT_OVER_Y_AXIS = (1 << 1), | MOD_SHRINKWRAP_PROJECT_OVER_Y_AXIS = (1 << 1), | ||||
| MOD_SHRINKWRAP_PROJECT_OVER_Z_AXIS = (1 << 2), | MOD_SHRINKWRAP_PROJECT_OVER_Z_AXIS = (1 << 2), | ||||
| }; | }; | ||||
| typedef struct SimpleDeformModifierData { | typedef struct SimpleDeformModifierData { | ||||
| ModifierData modifier; | ModifierData modifier; | ||||
| struct Object *origin; /* object to control the origin of modifier space coordinates */ | struct Object *origin; /* object to control the origin of modifier space coordinates */ | ||||
| char vgroup_name[64]; /* optional vertexgroup name, MAX_VGROUP_NAME */ | char vgroup_name[64]; /* optional vertexgroup name, MAX_VGROUP_NAME */ | ||||
| float factor; /* factors to control simple deforms */ | float factor; /* factors to control simple deforms */ | ||||
| float limit[2]; /* lower and upper limit */ | float limit[2]; /* lower and upper limit */ | ||||
| char mode; /* deform function */ | char mode; /* deform function */ | ||||
| char axis; /* lock axis (for taper and strech) */ | char axis; /* lock axis (for taper and strech) */ | ||||
| char pad[2]; | short flag; | ||||
| } SimpleDeformModifierData; | } SimpleDeformModifierData; | ||||
| /*SimpleDeform->flag*/ | |||||
| enum { | |||||
| MOD_SIMPLEDEFORM_INVERT_VGROUP = (1 << 0) | |||||
| }; | |||||
| enum { | enum { | ||||
| MOD_SIMPLEDEFORM_MODE_TWIST = 1, | MOD_SIMPLEDEFORM_MODE_TWIST = 1, | ||||
| MOD_SIMPLEDEFORM_MODE_BEND = 2, | MOD_SIMPLEDEFORM_MODE_BEND = 2, | ||||
| MOD_SIMPLEDEFORM_MODE_TAPER = 3, | MOD_SIMPLEDEFORM_MODE_TAPER = 3, | ||||
| MOD_SIMPLEDEFORM_MODE_STRETCH = 4, | MOD_SIMPLEDEFORM_MODE_STRETCH = 4, | ||||
| }; | }; | ||||
| enum { | enum { | ||||
| MOD_SIMPLEDEFORM_LOCK_AXIS_X = (1 << 0), | MOD_SIMPLEDEFORM_LOCK_AXIS_X = (1 << 0), | ||||
| MOD_SIMPLEDEFORM_LOCK_AXIS_Y = (1 << 1), | MOD_SIMPLEDEFORM_LOCK_AXIS_Y = (1 << 1), | ||||
| }; | }; | ||||
| typedef struct ShapeKeyModifierData { | typedef struct ShapeKeyModifierData { | ||||
| ▲ Show 20 Lines • Show All 670 Lines • Show Last 20 Lines | |||||