Skip to main content

IntoFaceList

Trait IntoFaceList 

Source
pub trait IntoFaceList {
    // Required method
    fn into_face_list(self) -> Vec<Vec<u32>>;
}
Expand description

Trait for face data that can be converted to the internal polygon format.

Implemented for:

  • Vec<UVec3> — triangle-only meshes
  • Vec<[u32; 3]> — triangle-only meshes (array form)
  • Vec<Vec<u32>> — arbitrary polygon meshes (triangles, quads, pentagons, etc.)

Required Methods§

Source

fn into_face_list(self) -> Vec<Vec<u32>>

Converts to the internal polygon face representation.

Implementations on Foreign Types§

Source§

impl IntoFaceList for Vec<Vec<u32>>

Source§

impl IntoFaceList for Vec<UVec3>

Source§

impl IntoFaceList for Vec<[u32; 3]>

Implementors§