Closed Supporting closed 8 years ago
RVM Spheres could be represented using the IfcSphere entity. The tool support for this entity is however poor:
Here a simple generated IFC file used for testing: sphere-sphere.zip
Here the mapping in PMUC source code.
Alternatively, a sphere can be represented by an revolution of the circle with an offset of zero (degenerated torus). The tool support is similar to the CircularTorus, however, the degenerated torus is not rendered correctly in FZKViewer and TeklaBIM.
Here a simple generated IFC file used for testing: sphere-degenerated-torus.zip
Renders correctly in AssimpViewer:
A third alternative is revolving a trimmed circle curve, i.e. a 180° arc.
The tool support for the IfcTrimmedCurve is poor. Only FZKViewer and IfcOpenShell were able to deal with this alternative.
Here a simple generated IFC file used for testing: sphere-revolved-trimmedcurve.zip
File above tessellated to Wavefront OBJ using IfcOpenShell and displayed in Assimp Viewer:
Another alternative is revolving a IfcArbitraryClosedProfileDef constructued from an IfcCompositeCurve. The curve composite describes half a circle using a trimmed circle and a polyline.
Compared to the other approaches, Tekla BIMSight also understands this representaton:
Here a simple generated IFC file used for testing: sphere-revolved-compositecurve.zip
Result in Tekla BIMsight:
Currently, Sphere primitives get tessellated and are represented as IfcConnectedFaceset. Find a suitable representation that represents the torus more efficient and information conserving.