Skip to main content

triangulated_face_set

Function triangulated_face_set 

Source
pub fn triangulated_face_set(
    tx: &mut Transaction,
    coordinates: EntityId,
    point_count: usize,
    triangles: &[[usize; 3]],
    extras: TriangulatedExtras<'_>,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcTriangulatedFaceSet over an existing point list.

triangles are 0-based indices into points, which must be the list coordinates refers to: the count is what bounds the indices.

ยงErrors

Refuses an empty triangle list, an index outside the point list, or a non-finite normal.