Skip to main content

indexed_polygonal_face_with_voids

Function indexed_polygonal_face_with_voids 

Source
pub fn indexed_polygonal_face_with_voids(
    tx: &mut Transaction,
    outer: &[usize],
    voids: &[&[usize]],
    point_count: usize,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcIndexedPolygonalFaceWithVoids.

Both the outer loop and every inner loop are 0-based here. The schema does not say the voids lie inside the outer loop – checking that needs geometry, which this module does not do – so a caller who passes a disjoint loop gets a face that parses and is wrong in a way only an evaluator can see.

§Errors

Refuses an empty void list (that is a plain indexed_polygonal_face), any loop under three vertices, or an index outside the list.