Remove debug code

This commit is contained in:
Ken Arroyo Ohori
2017-03-10 18:26:15 -06:00
parent ac7099ab39
commit d02918070d
+18 -16
View File
@@ -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()) {