diff options
author | Henrik Dick <weasel> | 2019-11-03 06:24:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-04 02:35:21 +0300 |
commit | e45cfb574ee75b85de084d09fcb8325778806bd2 (patch) | |
tree | 519a3d3e709402b593c37e03120a09e6ebc6bd3d /source/blender/modifiers/intern/MOD_solidify_util.h | |
parent | b5244cd5dc1aa9ac70f926435e1449aa77548fae (diff) |
Solidify Modifier: support non-manifold input
This adds a new mode to solidify to support non-manifold geometry
with edges using 3 or more faces as input, resulting in a manifold mesh.
Since the differences between these methods don't translate well
into short terms, they're named "Simple" and "Complex" in the UI.
This also adds clamp with respect to angles
to the existing solidify modifier calculation.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_solidify_util.h')
-rw-r--r-- | source/blender/modifiers/intern/MOD_solidify_util.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_solidify_util.h b/source/blender/modifiers/intern/MOD_solidify_util.h new file mode 100644 index 00000000000..dba360dc1ce --- /dev/null +++ b/source/blender/modifiers/intern/MOD_solidify_util.h @@ -0,0 +1,34 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +/** \file + * \ingroup modifiers + */ + +#ifndef __MOD_MESHCACHE_UTIL_H__ +#define __MOD_MESHCACHE_UTIL_H__ + +/* MOD_solidify_extrude.c */ +Mesh *MOD_solidify_extrude_applyModifier(ModifierData *md, + const ModifierEvalContext *ctx, + Mesh *mesh); + +/* MOD_solidify_nonmanifold.c */ +Mesh *MOD_solidify_nonmanifold_applyModifier(ModifierData *md, + const ModifierEvalContext *ctx, + Mesh *mesh); + +#endif /* __MOD_MESHCACHE_UTIL_H__ */ |