Skip to main content

create_texture_coordinate_indices_with_voids

Function create_texture_coordinate_indices_with_voids 

Source
pub fn create_texture_coordinate_indices_with_voids(
    tx: &mut Transaction,
    schema: &Schema,
    tex_coord_index: &[i64],
    tex_coords_of: EntityId,
    inner_tex_coord_indices: &[&[i64]],
) -> StyleResult<EntityId>
Expand description

Stage an IfcTextureCoordinateIndicesWithVoids.

inner_tex_coord_indices is LIST [1:?] OF LIST [3:?] OF UNIQUE: each void is its own loop of at least three indices, and the indices within one void must be distinct. A repeated index inside a void collapses two corners of the hole onto one texture coordinate, which parses and renders wrongly.

ยงErrors

Refuses an outer list with no voids, any void with fewer than three indices, any index below 1, and a repeated index within a single void.