Struct tessellation::Mesh [−][src]
Mesh that will be returned from tessellate.
Fields
vertices: Vec<[S; 3]>
The list of vertices.
faces: Vec<[usize; 3]>
The list of triangles as indexes into vertices.
Methods
impl<S: 'static + Real + Debug> Mesh<S>
[src]
impl<S: 'static + Real + Debug> Mesh<S>
pub fn normal32(&self, face: usize) -> [f32; 3] where
f64: From<S>,
[src]
pub fn normal32(&self, face: usize) -> [f32; 3] where
f64: From<S>,
Return the normal of the face at index face as triple of f32.
pub fn vertex32(&self, i: usize) -> [f32; 3] where
f64: From<S>,
[src]
pub fn vertex32(&self, i: usize) -> [f32; 3] where
f64: From<S>,
Return the vertics of the face at index face as triple of f32.
Trait Implementations
impl<S: Clone> Clone for Mesh<S>
[src]
impl<S: Clone> Clone for Mesh<S>
fn clone(&self) -> Mesh<S>
[src]
fn clone(&self) -> Mesh<S>
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Mesh<S>
[src]
impl<S: Debug> Debug for Mesh<S>
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<S: PartialEq> PartialEq for Mesh<S>
[src]
impl<S: PartialEq> PartialEq for Mesh<S>