Skip to main content

create_texture_coordinate_generator

Function create_texture_coordinate_generator 

Source
pub fn create_texture_coordinate_generator(
    tx: &mut Transaction,
    schema: &Schema,
    maps: &[EntityId],
    mode: &str,
    parameters: &[f64],
) -> StyleResult<EntityId>
Expand description

Stage an IfcTextureCoordinateGenerator: coordinates computed, not listed.

mode names the generating function (SPHERE, CYLINDER, and so on). Unlike create_texture_map there are no vertices: the consumer derives them from the mode and parameters.

§Errors

Refuses an empty maps list, a blank mode – which would leave the generator with no function to apply – and a non-finite parameter.