diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-22 00:08:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-22 00:13:48 +0400 |
commit | d5263c37faf73d0f6cc2466ac0806fef972119fb (patch) | |
tree | 9d5c86e3cd3a39301a6d40586324bda0155241dc /source/blender/makesdna/DNA_modifier_types.h | |
parent | 01acc2a7dcb3ba3bd99f75aac77c14619b10c539 (diff) |
Modifier: New Wireframe Modifier
Based on patch originally by Thomas Beck,
uses options similar to solidify.
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index a3792e95804..f0573338585 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -81,6 +81,7 @@ typedef enum ModifierType { eModifierType_UVWarp = 45, eModifierType_MeshCache = 46, eModifierType_LaplacianDeform = 47, + eModifierType_Wireframe = 48, NUM_MODIFIER_TYPES } ModifierType; @@ -1321,5 +1322,26 @@ enum { MOD_LAPLACIANDEFORM_BIND = 1, }; +/* many of these options match 'solidify' */ +typedef struct WireframeModifierData { + ModifierData modifier; + char defgrp_name[64]; /* MAX_VGROUP_NAME */ + float offset; + float offset_fac; + float offset_fac_vg; + float crease_weight; + short flag, mat_ofs; +} WireframeModifierData; + +enum { + MOD_WIREFRAME_INVERT_VGROUP = (1 << 0), + MOD_WIREFRAME_REPLACE = (1 << 1), + MOD_WIREFRAME_BOUNDARY = (1 << 2), + MOD_MESHCACHE_OFS_EVEN = (1 << 3), + MOD_MESHCACHE_OFS_RELATIVE = (1 << 4), + MOD_MESHCACHE_CREASE = (1 << 5), +}; + + #endif /* __DNA_MODIFIER_TYPES_H__ */ |