Trait bevy_render::mesh::primitives::Extrudable
source · pub trait Extrudable: MeshBuilder {
// Required method
fn perimeter(&self) -> Vec<PerimeterSegment>;
}
Expand description
A trait for 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§
sourcefn perimeter(&self) -> Vec<PerimeterSegment>
fn perimeter(&self) -> Vec<PerimeterSegment>
A list of the indices each representing a part of the perimeter of the mesh.