mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 12:40:07 +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 ) {
|
for ( unsigned int i = 0; i < opening_shapes.size(); ++ i ) {
|
||||||
cgal_placement_t gtrsf;
|
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;
|
gtrsf = gtrsf * opening_trsf;
|
||||||
cgal_shape_t opening_shape(((CgalShape*)opening_shapes[i].Shape())->shape());
|
cgal_shape_t opening_shape(((CgalShape*)opening_shapes[i].Shape())->shape());
|
||||||
opening_shape.transform(gtrsf);
|
opening_shape.transform(gtrsf);
|
||||||
@@ -275,24 +277,24 @@ bool IfcGeom::CgalKernel::convert_openings(const IfcSchema::IfcProduct* entity,
|
|||||||
|
|
||||||
for (auto &opening: opening_shapelist) {
|
for (auto &opening: opening_shapelist) {
|
||||||
|
|
||||||
CGAL::Polyhedron_3<Kernel> polyhedron;
|
// CGAL::Polyhedron_3<Kernel> polyhedron;
|
||||||
brep_cut_result.convert_to_polyhedron(polyhedron);
|
// brep_cut_result.convert_to_polyhedron(polyhedron);
|
||||||
std::ofstream fresult;
|
// std::ofstream fresult;
|
||||||
fresult.open("/Users/ken/Desktop/before.off");
|
// fresult.open("/Users/ken/Desktop/before.off");
|
||||||
fresult << polyhedron << std::endl;
|
// fresult << polyhedron << std::endl;
|
||||||
fresult.close();
|
// fresult.close();
|
||||||
|
//
|
||||||
opening.convert_to_polyhedron(polyhedron);
|
// opening.convert_to_polyhedron(polyhedron);
|
||||||
fresult.open("/Users/ken/Desktop/opening.off");
|
// fresult.open("/Users/ken/Desktop/opening.off");
|
||||||
fresult << polyhedron << std::endl;
|
// fresult << polyhedron << std::endl;
|
||||||
fresult.close();
|
// fresult.close();
|
||||||
|
|
||||||
brep_cut_result -= opening;
|
brep_cut_result -= opening;
|
||||||
|
|
||||||
brep_cut_result.convert_to_polyhedron(polyhedron);
|
// brep_cut_result.convert_to_polyhedron(polyhedron);
|
||||||
fresult.open("/Users/ken/Desktop/after.off");
|
// fresult.open("/Users/ken/Desktop/after.off");
|
||||||
fresult << polyhedron << std::endl;
|
// fresult << polyhedron << std::endl;
|
||||||
fresult.close();
|
// fresult.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (brep_cut_result.is_valid()) {
|
if (brep_cut_result.is_valid()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user