summaryrefslogtreecommitdiff
path: root/src/Alpha_complex
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-09-25 15:26:41 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-09-25 15:26:41 +0000
commit5624cfc39b51dd7f201b11c45b5ca5f218591c04 (patch)
tree2599ba6317b1cfbfa7ccb78440bc6204ff604cef /src/Alpha_complex
parent14fb8b9c1ad66df2d646bf5870dca7c5fbe9503f (diff)
Constants shall be upper case
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alpha_complex_3d_module_vincent@3906 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: fcafbe39665a69c6645f8b9d73fc67b98709540e
Diffstat (limited to 'src/Alpha_complex')
-rw-r--r--src/Alpha_complex/benchmark/Alpha_complex_3d_benchmark.cpp24
-rw-r--r--src/Alpha_complex/example/Alpha_complex_3d_from_points.cpp2
-rw-r--r--src/Alpha_complex/example/Weighted_alpha_complex_3d_from_points.cpp2
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex_3d.h34
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex_options.h10
-rw-r--r--src/Alpha_complex/test/Alpha_complex_3d_unit_test.cpp24
-rw-r--r--src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp44
7 files changed, 77 insertions, 63 deletions
diff --git a/src/Alpha_complex/benchmark/Alpha_complex_3d_benchmark.cpp b/src/Alpha_complex/benchmark/Alpha_complex_3d_benchmark.cpp
index ad785f4e..3e556cdf 100644
--- a/src/Alpha_complex/benchmark/Alpha_complex_3d_benchmark.cpp
+++ b/src/Alpha_complex/benchmark/Alpha_complex_3d_benchmark.cpp
@@ -233,33 +233,33 @@ int main(int argc, char **argv) {
benchmark_points_on_torus_dD<CGAL::Epeck_d< CGAL::Dimension_tag<3> >>("Exact static dimension version");
benchmark_points_on_torus_dD<CGAL::Epeck_d< CGAL::Dynamic_dimension_tag >>("Exact dynamic dimension version");
- benchmark_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ benchmark_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
false, false>>("Fast version");
- benchmark_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ benchmark_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
false, false>>("Safe version");
- benchmark_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ benchmark_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
false, false>>("Exact version");
- benchmark_weighted_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ benchmark_weighted_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
true, false>>("Fast version");
- benchmark_weighted_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ benchmark_weighted_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
true, false>>("Safe version");
- benchmark_weighted_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ benchmark_weighted_points_on_torus_3D<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
true, false>>("Exact version");
- benchmark_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ benchmark_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
false, true>>("Fast version");
- benchmark_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ benchmark_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
false, true>>("Safe version");
- benchmark_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ benchmark_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
false, true>>("Exact version");
- benchmark_weighted_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ benchmark_weighted_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
true, true>>("Fast version");
- benchmark_weighted_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ benchmark_weighted_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
true, true>>("Safe version");
- benchmark_weighted_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ benchmark_weighted_periodic_points<Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
true, true>>("Exact version");
return 0;
diff --git a/src/Alpha_complex/example/Alpha_complex_3d_from_points.cpp b/src/Alpha_complex/example/Alpha_complex_3d_from_points.cpp
index e96385c0..5d6e65cb 100644
--- a/src/Alpha_complex/example/Alpha_complex_3d_from_points.cpp
+++ b/src/Alpha_complex/example/Alpha_complex_3d_from_points.cpp
@@ -7,7 +7,7 @@
#include <vector>
#include <limits> // for numeric limits
-using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact, false, false>;
+using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT, false, false>;
using Point = Alpha_complex_3d::Point_3 ;
using Vector_of_points = std::vector<Point>;
diff --git a/src/Alpha_complex/example/Weighted_alpha_complex_3d_from_points.cpp b/src/Alpha_complex/example/Weighted_alpha_complex_3d_from_points.cpp
index 61ceab6d..52c39bf3 100644
--- a/src/Alpha_complex/example/Weighted_alpha_complex_3d_from_points.cpp
+++ b/src/Alpha_complex/example/Weighted_alpha_complex_3d_from_points.cpp
@@ -7,7 +7,7 @@
#include <vector>
#include <limits> // for numeric limits
-using Weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact, true, false>;
+using Weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT, true, false>;
using Point = Weighted_alpha_complex_3d::Point_3;
using Weighted_point = Weighted_alpha_complex_3d::Triangulation_3::Weighted_point;
using Vector_of_weighted_points = std::vector<Weighted_point>;
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
index 42f49e15..1ba52ad0 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex_3d.h
@@ -69,6 +69,11 @@ namespace Gudhi {
namespace alpha_complex {
+// Value_from_iterator returns the filtration value from an iterator on alpha shapes values
+//
+// FAST SAFE EXACT
+// *iterator CGAL::to_double(*iterator) CGAL::to_double(iterator->exact())
+
template <complexity Complexity>
struct Value_from_iterator
{
@@ -81,23 +86,23 @@ struct Value_from_iterator
};
template <>
-struct Value_from_iterator <complexity::safe>
+struct Value_from_iterator <complexity::SAFE>
{
template<typename Iterator>
static double perform(Iterator it)
{
- // In safe mode, we are with Epeck or Epick with exact value set to CGAL::Tag_true.
+ // In SAFE mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true.
return CGAL::to_double(*it);
}
};
template <>
-struct Value_from_iterator <complexity::exact>
+struct Value_from_iterator <complexity::EXACT>
{
template<typename Iterator>
static double perform(Iterator it)
{
- // In exact mode, we are with Epeck or Epick with exact value set to CGAL::Tag_true.
+ // In EXACT mode, we are with Epeck or Epick with EXACT value set to CGAL::Tag_true.
return CGAL::to_double(it->exact());
}
};
@@ -115,7 +120,7 @@ struct Value_from_iterator <complexity::exact>
* Duplicate points are inserted once in the Alpha_complex. This is the reason why the vertices may be not contiguous.
*
* \tparam Complexity shall be `Gudhi::alpha_complex::complexity`. Default value is
- * `Gudhi::alpha_complex::complexity::fast`.
+ * `Gudhi::alpha_complex::complexity::FAST`.
*
* \tparam Weighted Boolean used to set/unset the weighted version of Alpha_complex_3d. Default value is false.
*
@@ -138,9 +143,22 @@ struct Value_from_iterator <complexity::exact>
* 3d Delaunay complex.
*
*/
-template<complexity Complexity = complexity::fast, bool Weighted = false, bool Periodic = false>
+template<complexity Complexity = complexity::FAST, bool Weighted = false, bool Periodic = false>
class Alpha_complex_3d {
- using Predicates = typename std::conditional<((!Weighted && !Periodic) || (Complexity == complexity::fast)),
+ // Epick = Exact_predicates_inexact_constructions_kernel
+ // Epeck = Exact_predicates_exact_constructions_kernel
+ // ExactAlphaComparisonTag = exact version of CGAL Alpha_shape_3 and of its objects (Alpha_shape_vertex_base_3 and
+ // Alpha_shape_cell_base_3). Not available if weighted or periodic.
+ // Can be CGAL::Tag_false or CGAL::Tag_true
+ // cf. https://doc.cgal.org/latest/Alpha_shapes_3/classCGAL_1_1Alpha__shape__3.html
+ //
+ //
+ // FAST SAFE EXACT
+ // not weighted and Epick + CGAL::Tag_false Epick + CGAL::Tag_true Epick + CGAL::Tag_true
+ // not periodic
+ //
+ // otherwise Epick + CGAL::Tag_false Epeck Epeck
+ using Predicates = typename std::conditional<((!Weighted && !Periodic) || (Complexity == complexity::FAST)),
CGAL::Exact_predicates_inexact_constructions_kernel,
CGAL::Exact_predicates_exact_constructions_kernel>::type;
@@ -166,7 +184,7 @@ class Alpha_complex_3d {
using Kernel = typename Kernel_3<Predicates, Weighted, Periodic>::Kernel;
- using Exact_tag = typename std::conditional<(Complexity == complexity::fast),
+ using Exact_tag = typename std::conditional<(Complexity == complexity::FAST),
CGAL::Tag_false,
CGAL::Tag_true>::type;
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex_options.h b/src/Alpha_complex/include/gudhi/Alpha_complex_options.h
index cd9fe799..29eb514a 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex_options.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex_options.h
@@ -29,19 +29,15 @@ namespace Gudhi {
namespace alpha_complex {
/**
- * \class complexity
* \brief Alpha complex complexity template parameter possible values.
*
* \ingroup alpha_complex
*/
enum class complexity: char
{
- /** \brief Fast version.*/
- fast='f',
- /** \brief Safe version.*/
- safe='s',
- /** \brief Exact version.*/
- exact='e',
+ FAST='f', ///< Fast version.
+ SAFE='s', ///< Safe version.
+ EXACT='e', ///< Exact version.
};
} // namespace alpha_complex
diff --git a/src/Alpha_complex/test/Alpha_complex_3d_unit_test.cpp b/src/Alpha_complex/test/Alpha_complex_3d_unit_test.cpp
index d09e8c10..a32e88a6 100644
--- a/src/Alpha_complex/test/Alpha_complex_3d_unit_test.cpp
+++ b/src/Alpha_complex/test/Alpha_complex_3d_unit_test.cpp
@@ -42,21 +42,21 @@
#include <CGAL/Random.h>
#include <CGAL/point_generators_3.h>
-using Fast_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast, false, false>;
-using Safe_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe, false, false>;
-using Exact_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact, false, false>;
+using Fast_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST, false, false>;
+using Safe_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE, false, false>;
+using Exact_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT, false, false>;
-using Fast_weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast, true, false>;
-using Safe_weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe, true, false>;
-using Exact_weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact, true, false>;
+using Fast_weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST, true, false>;
+using Safe_weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE, true, false>;
+using Exact_weighted_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT, true, false>;
-using Fast_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast, false, true>;
-using Safe_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe, false, true>;
-using Exact_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact, false, true>;
+using Fast_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST, false, true>;
+using Safe_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE, false, true>;
+using Exact_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT, false, true>;
-using Fast_weighted_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast, true, true>;
-using Safe_weighted_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe, true, true>;
-using Exact_weighted_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact, true, true>;
+using Fast_weighted_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST, true, true>;
+using Safe_weighted_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE, true, true>;
+using Exact_weighted_periodic_alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT, true, true>;
BOOST_AUTO_TEST_CASE(Alpha_complex_3d_from_points) {
// -----------------
diff --git a/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp b/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
index fb1418bb..c2b49fed 100644
--- a/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
+++ b/src/Alpha_complex/utilities/alpha_complex_3d_persistence.cpp
@@ -38,7 +38,7 @@ using Filtration_value = Simplex_tree::Filtration_value;
using Persistent_cohomology =
Gudhi::persistent_cohomology::Persistent_cohomology<Simplex_tree, Gudhi::persistent_cohomology::Field_Zp>;
-void program_options(int argc, char *argv[], std::string &off_file_points, bool& exact, std::string &weight_file,
+void program_options(int argc, char *argv[], std::string &off_file_points, bool& EXACT, std::string &weight_file,
std::string &cuboid_file, std::string &output_file_diag, Filtration_value &alpha_square_max_value,
int &coeff_field_characteristic, Filtration_value &min_persistence);
@@ -117,24 +117,24 @@ int main(int argc, char **argv) {
periodic_version = true;
}
- Gudhi::alpha_complex::complexity complexity = Gudhi::alpha_complex::complexity::fast;
+ Gudhi::alpha_complex::complexity complexity = Gudhi::alpha_complex::complexity::FAST;
if (exact_version) {
- complexity = Gudhi::alpha_complex::complexity::exact;
+ complexity = Gudhi::alpha_complex::complexity::EXACT;
}
Simplex_tree simplex_tree;
switch(complexity) {
- case Gudhi::alpha_complex::complexity::fast:
+ case Gudhi::alpha_complex::complexity::FAST:
if (weighted_version) {
if (periodic_version) {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
true, true>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, weights, x_min, y_min, z_min, x_max, y_max, z_max);
alpha_complex.create_complex(simplex_tree, alpha_square_max_value);
} else {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
true, false>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, weights);
@@ -142,13 +142,13 @@ int main(int argc, char **argv) {
}
} else {
if (periodic_version) {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
false, true>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, x_min, y_min, z_min, x_max, y_max, z_max);
alpha_complex.create_complex(simplex_tree, alpha_square_max_value);
} else {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::fast,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::FAST,
false, false>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points);
@@ -156,16 +156,16 @@ int main(int argc, char **argv) {
}
}
break;
- case Gudhi::alpha_complex::complexity::exact:
+ case Gudhi::alpha_complex::complexity::EXACT:
if (weighted_version) {
if (periodic_version) {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
true, true>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, weights, x_min, y_min, z_min, x_max, y_max, z_max);
alpha_complex.create_complex(simplex_tree, alpha_square_max_value);
} else {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
true, false>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, weights);
@@ -173,13 +173,13 @@ int main(int argc, char **argv) {
}
} else {
if (periodic_version) {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
false, true>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, x_min, y_min, z_min, x_max, y_max, z_max);
alpha_complex.create_complex(simplex_tree, alpha_square_max_value);
} else {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::exact,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::EXACT,
false, false>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points);
@@ -187,16 +187,16 @@ int main(int argc, char **argv) {
}
}
break;
- case Gudhi::alpha_complex::complexity::safe:
+ case Gudhi::alpha_complex::complexity::SAFE:
if (weighted_version) {
if (periodic_version) {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
true, true>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, weights, x_min, y_min, z_min, x_max, y_max, z_max);
alpha_complex.create_complex(simplex_tree, alpha_square_max_value);
} else {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
true, false>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, weights);
@@ -204,13 +204,13 @@ int main(int argc, char **argv) {
}
} else {
if (periodic_version) {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
false, true>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points, x_min, y_min, z_min, x_max, y_max, z_max);
alpha_complex.create_complex(simplex_tree, alpha_square_max_value);
} else {
- using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::safe,
+ using Alpha_complex_3d = Gudhi::alpha_complex::Alpha_complex_3d<Gudhi::alpha_complex::complexity::SAFE,
false, false>;
auto points = read_off<Alpha_complex_3d>(off_file_points);
Alpha_complex_3d alpha_complex(points);
@@ -248,7 +248,7 @@ int main(int argc, char **argv) {
return 0;
}
-void program_options(int argc, char *argv[], std::string &off_file_points, bool& exact, std::string &weight_file,
+void program_options(int argc, char *argv[], std::string &off_file_points, bool& EXACT, std::string &weight_file,
std::string &cuboid_file, std::string &output_file_diag, Filtration_value &alpha_square_max_value,
int &coeff_field_characteristic, Filtration_value &min_persistence) {
namespace po = boost::program_options;
@@ -258,8 +258,8 @@ void program_options(int argc, char *argv[], std::string &off_file_points, bool&
po::options_description visible("Allowed options", 100);
visible.add_options()("help,h", "produce help message")(
- "exact,e", po::bool_switch(&exact),
- "To activate exact version of Alpha complex 3d (default is false, not available for weighted and/or periodic)")(
+ "EXACT,e", po::bool_switch(&EXACT),
+ "To activate EXACT version of Alpha complex 3d (default is false, not available for weighted and/or periodic)")(
"weight-file,w", po::value<std::string>(&weight_file)->default_value(std::string()),
"Name of file containing a point weights. Format is one weight per line:\n W1\n ...\n Wn ")(
"cuboid-file,c", po::value<std::string>(&cuboid_file),
@@ -289,7 +289,7 @@ void program_options(int argc, char *argv[], std::string &off_file_points, bool&
std::cout << std::endl;
std::cout << "Compute the persistent homology with coefficient field Z/pZ \n";
std::cout << "of a 3D Alpha complex defined on a set of input points.\n";
- std::cout << "3D Alpha complex can be exact or weighted and/or periodic\n\n";
+ std::cout << "3D Alpha complex can be EXACT or weighted and/or periodic\n\n";
std::cout << "The output diagram contains one bar per line, written with the convention: \n";
std::cout << " p dim b d \n";
std::cout << "where dim is the dimension of the homological feature,\n";