File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3338,8 +3338,10 @@ IfcProfile IfcGeometryLoader::GetProfile(uint32_t expressID) const
3338
3338
3339
3339
glm::dmat4 IfcGeometryLoader::GetLocalPlacement (uint32_t expressID) const
3340
3340
{
3341
- if (_expressIDToPlacement.contains (expressID)) {
3342
- return _expressIDToPlacement[expressID];
3341
+ auto itFind = _expressIDToPlacement.find (expressID);
3342
+ if (itFind != _expressIDToPlacement.end ())
3343
+ {
3344
+ return itFind->second ;
3343
3345
}
3344
3346
else
3345
3347
{
Original file line number Diff line number Diff line change @@ -1607,6 +1607,10 @@ namespace webifc::geometry
1607
1607
1608
1608
1609
1609
auto geom = _expressIDToGeometry[composedMesh.expressID ];
1610
+ if (geom.isPolygon )
1611
+ {
1612
+ return ; // only triangles here
1613
+ }
1610
1614
if (geometry.testReverse ()) geom.ReverseFaces ();
1611
1615
1612
1616
auto translation = glm::dmat4 (1.0 );
You can’t perform that action at this time.
0 commit comments