diff --git a/src/ifcgeom/kernels/cgal/CgalKernel.cpp b/src/ifcgeom/kernels/cgal/CgalKernel.cpp index bc13ea6fb0..10e616c318 100644 --- a/src/ifcgeom/kernels/cgal/CgalKernel.cpp +++ b/src/ifcgeom/kernels/cgal/CgalKernel.cpp @@ -245,7 +245,9 @@ bool IfcGeom::CgalKernel::convert_openings(const IfcSchema::IfcProduct* entity, for ( unsigned int i = 0; i < opening_shapes.size(); ++ i ) { cgal_placement_t gtrsf; - if (opening_shapes[i].Placement()) gtrsf = *(CgalPlacement*)opening_shapes[i].Placement(); + if (opening_shapes[i].Placement()) { + gtrsf = *(CgalPlacement*)opening_shapes[i].Placement(); + } gtrsf = gtrsf * opening_trsf; cgal_shape_t opening_shape(((CgalShape*)opening_shapes[i].Shape())->shape()); opening_shape.transform(gtrsf); @@ -275,24 +277,24 @@ bool IfcGeom::CgalKernel::convert_openings(const IfcSchema::IfcProduct* entity, for (auto &opening: opening_shapelist) { - CGAL::Polyhedron_3 polyhedron; - brep_cut_result.convert_to_polyhedron(polyhedron); - std::ofstream fresult; - fresult.open("/Users/ken/Desktop/before.off"); - fresult << polyhedron << std::endl; - fresult.close(); - - opening.convert_to_polyhedron(polyhedron); - fresult.open("/Users/ken/Desktop/opening.off"); - fresult << polyhedron << std::endl; - fresult.close(); +// CGAL::Polyhedron_3 polyhedron; +// brep_cut_result.convert_to_polyhedron(polyhedron); +// std::ofstream fresult; +// fresult.open("/Users/ken/Desktop/before.off"); +// fresult << polyhedron << std::endl; +// fresult.close(); +// +// opening.convert_to_polyhedron(polyhedron); +// fresult.open("/Users/ken/Desktop/opening.off"); +// fresult << polyhedron << std::endl; +// fresult.close(); brep_cut_result -= opening; - brep_cut_result.convert_to_polyhedron(polyhedron); - fresult.open("/Users/ken/Desktop/after.off"); - fresult << polyhedron << std::endl; - fresult.close(); +// brep_cut_result.convert_to_polyhedron(polyhedron); +// fresult.open("/Users/ken/Desktop/after.off"); +// fresult << polyhedron << std::endl; +// fresult.close(); } if (brep_cut_result.is_valid()) {