ifcShapeRepresentationType function
PIComposer APIPIComposer API

ifcShapeRepresentationType#

String ifcShapeRepresentationType(ISchema schema, List<IInstance> items)

Determines the IFC representation type based on the items in a shape representation.

This is an implementation of the IFC function IfcShapeRepresentationTypes as specified in the EXPRESS schema. It analyzes a list of geometric items items within an IFC schema and returns the most appropriate RepresentationType string (e.g., 'Brep', 'Tessellation').

Returns an empty string if the items list is empty or the schema is not an IFC schema.