mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Remove debug code
This commit is contained in:
@@ -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<Kernel> 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<Kernel> 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()) {
|
||||
|
||||
Reference in New Issue
Block a user