mirror of https://github.com/CGAL/cgal
Merge pull request #7917 from afabri/PMP-concurrentIO-GF
PMP: Write into different files to avoid concurrent writing
This commit is contained in:
commit
7cfba8f54c
|
|
@ -335,7 +335,7 @@ void test_triangulate_refine_and_fair_hole_compile() {
|
|||
std::vector<Vertex_handle> patch_vertices;
|
||||
|
||||
// use all param
|
||||
read_poly_with_borders("elephant_quad_hole.off", poly, border_reps);
|
||||
read_poly_with_borders("elephant_quad_hole_no_DT3.off", poly, border_reps);
|
||||
CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole
|
||||
(poly, border_reps[0],
|
||||
CGAL::parameters::
|
||||
|
|
@ -345,7 +345,7 @@ void test_triangulate_refine_and_fair_hole_compile() {
|
|||
sparse_linear_solver(Default_solver()));
|
||||
|
||||
// default solver
|
||||
read_poly_with_borders("elephant_quad_hole.off", poly, border_reps);
|
||||
read_poly_with_borders("elephant_quad_hole_no_DT3.off", poly, border_reps);
|
||||
CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole
|
||||
(poly, border_reps[0],
|
||||
CGAL::parameters::
|
||||
|
|
@ -354,7 +354,7 @@ void test_triangulate_refine_and_fair_hole_compile() {
|
|||
weight_calculator(CGAL::Weights::Uniform_weight<Polyhedron>()));
|
||||
|
||||
// default solver and weight
|
||||
read_poly_with_borders("elephant_quad_hole.off", poly, border_reps);
|
||||
read_poly_with_borders("elephant_quad_hole_no_DT3.off", poly, border_reps);
|
||||
CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole
|
||||
(poly, border_reps[0],
|
||||
CGAL::parameters::
|
||||
|
|
@ -376,11 +376,11 @@ void generate_elephant_with_hole()
|
|||
{
|
||||
Halfedge_handle nh=opposite(halfedge(fd,poly), poly);
|
||||
CGAL::Euler::remove_face(halfedge(fd, poly), poly);
|
||||
std::ofstream output("elephant_triangle_hole.off");
|
||||
std::ofstream output("elephant_triangle_hole_no_DT3.off");
|
||||
output << poly;
|
||||
output.close();
|
||||
CGAL::Euler::remove_face(nh, poly);
|
||||
output.open("elephant_quad_hole.off");
|
||||
output.open("elephant_quad_hole_no_DT3.off");
|
||||
output << poly;
|
||||
return;
|
||||
}
|
||||
|
|
@ -396,8 +396,8 @@ typedef CGAL::Surface_mesh<typename Kernel::Point_3> Polyhedron;
|
|||
generate_elephant_with_hole<Polyhedron>();
|
||||
|
||||
std::vector<std::string> input_files;
|
||||
input_files.push_back("elephant_triangle_hole.off");
|
||||
input_files.push_back("elephant_quad_hole.off");
|
||||
input_files.push_back("elephant_triangle_hole_no_DT3.off");
|
||||
input_files.push_back("elephant_quad_hole_no_DT3.off");
|
||||
input_files.push_back(CGAL::data_file_path("meshes/mech-holes-shark.off"));
|
||||
// std::cerr.precision(15);
|
||||
for(std::vector<std::string>::iterator it = input_files.begin(); it != input_files.end(); ++it) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue