[][src]Struct icosahedron::Polyhedron

pub struct Polyhedron {
    pub positions: Vec<ArraySerializedVector>,
    pub cells: Vec<Triangle>,
    pub normals: Vec<ArraySerializedVector>,
    pub colors: Vec<ArraySerializedVector>,
    // some fields omitted
}

Fields

positions: Vec<ArraySerializedVector>cells: Vec<Triangle>normals: Vec<ArraySerializedVector>colors: Vec<ArraySerializedVector>

Methods

impl Polyhedron[src]

pub fn new() -> Polyhedron[src]

pub fn new_isocahedron(radius: f32, detail: u32) -> Polyhedron[src]

pub fn new_truncated_isocahedron(radius: f32, detail: u32) -> Polyhedron[src]

pub fn unique_vertices(&mut self, other: Polyhedron)[src]

pub fn compute_triangle_normals(&mut self)[src]

pub fn compute_face_normals(&mut self)[src]

pub fn assign_random_face_colors(&mut self)[src]

pub fn export_cells(&self) -> Vec<u32>[src]

Trait Implementations

impl Debug for Polyhedron[src]

impl Serialize for Polyhedron[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]