diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-11-09 09:18:55 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-11-09 09:18:55 +0000 |
commit | 03b68a5206201bf5bbffb7e4f6a6718907f23b2a (patch) | |
tree | fafb1bd66241ce8158c0a34605ab428f58879767 /src/GudhUI/view | |
parent | f23994c41f3d943fae980693d9cd832820fcee42 (diff) |
Modification for Porquerolles Workshop
Bar_code_persistence and alpha_complex_persistence
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@893 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 63d2d21d5ff7c9a94a67eafc326bf8a561bf8166
Diffstat (limited to 'src/GudhUI/view')
-rw-r--r-- | src/GudhUI/view/FirstCoordProjector.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GudhUI/view/FirstCoordProjector.h b/src/GudhUI/view/FirstCoordProjector.h index 529d2d42..3ceda3f5 100644 --- a/src/GudhUI/view/FirstCoordProjector.h +++ b/src/GudhUI/view/FirstCoordProjector.h @@ -32,8 +32,11 @@ class FirstCoordProjector3D : public Projector3D { typedef Projector3D::Point_3 Point_3; Point_3 operator()(const Point& p) const { - assert(p.dimension() >= 3); + if (p.dimension() >= 3) return Point_3(p.x(), p.y(), p.z()); + else if (p.dimension() >= 2) + return Point_3(p.x(), p.y(), 0.0); + } }; |