Trait bevy_render::mesh::primitives::Meshable

source ·
pub trait Meshable {
    type Output: MeshBuilder;

    // Required method
    fn mesh(&self) -> Self::Output;
}
Expand description

A trait for shapes that can be turned into a Mesh.

Required Associated Types§

source

type Output: MeshBuilder

The output of Self::mesh. This will be a MeshBuilder used for creating a Mesh.

Required Methods§

source

fn mesh(&self) -> Self::Output

Creates a Mesh for a shape.

Implementations on Foreign Types§

source§

impl Meshable for Annulus

source§

impl Meshable for Capsule2d

source§

impl Meshable for Circle

source§

impl Meshable for CircularSector

source§

impl Meshable for CircularSegment

source§

impl Meshable for Ellipse

source§

impl Meshable for Rectangle

source§

impl Meshable for RegularPolygon

source§

impl Meshable for Rhombus

source§

impl Meshable for Triangle2d

source§

impl Meshable for Capsule3d

source§

impl Meshable for Cone

§

type Output = ConeMeshBuilder

source§

fn mesh(&self) -> Self::Output

source§

impl Meshable for ConicalFrustum

source§

impl Meshable for Cuboid

§

type Output = CuboidMeshBuilder

source§

fn mesh(&self) -> Self::Output

source§

impl Meshable for Cylinder

source§

impl Meshable for Plane3d

§

type Output = PlaneMeshBuilder

source§

fn mesh(&self) -> Self::Output

source§

impl Meshable for Sphere

source§

impl Meshable for Tetrahedron

§

type Output = TetrahedronMeshBuilder

source§

fn mesh(&self) -> Self::Output

source§

impl Meshable for Torus

§

type Output = TorusMeshBuilder

source§

fn mesh(&self) -> Self::Output

source§

impl Meshable for Triangle3d

§

type Output = Triangle3dMeshBuilder

source§

fn mesh(&self) -> Self::Output

source§

impl<P> Meshable for Extrusion<P>

§

type Output = ExtrusionBuilder<P>

source§

fn mesh(&self) -> Self::Output

Implementors§