Skip to main content

poly_loop

Function poly_loop 

Source
pub fn poly_loop(
    tx: &mut Transaction,
    polygon: &[EntityId],
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcPolyLoop through an ordered point list.

§Errors

Refuses fewer than three points: LIST [3:?], because two points bound no area. The closing point is implicit – repeating the first point at the end creates a zero-length edge, so this writer takes the list as the schema defines it and does not close it for you.