mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
Clash: Increase robustness of processing triangulated elements - skip empty #7467
This commit is contained in:
@@ -1792,6 +1792,10 @@ namespace IfcGeom {
|
|||||||
auto& vs = elem->geometry().verts();
|
auto& vs = elem->geometry().verts();
|
||||||
auto& fs = elem->geometry().faces();
|
auto& fs = elem->geometry().faces();
|
||||||
|
|
||||||
|
if (vs.empty() || fs.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
gp_Trsf tr;
|
gp_Trsf tr;
|
||||||
tr.SetValues(
|
tr.SetValues(
|
||||||
m(0, 0), m(0, 1), m(0, 2), m(0, 3),
|
m(0, 0), m(0, 1), m(0, 2), m(0, 3),
|
||||||
|
|||||||
Reference in New Issue
Block a user