generate_uvs

Function generate_uvs 

Source
pub fn generate_uvs(
    vertices: impl Iterator<Item = Matrix<f32, Const<3>, Const<1>, ArrayStorage<f32, 3, 1>>>,
    triangles: impl Iterator<Item = [u32; 3]>,
    spacing: f32,
) -> Option<SurfaceDataPatch>
Expand description

Generates UV map for the given vertices and triangles.

§Performance

This method utilizes lots of “brute force” algorithms, so it is not fast as it could be in ideal case. It also allocates some memory for internal needs.