Trait EmitTriangles

Source
pub trait EmitTriangles {
    type Vertex;

    // Required method
    fn emit_triangles<F>(&self, _: F)
       where F: FnMut(Triangle<Self::Vertex>);
}
Expand description

provides a way to convert a polygon down to triangles

Required Associated Types§

Source

type Vertex

The content of each point in the face

Required Methods§

Source

fn emit_triangles<F>(&self, _: F)
where F: FnMut(Triangle<Self::Vertex>),

convert a polygon to one or more triangles, each triangle is returned by calling emit

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§