From 2d4c17a08856076b807bfee0b024dd58e678731c Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 27 Feb 2025 15:13:20 +0100 Subject: [PATCH 1/2] deal with cells with subdomain_index 0 --- Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp b/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp index 58512209f23..121aa7cd6e7 100644 --- a/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp +++ b/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp @@ -447,8 +447,8 @@ public: cit != c3t3_item->c3t3().triangulation().finite_cells_end(); ++cit) { - CGAL_assertion(cit->info() >= 0); - c3t3_item->c3t3().add_to_complex(cit, cit->info()); + if(cit->info() != 0) + c3t3_item->c3t3().add_to_complex(cit, cit->info()); for(int i=0; i < 4; ++i) { if(cit->surface_patch_index(i)>0) From d6018ee8cac13fbc9a48efb123d9a2450868504c Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 27 Feb 2025 16:52:12 +0100 Subject: [PATCH 2/2] open the ofstream in binary mode to be consistent with BINARY parameter in CGAL::IO::output_to_vtu() --- Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp b/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp index 121aa7cd6e7..9fcea780b98 100644 --- a/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp +++ b/Lab/demo/Lab/Plugins/IO/VTK_io_plugin.cpp @@ -250,7 +250,7 @@ public: if(!c3t3_item || extension != "vtu") return false; - std::ofstream os(output_filename.data()); + std::ofstream os(output_filename.data(), std::ios::binary); os << std::setprecision(16); const C3t3& c3t3 = c3t3_item->c3t3();