mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Ditto
This commit is contained in:
@@ -45,9 +45,14 @@ CGAL::Polyhedron_3<Kernel> IfcGeom::CgalKernel::create_polyhedron(std::list<cgal
|
|||||||
|
|
||||||
CGAL::Polyhedron_3<Kernel> IfcGeom::CgalKernel::create_polyhedron(CGAL::Nef_polyhedron_3<Kernel> &nef_polyhedron) {
|
CGAL::Polyhedron_3<Kernel> IfcGeom::CgalKernel::create_polyhedron(CGAL::Nef_polyhedron_3<Kernel> &nef_polyhedron) {
|
||||||
if (nef_polyhedron.is_simple()) {
|
if (nef_polyhedron.is_simple()) {
|
||||||
CGAL::Polyhedron_3<Kernel> polyhedron;
|
try {
|
||||||
nef_polyhedron.convert_to_polyhedron(polyhedron);
|
CGAL::Polyhedron_3<Kernel> polyhedron;
|
||||||
return polyhedron;
|
nef_polyhedron.convert_to_polyhedron(polyhedron);
|
||||||
|
return polyhedron;
|
||||||
|
} catch (...) {
|
||||||
|
std::cout << "Conversion from Nef to polyhedron failed!" << std::endl;
|
||||||
|
return CGAL::Polyhedron_3<Kernel>();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
std::cout << "Nef polyhedron not simple: cannot create polyhedron!" << std::endl;
|
std::cout << "Nef polyhedron not simple: cannot create polyhedron!" << std::endl;
|
||||||
return CGAL::Polyhedron_3<Kernel>();
|
return CGAL::Polyhedron_3<Kernel>();
|
||||||
|
|||||||
Reference in New Issue
Block a user