Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Oct 9, 2023
1 parent 1c91f49 commit 584771e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ int main(int argc, char* argv[])
CGAL::Polygon_mesh_processing::refine_mesh_at_isolevel(tm, vertex_distance, isovalue, CGAL::parameters::edge_is_constrained_map(ecm));

// split the mesh in connected components bounded by the isocurves
std::vector<Triangle_mesh> splitted;
CGAL::Polygon_mesh_processing::split_connected_components(tm, splitted, CGAL::parameters::edge_is_constrained_map(ecm));
std::vector<Triangle_mesh> edges_split;
CGAL::Polygon_mesh_processing::split_connected_components(tm, edges_split, CGAL::parameters::edge_is_constrained_map(ecm));

assert(argc!=1 || splitted.size() == 22);
assert(argc!=1 || edges_split.size() == 22);

// export each submesh in a file
for(std::size_t i=0; i<splitted.size(); ++i)
std::ofstream("out_"+std::to_string(i)+".off") << std::setprecision(17) << splitted[i];
for(std::size_t i=0; i<edges_split.size(); ++i)
std::ofstream("out_"+std::to_string(i)+".off") << std::setprecision(17) << edges_split[i];

return 0;
}

0 comments on commit 584771e

Please sign in to comment.