Struct nannou::mesh::MeshPoints [−][src]
pub struct MeshPoints<P> { /* fields omitted */ }
The base mesh type with only a single vertex channel.
Extra channels can be added to the mesh via the WithIndices
, WithColors
, WithTexCoords
and WithNormals
adaptor types.
Trait Implementations
impl<P: Copy> Copy for MeshPoints<P>
[src]
impl<P: Copy> Copy for MeshPoints<P>
impl<P: Clone> Clone for MeshPoints<P>
[src]
impl<P: Clone> Clone for MeshPoints<P>
fn clone(&self) -> MeshPoints<P>
[src]
fn clone(&self) -> MeshPoints<P>
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<P: Debug> Debug for MeshPoints<P>
[src]
impl<P: Debug> Debug for MeshPoints<P>
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<P: PartialEq> PartialEq for MeshPoints<P>
[src]
impl<P: PartialEq> PartialEq for MeshPoints<P>
fn eq(&self, other: &MeshPoints<P>) -> bool
[src]
fn eq(&self, other: &MeshPoints<P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MeshPoints<P>) -> bool
[src]
fn ne(&self, other: &MeshPoints<P>) -> bool
This method tests for !=
.
impl<P> GetVertex for MeshPoints<P> where
P: Channel,
P::Element: Vertex,
[src]
impl<P> GetVertex for MeshPoints<P> where
P: Channel,
P::Element: Vertex,
type Vertex = P::Element
The vertex type representing all channels of data within the mesh at a single index.
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
[src]
fn get_vertex(&self, index: usize) -> Option<Self::Vertex>
Create a vertex containing all channel properties for the given index.
impl<P> Points for MeshPoints<P> where
P: Channel,
P::Element: Vertex,
[src]
impl<P> Points for MeshPoints<P> where
P: Channel,
P::Element: Vertex,
type Scalar = <P::Element as Vertex>::Scalar
The scalar value used for the vertex coordinates.
type Point = P::Element
The vertex type used to represent the location of a vertex.
type Points = P
The channel type containing points.
fn points(&self) -> &Self::Points
[src]
fn points(&self) -> &Self::Points
Borrow the vertex channel from the mesh.
impl<V> PushVertex<V> for MeshPoints<Vec<V>>
[src]
impl<V> PushVertex<V> for MeshPoints<Vec<V>>
fn push_vertex(&mut self, v: V)
[src]
fn push_vertex(&mut self, v: V)
Push the given vertex onto the mesh. Read more
impl<V> ClearVertices for MeshPoints<Vec<V>>
[src]
impl<V> ClearVertices for MeshPoints<Vec<V>>
fn clear_vertices(&mut self)
[src]
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
impl<P> Default for MeshPoints<P> where
P: Default,
[src]
impl<P> Default for MeshPoints<P> where
P: Default,
Auto Trait Implementations
impl<P> Send for MeshPoints<P> where
P: Send,
impl<P> Send for MeshPoints<P> where
P: Send,
impl<P> Sync for MeshPoints<P> where
P: Sync,
impl<P> Sync for MeshPoints<P> where
P: Sync,