Enum gltfgen::mesh::Mesh [−][src]
Supported output mesh types.
Variants
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]
fn from(mesh: PointCloud<f32>) -> Self
[src]
impl From<PointCloud<f64>> for Mesh
[src]
fn from(mesh: PointCloud<f64>) -> Self
[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]
fn vertex_positions(&self) -> &[Self::Element]
[src]
fn vertex_positions_mut(&mut self) -> &mut [Self::Element]
[src]
pub fn vertex_position_iter(&self) -> Iter<'_, Self::Element>
[src]
pub fn vertex_position_iter_mut(&mut self) -> IterMut<'_, Self::Element>
[src]
pub fn vertex_position<VI>(&self, vidx: VI) -> Self::Element where
VI: Into<VertexIndex>,
[src]
VI: Into<VertexIndex>,
Auto Trait Implementations
impl RefUnwindSafe for Mesh
[src]
impl Send for Mesh
[src]
impl Sync for Mesh
[src]
impl Unpin for Mesh
[src]
impl UnwindSafe for Mesh
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsSlice<T> for T
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<M, T> BoundingBox<T> for M where
T: Real,
M: VertexPositions<Element = [T; 3]>,
[src]
T: Real,
M: VertexPositions<Element = [T; 3]>,
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,
T: 'static + Debug,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> DropBytes for T where
T: 'static,
T: 'static,
pub unsafe fn drop_bytes(bytes: &mut [MaybeUninit<u8>])
impl<T> Elem for T where
T: Any + DropBytes,
T: Any + DropBytes,
impl<T> From<T> for T
[src]
impl<'a, S, I> Get<'a, I> for S where
I: GetIndex<'a, S>,
I: GetIndex<'a, S>,
type Output = <I as GetIndex<'a, S>>::Output
pub fn get(&self, idx: I) -> Option<<I as GetIndex<'a, S>>::Output>
pub fn at(&self, idx: I) -> Self::Output
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, I> Isolate<I> for S where
I: IsolateIndex<S>,
I: IsolateIndex<S>,
type Output = <I as IsolateIndex<S>>::Output
pub unsafe fn isolate_unchecked(self, idx: I) -> <S as Isolate<I>>::Output
pub fn try_isolate(self, idx: I) -> Option<<S as Isolate<I>>::Output>
pub fn isolate(self, idx: I) -> Self::Output
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, M> Rotate<T> for M where
T: BaseFloat,
M: VertexPositions<Element = [T; 3]>,
[src]
T: BaseFloat,
M: VertexPositions<Element = [T; 3]>,
pub fn rotate_by_matrix(&mut self, mtx: [[T; 3]; 3])
[src]
Rotate the mesh using the given column-major rotation matrix.
pub fn rotate(&mut self, axis: [T; 3], theta: T)
[src]
pub fn rotate_by_vector(&mut self, e: [T; 3]) where
T: Zero,
[src]
T: Zero,
impl<S, T> Rotated<T> for S where
T: BaseFloat,
S: Rotate<T>,
[src]
T: BaseFloat,
S: Rotate<T>,
pub fn rotated(self, u: [T; 3], theta: T) -> S
[src]
pub fn rotated_by_matrix(self, mtx: [[T; 3]; 3]) -> S
[src]
pub fn rotated_by_vector(self, e: [T; 3]) -> S
[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]
T: BaseFloat,
M: VertexPositions<Element = [T; 3]>,
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.
pub fn uniform_scale(&mut self, s: T)
[src]
impl<S, T> Scaled<T> for S where
T: Copy,
S: Scale<T>,
[src]
T: Copy,
S: Scale<T>,
impl<T, M> Translate<T> for M where
T: BaseFloat,
M: VertexPositions<Element = [T; 3]>,
[src]
T: BaseFloat,
M: VertexPositions<Element = [T; 3]>,
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]
S: Translate<T>,
pub fn translated(self, t: [T; 3]) -> S
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,