diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-10-10 14:32:18 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-10-10 14:32:18 +0000 |
commit | 63666b64129b8ca4ba95504393f863e01f76c51b (patch) | |
tree | c7e203bccfeab0e27cc2ac35ff029875872c24f0 /src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp | |
parent | fb7c3e76da15aca382ed7a6795d1a6fb3c1716c2 (diff) |
Fix tests and homogenize code
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/weighted_alpha_complex_fix@2775 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: bdcc278981e2683a5b49f241f07704f3d5c7ca4e
Diffstat (limited to 'src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp')
-rw-r--r-- | src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp b/src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp index ab2e29b4..a4a2a9f8 100644 --- a/src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp +++ b/src/Persistent_cohomology/example/weighted_periodic_alpha_complex_3d_persistence.cpp @@ -86,8 +86,8 @@ using Simplex_tree_vector_vertex = std::vector<Simplex_tree_vertex>; using Persistent_cohomology = Gudhi::persistent_cohomology::Persistent_cohomology<ST, Gudhi::persistent_cohomology::Field_Zp>; -void usage(char* const progName) { - std::cerr << "Usage: " << progName << " path_to_the_OFF_File path_to_weight_file path_to_the_cuboid_file " +void usage(const std::string& progName) { + std::cerr << "Usage: " << progName << " path_to_the_OFF_file path_to_weight_file path_to_the_cuboid_file " "coeff_field_characteristic[integer > 0] min_persistence[float >= -1.0]\n"; exit(-1); } @@ -96,7 +96,6 @@ int main(int argc, char* const argv[]) { // program args management if (argc != 6) { std::cerr << "Error: Number of arguments (" << argc << ") is not correct\n"; - // file with points, file with weights, cuboid file, field characteristics, minimum persistence. usage(argv[0]); } @@ -206,8 +205,7 @@ int main(int argc, char* const argv[]) { // Edge_3 is of dim 1 dim_max = 1; } - } else if (const Alpha_shape_3::Vertex_handle* vertex = - CGAL::object_cast<Alpha_shape_3::Vertex_handle>(&object_iterator)) { + } else if (const Vertex_handle* vertex = CGAL::object_cast<Vertex_handle>(&object_iterator)) { count_vertices++; vertex_list = from_vertex<Vertex_list, Vertex_handle>(*vertex); } |