summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/example/Alpha_complex_from_points.cpp
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-02-02 10:03:48 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-02-02 10:03:48 +0000
commitcbf1f4c98c9e6d7ba3b7c552e43c7c98ed349954 (patch)
treef56cb0b1dda48d9456e0d826b3feaf72f286a57d /src/Alpha_complex/example/Alpha_complex_from_points.cpp
parent57eb57ed2092beaceb978e31aebb500450b9599b (diff)
Make example for doc shorter. Include strategy reviewal
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@992 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 23d3e71d7d0fb4d649f73e53959626c5cbb0acd8
Diffstat (limited to 'src/Alpha_complex/example/Alpha_complex_from_points.cpp')
-rw-r--r--src/Alpha_complex/example/Alpha_complex_from_points.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/Alpha_complex/example/Alpha_complex_from_points.cpp b/src/Alpha_complex/example/Alpha_complex_from_points.cpp
index 00e988a6..dab161c9 100644
--- a/src/Alpha_complex/example/Alpha_complex_from_points.cpp
+++ b/src/Alpha_complex/example/Alpha_complex_from_points.cpp
@@ -1,31 +1,17 @@
-#include <stdlib.h>
-#include <CGAL/Delaunay_triangulation.h>
#include <CGAL/Epick_d.h>
+#include <gudhi/Alpha_complex.h>
#include <iostream>
#include <string>
#include <vector>
-#include <gudhi/Alpha_complex.h>
-
typedef CGAL::Epick_d< CGAL::Dimension_tag<2> > Kernel;
typedef Kernel::Point_d Point;
typedef std::vector<Point> Vector_of_points;
-void usage(char * const progName) {
- std::cerr << "Usage: " << progName << " alpha_square_max_value" << std::endl;
- std::cerr << " i.e.: " << progName << " 32.0" << std::endl;
- exit(-1); // ----- >>
-}
-
int main(int argc, char **argv) {
- if (argc != 2) {
- std::cerr << "Error: Number of arguments (" << argc << ") is not correct" << std::endl;
- usage(argv[0]);
- }
+ double alpha_square_max_value = 32.0;
- double alpha_square_max_value = atof(argv[1]);
-
// ----------------------------------------------------------------------------
// Init of a list of points
// ----------------------------------------------------------------------------