diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2011-12-31 01:11:40 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2011-12-31 01:11:40 +0400 |
commit | 289c8b575872ab49d7d16b742af0e5f56f7282eb (patch) | |
tree | 67d2bf7b8497a12a9e2f4f4c5de7c565f4c9e423 /release | |
parent | 792452a7e53aa92361145e415491943bc91d8a6e (diff) |
Add remesh modifier (dual contouring).
This patch adds a new remeshing modifier. The algorithm is based on
the paper "Dual Contouring of Hermite Data", and the implementation
was contributed to Blender by Dr. Tao Ju.
The contributed code is in intern/dualcon, and was modified to compile
under gcc and work on 64-bit systems. Files not needed for Blender
were removed and a small C wrapper was added in order to interface it
with Blender. The rest of the patch is just standard modifier stuff.
Reviewed by Sergey, code review link:
http://codereview.appspot.com/5491053/
The remesh icon was contributed by Zafio:
http://blenderartists.org/forum/showthread.php?240751-Request-for-modifier-icon/page2.
Thanks to everyone in that thread for the icon proposals and
discussion.
Documentation and examples on the Blender wiki:
http://wiki.blender.org/index.php/User:Nicholasbishop/RemeshModifier
In case the history is needed for anything, check the remesh-modifier
branch of this git repository:
https://gitorious.org/~nicholasbishop/blenderprojects/nicholasbishop-blender
Diffstat (limited to 'release')
-rw-r--r-- | release/datafiles/blender_icons.png | bin | 201043 -> 218166 bytes | |||
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/release/datafiles/blender_icons.png b/release/datafiles/blender_icons.png Binary files differindex caff03b107b..97515dfc8eb 100644 --- a/release/datafiles/blender_icons.png +++ b/release/datafiles/blender_icons.png diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index 5e9f863d22b..d6f2173306a 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -813,6 +813,20 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): col.prop(md, "width", slider=True) col.prop(md, "narrowness", slider=True) + def REMESH(self, layout, ob, md): + layout.prop(md, "mode") + + layout.prop(md, "octree_depth") + layout.prop(md, "scale") + row = layout.row() + row.active = md.mode == "SHARP" + row.prop(md, "sharpness") + + layout.prop(md, "remove_disconnected_pieces") + row = layout.row() + row.active = md.remove_disconnected_pieces + row.prop(md, "threshold") + @staticmethod def vertex_weight_mask(layout, ob, md): layout.label(text="Influence/Mask Options:") |