diff options
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.cpp | 9 |
1 files changed, 4 insertions, 5 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..0b137535 100644 --- a/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp +++ b/src/Persistent_cohomology/example/weighted_alpha_complex_3d_persistence.cpp @@ -20,6 +20,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "alpha_complex_3d_helper.h" + #include <gudhi/Simplex_tree.h> #include <gudhi/Persistent_cohomology.h> #include <gudhi/Points_3D_off_io.h> @@ -31,8 +33,6 @@ #include <CGAL/Alpha_shape_3.h> #include <CGAL/iterator.h> -#include "alpha_complex_3d_helper.h" - #include <fstream> #include <cmath> #include <string> @@ -49,7 +49,7 @@ 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 +115,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++; } |