Add remesh modifier (dual contouring).
authorNicholas Bishop <nicholasbishop@gmail.com>
Fri, 30 Dec 2011 21:11:40 +0000 (21:11 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Fri, 30 Dec 2011 21:11:40 +0000 (21:11 +0000)
commit289c8b575872ab49d7d16b742af0e5f56f7282eb
tree67d2bf7b8497a12a9e2f4f4c5de7c565f4c9e423
parent792452a7e53aa92361145e415491943bc91d8a6e
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
34 files changed:
intern/CMakeLists.txt
intern/SConscript
intern/dualcon/CMakeLists.txt [new file with mode: 0644]
intern/dualcon/SConscript [new file with mode: 0644]
intern/dualcon/dualcon.h [new file with mode: 0644]
intern/dualcon/intern/GeoCommon.h [new file with mode: 0644]
intern/dualcon/intern/MemoryAllocator.h [new file with mode: 0644]
intern/dualcon/intern/ModelReader.h [new file with mode: 0644]
intern/dualcon/intern/Projections.cpp [new file with mode: 0644]
intern/dualcon/intern/Projections.h [new file with mode: 0644]
intern/dualcon/intern/Queue.h [new file with mode: 0644]
intern/dualcon/intern/cubes.h [new file with mode: 0644]
intern/dualcon/intern/dualcon_c_api.cpp [new file with mode: 0644]
intern/dualcon/intern/manifold_table.cpp [new file with mode: 0644]
intern/dualcon/intern/manifold_table.h [new file with mode: 0644]
intern/dualcon/intern/marching_cubes_table.cpp [new file with mode: 0644]
intern/dualcon/intern/marching_cubes_table.h [new file with mode: 0644]
intern/dualcon/intern/octree.cpp [new file with mode: 0644]
intern/dualcon/intern/octree.h [new file with mode: 0644]
intern/dualcon/intern/readme.txt [new file with mode: 0644]
release/datafiles/blender_icons.png
release/scripts/startup/bl_ui/properties_data_modifier.py
source/blender/blenkernel/BKE_mesh.h
source/blender/editors/datafiles/blender_icons.png.c
source/blender/editors/include/UI_icons.h
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesrna/intern/rna_modifier.c
source/blender/modifiers/CMakeLists.txt
source/blender/modifiers/MOD_modifiertypes.h
source/blender/modifiers/SConscript
source/blender/modifiers/intern/MOD_remesh.c [new file with mode: 0644]
source/blender/modifiers/intern/MOD_util.c
source/blenderplayer/bad_level_call_stubs/stubs.c
source/creator/CMakeLists.txt