tumcms / Open-Infra-Platform

This is the official repository of the open-source Open Infra Platform software (as of April 2020).
Other
47 stars 21 forks source link

[BUG] IfcSphere in IfcShapeRepresentation not supported #555

Open christophKaiser opened 2 years ago

christophKaiser commented 2 years ago

Describe the bug If an IfcSphere is defined as follwing, the sphere is not displayed in the rendering of the ifc file. An appropriate error message appears in the output window, which tells the entity is not supported.

IfcProductDefinitionsShape
  IfcShapeRepresentation
    IfcSphere

However, other viewers do support this structure, like FreeCAD or BIMcollab.

Screen shot OIP: grafik

FreeCAD: grafik

pjanck commented 2 years ago

Expand RepresentationConverter::convertIfcGeometricRepresentationItem appropriately for IfcCsgPrimitive3D and call SolidModelConverter::convertIfcCsgPrimitive3D. Should work then.

christophKaiser commented 2 years ago

Thanks. I already have the code changes - just have to do a little bit of cosmetics and put them into nice commits.