[−][src]Trait genmesh::EmitLines
Convert a Polygon into it's fragments
Associated Types
type Vertex
The Vertex defines the corners of a Polygon
Required methods
fn emit_lines<E>(self, emit: E) where
E: FnMut(Line<Self::Vertex>),
E: FnMut(Line<Self::Vertex>),
convert a polygon into lines, each line is emitted via
calling of the callback of emit
This allow for
a variable amount of lines to be returned
Implementors
impl<T: Clone> EmitLines for Polygon<T>
[src]
type Vertex = T
fn emit_lines<E>(self, emit: E) where
E: FnMut(Line<T>),
[src]
E: FnMut(Line<T>),
impl<T: Clone> EmitLines for Quad<T>
[src]
type Vertex = T
fn emit_lines<E>(self, emit: E) where
E: FnMut(Line<T>),
[src]
E: FnMut(Line<T>),
impl<T: Clone> EmitLines for Triangle<T>
[src]
type Vertex = T
fn emit_lines<E>(self, emit: E) where
E: FnMut(Line<T>),
[src]
E: FnMut(Line<T>),