From 1dadd3b7c65ac24f5299d10766d7df3aa5f8c495 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 23 Oct 2012 23:54:15 +0000 Subject: Partially replace convex hull implementation with Bullet implementation * Bullet's convex hull implementation is significantly more robust than the one I implemented, as well as being faster. * This fixes bug [#32864] "Convex Hull fails in some cases." projects.blender.org/tracker/?func=detail&aid=32864&group_id=9&atid=498 That bug, and others like it, relate to the poor handling of co-planar surfaces in the input. Pretty much any model that is simple-subdivided a few times gave very bad results before, Bullet's implementation handles this much better. * In order to ensure a smooth transition, the Bullet output is translated into the existing HullTriangle hash structure. This makes it easy to ensure that the existing slot output stays the same; the interactions between the slots are somewhat complicated, detangling is a TODO. * Reviewed by Brecht: https://codereview.appspot.com/6741063 --- source/blender/bmesh/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/bmesh/CMakeLists.txt') diff --git a/source/blender/bmesh/CMakeLists.txt b/source/blender/bmesh/CMakeLists.txt index 3c329b1dce4..1e39e7f77d3 100644 --- a/source/blender/bmesh/CMakeLists.txt +++ b/source/blender/bmesh/CMakeLists.txt @@ -29,6 +29,7 @@ set(INC ../blenlib ../makesdna ../../../intern/guardedalloc + ../../../extern/bullet2/src ) set(INC_SYS @@ -113,4 +114,8 @@ if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") endif() +if(WITH_BULLET) + add_definitions(-DWITH_BULLET) +endif() + blender_add_lib(bf_bmesh "${SRC}" "${INC}" "${INC_SYS}") -- cgit v1.2.3