Enum gltfgen::mesh::Mesh[][src]

pub enum Mesh {
    TriMesh(TriMesh<f32>),
    PointCloud(PointCloud<f32>),
}

Supported output mesh types.

Variants

TriMesh(TriMesh<f32>)
PointCloud(PointCloud<f32>)

Implementations

impl Mesh[src]

pub fn reverse(&mut self)[src]

pub fn eq_topo(&self, other: &Mesh) -> bool[src]

Returns true if the other mesh has equivalent topology to self.

Trait Implementations

impl Debug for Mesh[src]

impl From<PointCloud<f32>> for Mesh[src]

impl From<PointCloud<f64>> for Mesh[src]

impl From<PolyMesh<f32>> for Mesh[src]

impl From<PolyMesh<f64>> for Mesh[src]

impl From<TetMesh<f32>> for Mesh[src]

impl From<TetMesh<f64>> for Mesh[src]

impl VertexPositions for Mesh[src]

type Element = [f32; 3]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsSlice<T> for T

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

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

impl<M, T> BoundingBox<T> for M where
    T: Real,
    M: VertexPositions<Element = [T; 3]>, 
[src]

pub fn bounding_box(&self) -> BBox<T>[src]

Compute the bounding box of this object.

impl<T> Bytes for T[src]

impl<T> DebugBytes for T where
    T: 'static + Debug

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DropBytes for T where
    T: 'static, 

impl<T> Elem for T where
    T: Any + DropBytes, 

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

impl<'a, S, I> Get<'a, I> for S where
    I: GetIndex<'a, S>, 

type Output = <I as GetIndex<'a, S>>::Output

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

impl<S, I> Isolate<I> for S where
    I: IsolateIndex<S>, 

type Output = <I as IsolateIndex<S>>::Output

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, M> Rotate<T> for M where
    T: BaseFloat,
    M: VertexPositions<Element = [T; 3]>, 
[src]

pub fn rotate_by_matrix(&mut self, mtx: [[T; 3]; 3])[src]

Rotate the mesh using the given column-major rotation matrix.

impl<S, T> Rotated<T> for S where
    T: BaseFloat,
    S: Rotate<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, M> Scale<T> for M where
    T: BaseFloat,
    M: VertexPositions<Element = [T; 3]>, 
[src]

pub fn scale(&mut self, [T; 3])[src]

Scale a mesh in 3D by a given vector of scale factors. s = [1.0; 3] corresponds to a noop.

impl<S, T> Scaled<T> for S where
    T: Copy,
    S: Scale<T>, 
[src]

impl<T, M> Translate<T> for M where
    T: BaseFloat,
    M: VertexPositions<Element = [T; 3]>, 
[src]

pub fn translate(&mut self, [T; 3])[src]

Translate the mesh by the given translation vector (displacement) t.

impl<S, T> Translated<T> for S where
    S: Translate<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.