Skip to main content

polygonal_face_set

Function polygonal_face_set 

Source
pub fn polygonal_face_set(
    tx: &mut Transaction,
    coordinates: EntityId,
    point_count: usize,
    faces: &[EntityId],
    closed: Option<bool>,
    pn_index: Option<&[usize]>,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcPolygonalFaceSet over existing faces.

The faces must already be staged: they are IfcIndexedPolygonalFace records in their own right, and the schema requires the list be UNIQUE, so a face reused twice is refused here rather than left for a validator.

ยงErrors

Refuses an empty or duplicated face list, or a PnIndex entry outside the point list.