summaryrefslogtreecommitdiff
path: root/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-25 00:06:27 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-25 00:06:27 +0000
commit9a4ad421d6faf66c7fa3091340e07e8e61adaae8 (patch)
tree7bd12ad431c4427b872fa10bd0bf465e174d3463 /src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp
parent6a1d7a51c3ac46b51d2613d58e63d948b4ca7789 (diff)
parent6ed42daddfede2288bc02ab2e98fc12b47cac74e (diff)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2243 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 3d5fea05d42ce04bd3ba57e63d6b1e0428ddd96f
Diffstat (limited to 'src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp')
-rw-r--r--src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp b/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp
index 5203548a..34b90933 100644
--- a/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp
+++ b/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp
@@ -20,10 +20,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <boost/variant.hpp>
+
#include <gudhi/Simplex_tree.h>
#include <gudhi/Persistent_cohomology.h>
#include <gudhi/Points_3D_off_io.h>
-#include <boost/variant.hpp>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Regular_triangulation_euclidean_traits_3.h>
@@ -31,8 +32,6 @@
#include <CGAL/Alpha_shape_3.h>
#include <CGAL/iterator.h>
-#include "alpha_complex_3d_helper.h"
-
#include <fstream>
#include <cmath>
#include <string>
@@ -43,13 +42,15 @@
#include <vector>
#include <cstdlib>
+#include "alpha_complex_3d_helper.h"
+
// Traits
using Kernel = CGAL::Exact_predicates_inexact_constructions_kernel;
using Gt = CGAL::Regular_triangulation_euclidean_traits_3<Kernel>;
using Vb = CGAL::Alpha_shape_vertex_base_3<Gt>;
using Fb = CGAL::Alpha_shape_cell_base_3<Gt>;
using Tds = CGAL::Triangulation_data_structure_3<Vb, Fb>;
-using Triangulation_3 = CGAL::Regular_triangulation_3<Gt,Tds>;
+using Triangulation_3 = CGAL::Regular_triangulation_3<Gt, Tds>;
using Alpha_shape_3 = CGAL::Alpha_shape_3<Triangulation_3>;
// From file type definition
@@ -115,8 +116,7 @@ int main(int argc, char * const argv[]) {
double weight = 0.0;
std::size_t index = 0;
// Attempt read the weight in a double format, return false if it fails
- while((weights_ifstr >> weight) && (index < lp.size()))
- {
+ while ((weights_ifstr >> weight) && (index < lp.size())) {
wp.push_back(Weighted_point_3(lp[index], weight));
index++;
}