summaryrefslogtreecommitdiff
path: root/src/Witness_complex/example/example_witness_complex_off.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Witness_complex/example/example_witness_complex_off.cpp')
-rw-r--r--src/Witness_complex/example/example_witness_complex_off.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Witness_complex/example/example_witness_complex_off.cpp b/src/Witness_complex/example/example_witness_complex_off.cpp
index 38c6bedc..b36dac0d 100644
--- a/src/Witness_complex/example/example_witness_complex_off.cpp
+++ b/src/Witness_complex/example/example_witness_complex_off.cpp
@@ -14,11 +14,10 @@
#include <string>
#include <vector>
-typedef CGAL::Epick_d<CGAL::Dynamic_dimension_tag> K;
-typedef typename K::Point_d Point_d;
-typedef typename Gudhi::witness_complex::Euclidean_witness_complex<K> Witness_complex;
-typedef std::vector< typename Gudhi::Simplex_tree<>::Vertex_handle > typeVectorVertex;
-typedef std::vector< Point_d > Point_vector;
+using K = CGAL::Epick_d<CGAL::Dynamic_dimension_tag>;
+using Point_d = K::Point_d;
+using Witness_complex = Gudhi::witness_complex::Euclidean_witness_complex<K>;
+using Point_vector = std::vector< Point_d >;
int main(int argc, char * const argv[]) {
if (argc != 5) {
@@ -41,7 +40,7 @@ int main(int argc, char * const argv[]) {
exit(-1); // ----- >>
}
point_vector = Point_vector(off_reader.get_point_cloud());
-
+
std::cout << "Successfully read " << point_vector.size() << " points.\n";
std::cout << "Ambient dimension is " << point_vector[0].dimension() << ".\n";