summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/example/Alpha_complex_from_points.cpp
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-12-11 15:41:39 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-12-11 15:41:39 +0000
commitf9b5b9b3306f3f00f5bfa2724cbfa087d5161fcb (patch)
treecaf08060f8a3969d562588f7a8c61b0421447c77 /src/Alpha_complex/example/Alpha_complex_from_points.cpp
parentc79ddda239336378d50255ef99ea6c34ceefbb47 (diff)
Commit code and doc review
Still issue and lot of logs in simplex_tree::prune_above_filtration git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@945 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: cd4f60ddcacb0444e0eb3b9323d8042eb49b132e
Diffstat (limited to 'src/Alpha_complex/example/Alpha_complex_from_points.cpp')
-rw-r--r--src/Alpha_complex/example/Alpha_complex_from_points.cpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/Alpha_complex/example/Alpha_complex_from_points.cpp b/src/Alpha_complex/example/Alpha_complex_from_points.cpp
index 62f594d1..00e988a6 100644
--- a/src/Alpha_complex/example/Alpha_complex_from_points.cpp
+++ b/src/Alpha_complex/example/Alpha_complex_from_points.cpp
@@ -30,21 +30,13 @@ int main(int argc, char **argv) {
// Init of a list of points
// ----------------------------------------------------------------------------
Vector_of_points points;
-
- std::vector<double> coords = { 1.0, 1.0 };
- points.push_back(Point(coords.begin(), coords.end()));
- coords = { 7.0, 0.0 };
- points.push_back(Point(coords.begin(), coords.end()));
- coords = { 4.0, 6.0 };
- points.push_back(Point(coords.begin(), coords.end()));
- coords = { 9.0, 6.0 };
- points.push_back(Point(coords.begin(), coords.end()));
- coords = { 0.0, 14.0 };
- points.push_back(Point(coords.begin(), coords.end()));
- coords = { 2.0, 19.0 };
- points.push_back(Point(coords.begin(), coords.end()));
- coords = { 9.0, 17.0 };
- points.push_back(Point(coords.begin(), coords.end()));
+ points.push_back(Point(1.0, 1.0));
+ points.push_back(Point(7.0, 0.0));
+ points.push_back(Point(4.0, 6.0));
+ points.push_back(Point(9.0, 6.0));
+ points.push_back(Point(0.0, 14.0));
+ points.push_back(Point(2.0, 19.0));
+ points.push_back(Point(9.0, 17.0));
// ----------------------------------------------------------------------------
// Init of an alpha complex from the list of points