pub trait Meshable {
    type Output;

    // 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

The output of Self::mesh. This can either be a Mesh or a builder 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 Capsule2d

§

type Output = Capsule2dMeshBuilder

source§

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

source§

impl Meshable for Circle

source§

impl Meshable for Ellipse

source§

impl Meshable for Rectangle

§

type Output = Mesh

source§

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

source§

impl Meshable for RegularPolygon

§

type Output = Mesh

source§

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

source§

impl Meshable for Triangle2d

§

type Output = Mesh

source§

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

source§

impl Meshable for Capsule3d

source§

impl Meshable for Cuboid

§

type Output = Mesh

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 Torus

§

type Output = TorusMeshBuilder

source§

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

Implementors§