mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 22:43:41 +00:00
Composite curves
This commit is contained in:
@@ -127,7 +127,7 @@ bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcExtrudedAreaSolid *l, cgal
|
||||
face_list.push_back(bottom_face);
|
||||
|
||||
// if (true) {
|
||||
// cgal_shape_t polyhedron = CGAL::Polyhedron_3<Kernel>();
|
||||
// CGAL::Polyhedron_3<Kernel> polyhedron;
|
||||
// PolyhedronBuilder builder(&face_list);
|
||||
// polyhedron.delegate(builder);
|
||||
//
|
||||
@@ -166,12 +166,13 @@ bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcExtrudedAreaSolid *l, cgal
|
||||
|
||||
// Stitch edges
|
||||
// std::cout << "Before: " << polyhedron.size_of_vertices() << " vertices and " << polyhedron.size_of_facets() << " facets" << std::endl;
|
||||
CGAL::Polyhedron_3<Kernel> old_polyhedron(polyhedron);
|
||||
CGAL::Polygon_mesh_processing::stitch_borders(polyhedron);
|
||||
if (!polyhedron.is_valid()) {
|
||||
std::cout << "Invalid polyhedron!" << std::endl;
|
||||
std::ofstream fresult;
|
||||
fresult.open("/Users/ken/Desktop/invalid.off");
|
||||
fresult << polyhedron << std::endl;
|
||||
fresult << old_polyhedron << std::endl;
|
||||
fresult.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user