Skip to content

Commit 89efbd1

Browse files
committed
Add missing ALL case to makeCollector().
0 parents  commit 89efbd1

1,482 files changed

Lines changed: 573684 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.hgignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
syntax: glob
2+
3+
# backup files, etc.
4+
5+
*~
6+
*.sw?
7+
8+
# autotools generated
9+
10+
aclocal.m4
11+
autom4te.cache/output.0
12+
autom4te.cache/output.1
13+
autom4te.cache/requests
14+
autom4te.cache/traces.0
15+
autom4te.cache/traces.1
16+
config.log
17+
config.status
18+
configure
19+
include/carve/config.h
20+
include/carve/stamp-h2
21+
include/carve_config.h
22+
include/carve_config.h.in
23+
include/stamp-h1
24+
libtool
25+
26+
# cmake generated
27+
28+
CMakeFiles
29+
30+
# debug info
31+
32+
*.dSYM
33+
34+
# regression test results
35+
36+
regression/*/test_*
37+
38+
# produced by compilation
39+
40+
*.la
41+
*.o
42+
*.lo
43+
*.Plo
44+
*.a
45+
*.Po
46+
*.dylib
47+
*.so
48+
Makefile.in
49+
Makefile
50+
51+
.libs
52+
.deps
53+
54+
# generated executables
55+
56+
src/convert
57+
src/custom_collector
58+
src/cutgraph
59+
src/intersect
60+
src/problem
61+
src/test_aabb
62+
src/test_aabb_tri
63+
src/test_csg_interpolate
64+
src/test_eigen
65+
src/test_geom
66+
src/test_hole_incorporate
67+
src/test_interpolate
68+
src/test_intersect
69+
src/test_rescale
70+
src/test_slice
71+
src/test_slice_classify
72+
src/test_spacetree
73+
src/test_triangulate
74+
src/tetrahedron
75+
src/texture_example
76+
src/triangulate
77+
src/view
78+

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Toby Sargeant <tobias.sargeant@gmail.com>

CMakeLists.txt

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
cmake_minimum_required(VERSION 2.6)
2+
3+
project(carve)
4+
5+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
6+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
7+
8+
set(carve_VERSION_MAJOR 1)
9+
set(carve_VERSION_MINOR 2)
10+
set(carve_VERSION_PATCH 0)
11+
12+
set(CARVE_VERSION ${carve_VERSION_MAJOR}.${carve_VERSION_MINOR}.${carve_VERSION_PATCH})
13+
14+
option(BUILD_SHARED_LIBS "Compile libcarve as shared" ON)
15+
option(CARVE_WITH_GUI "Compile gui code" ON)
16+
option(CARVE_SYSTEM_BOOST "Compile with system installed boost" ON)
17+
option(CARVE_BOOST_COLLECTIONS "Compile with boost collections" ON)
18+
option(CARVE_DEBUG "Compile in debug code" OFF)
19+
option(CARVE_DEBUG_WRITE_PLY_DATA "Write geometry output during debug" OFF)
20+
21+
22+
23+
if(WIN32)
24+
set(BUILD_SHARED_LIBS OFF) # until everything is exported
25+
add_definitions(-D_USE_MATH_DEFINES)
26+
add_definitions(-DNOMINMAX)
27+
endif(WIN32)
28+
29+
set(HAVE_TR1_UNORDERED_COLLECTIONS FALSE)
30+
set(HAVE_STD_UNORDERED_COLLECTIONS FALSE)
31+
set(HAVE_LIBSTDCPP_UNORDERED_COLLECTIONS FALSE)
32+
33+
set(HAVE_BOOST_UNORDERED_COLLECTIONS FALSE)
34+
35+
if(CARVE_SYSTEM_BOOST)
36+
find_package(BOOST 1.40)
37+
if(Boost_FOUND)
38+
include_directories(${Boost_INCLUDE_DIRS})
39+
message(STATUS "Using system boost")
40+
else(Boost_FOUND)
41+
set(CARVE_SYSTEM_BOOST OFF)
42+
endif(Boost_FOUND)
43+
endif(CARVE_SYSTEM_BOOST)
44+
45+
if(CARVE_BOOST_COLLECTIONS)
46+
set(HAVE_BOOST_UNORDERED_COLLECTIONS TRUE)
47+
48+
else(CARVE_BOOST_COLLECTIONS)
49+
# attempt to work out which unordered collection implementation we can use
50+
try_compile(_HAVE_STD_UNORDERED_COLLECTIONS
51+
${CMAKE_BINARY_DIR}
52+
"${carve_SOURCE_DIR}/cmake/test_std_unordered.cpp"
53+
OUTPUT_VARIABLE OUTPUT)
54+
try_compile(_HAVE_TR1_UNORDERED_COLLECTIONS
55+
${CMAKE_BINARY_DIR}
56+
"${carve_SOURCE_DIR}/cmake/test_tr1_unordered.cpp"
57+
OUTPUT_VARIABLE OUTPUT)
58+
try_compile(_HAVE_LIBSTDCPP_UNORDERED_COLLECTIONS
59+
${CMAKE_BINARY_DIR}
60+
"${carve_SOURCE_DIR}/cmake/test_libstdcpp_unordered.cpp"
61+
OUTPUT_VARIABLE OUTPUT)
62+
63+
if(_HAVE_STD_UNORDERED_COLLECTIONS)
64+
set(HAVE_STD_UNORDERED_COLLECTIONS TRUE)
65+
message(STATUS "Using std::unordered_map")
66+
elseif(_HAVE_TR1_UNORDERED_COLLECTIONS)
67+
set(HAVE_TR1_UNORDERED_COLLECTIONS TRUE)
68+
message(STATUS "Using tr1::unordered_map")
69+
elseif(_HAVE_LIBSTDCPP_UNORDERED_COLLECTIONS)
70+
set(HAVE_LIBSTDCPP_UNORDERED_COLLECTIONS TRUE)
71+
message(STATUS "Using __gnu_cxx::unordered_map ")
72+
endif(_HAVE_STD_UNORDERED_COLLECTIONS)
73+
74+
endif(CARVE_BOOST_COLLECTIONS)
75+
76+
if(CARVE_WITH_GUI)
77+
find_package(OpenGL)
78+
find_package(GLUT)
79+
80+
if(NOT OPENGL_FOUND)
81+
message(WARNING "Unable to locate OpenGL")
82+
set(CARVE_WITH_GUI OFF)
83+
84+
elseif(NOT GLUT_FOUND)
85+
message(WARNING "Unable to locate GLUT")
86+
set(CARVE_WITH_GUI OFF)
87+
88+
else(OPENGL_FOUND AND GLUT_FOUND)
89+
message(STATUS "Found OpenGL and GLUT")
90+
include_directories(${OPENGL_INCLUDE_DIR})
91+
include_directories(${GLUT_INCLUDE_DIR})
92+
if(WIN32)
93+
add_definitions(-DGLUI_NO_LIB_PRAGMA)
94+
add_definitions(-DGLUI_USE_STATIC_LIB)
95+
add_definitions(-DGLEW_STATIC)
96+
endif(WIN32)
97+
add_subdirectory(external/GLEW)
98+
add_subdirectory(external/GLUI)
99+
100+
endif(NOT OPENGL_FOUND)
101+
102+
endif(CARVE_WITH_GUI)
103+
104+
add_subdirectory(external/GLOOP)
105+
add_subdirectory(external/gtest-1.5.0)
106+
107+
configure_file (
108+
"${carve_SOURCE_DIR}/include/carve/cmake-config.h.in"
109+
"${carve_BINARY_DIR}/include/carve/config.h"
110+
)
111+
include_directories(${carve_BINARY_DIR}/include)
112+
113+
add_subdirectory(lib)
114+
add_subdirectory(include)
115+
add_subdirectory(common)
116+
add_subdirectory(src)
117+
add_subdirectory(examples)
118+
add_subdirectory(tests)

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2009-06-01 Tobias Sargeant <tobias.sargeant@gmail.com>
2+
3+
* Carve: initial GPL2 release.

0 commit comments

Comments
 (0)