summaryrefslogtreecommitdiff
path: root/src/common/utilities
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-19 16:13:50 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-19 16:13:50 +0000
commitec3f93103f5a1937d3f8bbf37af3837a1089bf03 (patch)
tree547e7e12aa74aa49a953c2d182f7c0a3fd03fd74 /src/common/utilities
parentd6bb19de457fa74c84dbd6d8afa63074fefb4552 (diff)
Move src/common/utilities/hypergenerator.cpp in src/common/utilities
Management of Python distribution packages make install is now installing utilities and GUDHI python module git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/cmake_modules_for_gudhi@2453 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a85576c7ae062718900f0db2bfb0dd3f26e87177
Diffstat (limited to 'src/common/utilities')
-rw-r--r--src/common/utilities/CMakeLists.txt15
-rw-r--r--src/common/utilities/README10
-rw-r--r--src/common/utilities/off_file_from_shape_generator.cpp (renamed from src/common/utilities/hypergenerator.cpp)0
3 files changed, 14 insertions, 11 deletions
diff --git a/src/common/utilities/CMakeLists.txt b/src/common/utilities/CMakeLists.txt
index 88d377a7..c2e07e7e 100644
--- a/src/common/utilities/CMakeLists.txt
+++ b/src/common/utilities/CMakeLists.txt
@@ -1,15 +1,18 @@
cmake_minimum_required(VERSION 2.6)
-project(data_points_generator)
+project(off_file_from_shape_generator)
if (NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 4.6.0)
- add_executable ( data_points_generator hypergenerator.cpp )
- target_link_libraries(data_points_generator ${Boost_SYSTEM_LIBRARY})
- add_test(NAME data_points_generator_on_sphere_1000_3_15.2 COMMAND $<TARGET_FILE:data_points_generator>
+ add_executable ( off_file_from_shape_generator off_file_from_shape_generator.cpp )
+ target_link_libraries(off_file_from_shape_generator ${Boost_SYSTEM_LIBRARY})
+ add_test(NAME off_file_from_shape_generator_on_sphere_1000_3_15.2 COMMAND $<TARGET_FILE:off_file_from_shape_generator>
"on" "sphere" "onSphere.off" "1000" "3" "15.2")
- add_test(NAME data_points_generator_in_sphere_100_2 COMMAND $<TARGET_FILE:data_points_generator>
+ add_test(NAME off_file_from_shape_generator_in_sphere_100_2 COMMAND $<TARGET_FILE:off_file_from_shape_generator>
"in" "sphere" "inSphere.off" "100" "2")
# on cube is not available in CGAL
- add_test(NAME data_points_generator_in_cube_10000_3_5.8 COMMAND $<TARGET_FILE:data_points_generator>
+ add_test(NAME off_file_from_shape_generator_in_cube_10000_3_5.8 COMMAND $<TARGET_FILE:off_file_from_shape_generator>
"in" "cube" "inCube.off" "10000" "3" "5.8")
+
+ install(TARGETS off_file_from_shape_generator DESTINATION bin)
+
endif(NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 4.6.0)
diff --git a/src/common/utilities/README b/src/common/utilities/README
index f2ece556..dc841521 100644
--- a/src/common/utilities/README
+++ b/src/common/utilities/README
@@ -1,18 +1,18 @@
-======================= data_points_generator ==================================
+======================= off_file_from_shape_generator ==================================
Example of use :
-*** Hyper sphere|cube generator
+*** on|in sphere|cube|curve|torus|klein generator
-./data_points_generator on sphere onSphere.off 1000 3 15.2
+./off_file_from_shape_generator on sphere onSphere.off 1000 3 15.2
=> generates a onSphere.off file with 1000 points randomized on a sphere of dimension 3 and radius 15.2
-./data_points_generator in sphere inSphere.off 100 2
+./off_file_from_shape_generator in sphere inSphere.off 100 2
=> generates a inSphere.off file with 100 points randomized in a sphere of dimension 2 (circle) and radius 1.0 (default)
-./data_points_generator in cube inCube.off 10000 3 5.8
+./off_file_from_shape_generator in cube inCube.off 10000 3 5.8
=> generates a inCube.off file with 10000 points randomized in a cube of dimension 3 and side 5.8
diff --git a/src/common/utilities/hypergenerator.cpp b/src/common/utilities/off_file_from_shape_generator.cpp
index 0f310a13..0f310a13 100644
--- a/src/common/utilities/hypergenerator.cpp
+++ b/src/common/utilities/off_file_from_shape_generator.cpp