bevy_render::mesh::primitives

Trait 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

Source§

impl Meshable for ConicalFrustum

Source§

impl Meshable for Cuboid

Source§

type Output = CuboidMeshBuilder

Source§

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

Source§

impl Meshable for Cylinder

Source§

impl Meshable for Plane3d

Source§

impl Meshable for Sphere

Source§

impl Meshable for Tetrahedron

Source§

type Output = TetrahedronMeshBuilder

Source§

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

Source§

impl Meshable for Torus

Source§

impl Meshable for Triangle3d

Source§

type Output = Triangle3dMeshBuilder

Source§

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

Source§

impl<P> Meshable for Extrusion<P>

Implementors§