Skip to content

Commit

Permalink
Issue #841 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuimMoya committed Oct 30, 2024
1 parent 196217c commit 40b33ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpp/geometry/IfcGeometryLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1818,6 +1818,10 @@ namespace webifc::geometry
{
dimensions = 3;
}
if(typePlacement == schema::IFCAXIS2PLACEMENT2D)
{
dimensions = 2;
}

_loader.MoveToArgumentOffset(expressID, 0);
positionID = _loader.GetRefArgument();
Expand Down
1 change: 1 addition & 0 deletions src/cpp/geometry/IfcGeometryProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ namespace webifc::geometry

IfcGeometry geom = Sweep(_geometryLoader.GetLinearScalingFactor(), closed, profile, directrix, surface.normal(), true);

mesh.transformation = placement;
_expressIDToGeometry[expressID] = geom;
mesh.expressID = expressID;
mesh.hasGeometry = true;
Expand Down

0 comments on commit 40b33ac

Please sign in to comment.