Skip to main content

create_indexed_triangle_texture_map

Function create_indexed_triangle_texture_map 

Source
pub fn create_indexed_triangle_texture_map(
    tx: &mut Transaction,
    schema: &Schema,
    maps: &[EntityId],
    mapped_to: EntityId,
    tex_coords: EntityId,
    tex_coord_index: &[[i64; 3]],
) -> StyleResult<EntityId>
Expand description

Stage an IfcIndexedTriangleTextureMap.

The triangle form differs from the polygonal one in its index slot: TexCoordIndex is a list of triples of integers into the coordinate list, not a list of index entities. Writing entity references there would produce a map whose every triangle is unresolvable, which is why the two forms have separate writers.

ยงErrors

Refuses an empty maps list (LIST [1:?]) and an index value of zero: IfcPositiveInteger is one-based.