summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/example/dtoffrw_alphashapedoc_result.off15
-rw-r--r--src/common/example/dtoffrw_alphashapedoc_result.txt1
-rw-r--r--src/common/include/gudhi/Delaunay_triangulation_off_io.h2
-rw-r--r--src/common/test/dtoffrw_unit_test.cpp4
4 files changed, 18 insertions, 4 deletions
diff --git a/src/common/example/dtoffrw_alphashapedoc_result.off b/src/common/example/dtoffrw_alphashapedoc_result.off
new file mode 100644
index 00000000..03b7ca75
--- /dev/null
+++ b/src/common/example/dtoffrw_alphashapedoc_result.off
@@ -0,0 +1,15 @@
+nOFF
+2 7 6 0
+1 1
+7 0
+4 6
+9 6
+0 14
+2 19
+9 17
+3 0 1 2
+3 3 2 1
+3 4 0 2
+3 4 2 6
+3 6 2 3
+3 5 4 6
diff --git a/src/common/example/dtoffrw_alphashapedoc_result.txt b/src/common/example/dtoffrw_alphashapedoc_result.txt
index 57761d14..8e659740 100644
--- a/src/common/example/dtoffrw_alphashapedoc_result.txt
+++ b/src/common/example/dtoffrw_alphashapedoc_result.txt
@@ -1,3 +1,2 @@
Number of vertices= 7
Number of finite full cells= 6
-
diff --git a/src/common/include/gudhi/Delaunay_triangulation_off_io.h b/src/common/include/gudhi/Delaunay_triangulation_off_io.h
index 6335d243..b3f4a299 100644
--- a/src/common/include/gudhi/Delaunay_triangulation_off_io.h
+++ b/src/common/include/gudhi/Delaunay_triangulation_off_io.h
@@ -135,7 +135,7 @@ class Delaunay_triangulation_off_visitor_reader {
*
* When launching:
*
- * \code $> ./dtoffrw ../../data/points/alphashapedoc.off triangulated.off
+ * \code $> ./dtoffrw ../../data/points/alphacomplexdoc triangulated.off
* \endcode
*
* the program output is:
diff --git a/src/common/test/dtoffrw_unit_test.cpp b/src/common/test/dtoffrw_unit_test.cpp
index 20094229..f682df1a 100644
--- a/src/common/test/dtoffrw_unit_test.cpp
+++ b/src/common/test/dtoffrw_unit_test.cpp
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE( Delaunay_triangulation_doc_test )
BOOST_AUTO_TEST_CASE( Delaunay_triangulation_unexisting_file_read_test )
{
- Gudhi::Delaunay_triangulation_off_reader<T> off_reader("pouetpouet_tralala.off");
+ Gudhi::Delaunay_triangulation_off_reader<T> off_reader("some_impossible_weird_file_name.off");
// Check the read operation was correct
BOOST_CHECK(!off_reader.is_valid());
T* triangulation = off_reader.get_complex();
@@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE( Delaunay_triangulation_unexisting_file_write_test )
T* triangulation = off_reader.get_complex();
// Write the OFF file (output file name given as parameter) with the points and triangulated cells as faces
- Gudhi::Delaunay_triangulation_off_writer<T> off_writer("/pouetpouet_tralala/pouetpouet_tralala/pouetpouet_tralala.off", triangulation);
+ Gudhi::Delaunay_triangulation_off_writer<T> off_writer("/some_impossible_weird_directory_name/another_weird_directory_name/some_impossible_weird_file_name.off", triangulation);
// Check the write operation was correct
BOOST_CHECK(!off_writer.is_valid());