mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
bfa2d789f1
IfcTriangulatedFaceSet/IfcPolygonalFaceSet were introduced in Fix #7992: IFC4 and do not exist in IFC2X3. Previously, requesting an IfcTessellatedFaceSet representation in an IFC2X3 file silently fell back to a faceted brep after unassigning material sets. Add a guard in the update_representation operator (user-facing error) and in the add_representation API (ValueError) so the unsupported request is caught instead of failing silently. Generated with the assistance of an AI coding tool.