From d5263c37faf73d0f6cc2466ac0806fef972119fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 22 Dec 2013 07:08:35 +1100 Subject: Modifier: New Wireframe Modifier Based on patch originally by Thomas Beck, uses options similar to solidify. --- source/blender/makesdna/DNA_modifier_types.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source/blender/makesdna/DNA_modifier_types.h') 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__ */ -- cgit v1.2.3