Open IbrahimMassoud opened 3 years ago
The provided model does not conform to the standard, because according to the description of the IfcSweptDiskSolidPolygonal the directrix curve may only be IfcPolyline
, and in this model we have IfcCompositeCurve
containing single IfcPolyLine
. However, I think Xbim could allow this. The problem can be fixed in void XbimSolid::Init(IIfcSweptDiskSolid^ repItem, ILogger^ logger)
by setting transitionMode
to BRepBuilderAPI_TransitionMode::BRepBuilderAPI_RightCorner
. The is already some logic to determine the transitionMode
value based on directrix curve type, but using IfcCompositeCurve
breaks it.
I have a problem with rendering IfcSweptDiskSolid if its curve has more than one plane, although it works well with other viewers like Autodesk Viewer
down here is the sample of code I used.
using (var txn = model.BeginTransaction()) {
You can check this image to find the difference between the expected behavior and the actual one.
This is the output ifc file: stirrup.zip