[][src]Struct truck_polymesh::PolygonMesh

pub struct PolygonMesh {
    pub positions: Vec<Point3>,
    pub uv_coords: Vec<Vector2>,
    pub normals: Vec<Vector3>,
    pub tri_faces: Vec<[[usize; 3]; 3]>,
    pub quad_faces: Vec<[[usize; 3]; 4]>,
    pub other_faces: Vec<Vec<[usize; 3]>>,
}

mesh data

Fields

positions: Vec<Point3>

List of positions

uv_coords: Vec<Vector2>

List of texture matrix

normals: Vec<Vector3>

List of normal vectors

tri_faces: Vec<[[usize; 3]; 3]>

triangle faces

quad_faces: Vec<[[usize; 3]; 4]>

quadrangle faces

other_faces: Vec<Vec<[usize; 3]>>

n-gon faces where n is more than 4.

Implementations

impl PolygonMesh[src]

pub fn bounding_box(&self) -> BoundingBox<Point3>[src]

Creates the bounding box of the polygon mesh.

pub fn merge(&mut self, mesh: PolygonMesh)[src]

merge mesh to self.

Trait Implementations

impl Clone for PolygonMesh[src]

impl Debug for PolygonMesh[src]

impl Default for PolygonMesh[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.