Enum genmesh::Polygon [−][src]
This is All-the-types container. This exists since some generators
produce both Triangles
and Quads
.
Variants
PolyTri(Triangle<T>)
A wraped triangle
PolyQuad(Quad<T>)
A wraped quad
Trait Implementations
impl<T: Debug> Debug for Polygon<T>
[src]
impl<T: Debug> Debug for Polygon<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for Polygon<T>
[src]
impl<T: Clone> Clone for Polygon<T>
fn clone(&self) -> Polygon<T>
[src]
fn clone(&self) -> Polygon<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for Polygon<T>
[src]
impl<T: PartialEq> PartialEq for Polygon<T>
fn eq(&self, other: &Polygon<T>) -> bool
[src]
fn eq(&self, other: &Polygon<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Polygon<T>) -> bool
[src]
fn ne(&self, other: &Polygon<T>) -> bool
This method tests for !=
.
impl<T: Copy> Copy for Polygon<T>
[src]
impl<T: Copy> Copy for Polygon<T>
impl<T: Clone, U> MapVertex<T, U> for Polygon<T>
[src]
impl<T: Clone, U> MapVertex<T, U> for Polygon<T>
type Output = Polygon<U>
Output
should be a a container of the same shape of the type It's internal values should reflect any transformation the map did. Read more
fn map_vertex<F>(self, map: F) -> Polygon<U> where
F: FnMut(T) -> U,
[src]
fn map_vertex<F>(self, map: F) -> Polygon<U> where
F: FnMut(T) -> U,
map a function to each vertex in polygon creating a new polygon
impl<T: Clone> EmitLines for Polygon<T>
[src]
impl<T: Clone> EmitLines for Polygon<T>
type Vertex = T
The Vertex defines the corners of a Polygon
fn emit_lines<E>(self, emit: E) where
E: FnMut(Line<T>),
[src]
fn emit_lines<E>(self, emit: E) where
E: FnMut(Line<T>),
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 Read more
impl<T: Clone> EmitTriangles for Polygon<T>
[src]
impl<T: Clone> EmitTriangles for Polygon<T>
type Vertex = T
The content of each point in the face
fn emit_triangles<F>(&self, emit: F) where
F: FnMut(Triangle<T>),
[src]
fn emit_triangles<F>(&self, emit: F) where
F: FnMut(Triangle<T>),
convert a polygon to one or more triangles, each triangle is returned by calling emit
Read more
impl IndexedPolygon<Polygon<usize>> for Circle
[src]
impl IndexedPolygon<Polygon<usize>> for Circle
fn indexed_polygon(&self, idx: usize) -> Polygon<usize>
[src]
fn indexed_polygon(&self, idx: usize) -> Polygon<usize>
return a polygon with indices to the shared vertex
fn indexed_polygon_count(&self) -> usize
[src]
fn indexed_polygon_count(&self) -> usize
return the number of polygons that are needed to represent this mesh
ⓘImportant traits for IndexedPolygonIterator<'a, T, V>fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V>
[src]
fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V>
create a iterator that will return a polygon for each face in the source mesh
impl IndexedPolygon<Polygon<usize>> for Cylinder
[src]
impl IndexedPolygon<Polygon<usize>> for Cylinder
fn indexed_polygon(&self, idx: usize) -> Polygon<usize>
[src]
fn indexed_polygon(&self, idx: usize) -> Polygon<usize>
return a polygon with indices to the shared vertex
fn indexed_polygon_count(&self) -> usize
[src]
fn indexed_polygon_count(&self) -> usize
return the number of polygons that are needed to represent this mesh
ⓘImportant traits for IndexedPolygonIterator<'a, T, V>fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V>
[src]
fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V>
create a iterator that will return a polygon for each face in the source mesh
impl IndexedPolygon<Polygon<usize>> for SphereUv
[src]
impl IndexedPolygon<Polygon<usize>> for SphereUv
fn indexed_polygon(&self, idx: usize) -> Polygon<usize>
[src]
fn indexed_polygon(&self, idx: usize) -> Polygon<usize>
return a polygon with indices to the shared vertex
fn indexed_polygon_count(&self) -> usize
[src]
fn indexed_polygon_count(&self) -> usize
return the number of polygons that are needed to represent this mesh
ⓘImportant traits for IndexedPolygonIterator<'a, T, V>fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V>
[src]
fn indexed_polygon_iter<'a>(&'a self) -> IndexedPolygonIterator<'a, Self, V>
create a iterator that will return a polygon for each face in the source mesh