bevy_render::mesh::primitives

Trait Extrudable

Source
pub trait Extrudable: MeshBuilder {
    // Required method
    fn perimeter(&self) -> Vec<PerimeterSegment>;
}
Expand description

A trait required for implementing Meshable for Extrusion<T>.

§Warning

By implementing this trait you guarantee that the primitive_topology of the mesh returned by this builder is PrimitiveTopology::TriangleList and that your mesh has a Mesh::ATTRIBUTE_POSITION attribute.

Required Methods§

Source

fn perimeter(&self) -> Vec<PerimeterSegment>

A list of the indices each representing a part of the perimeter of the mesh.

Implementors§