Struct three::DynamicMesh
source · pub struct DynamicMesh { /* private fields */ }
Expand description
A dynamic version of a mesh allows changing the geometry on CPU side in order to animate the mesh.
Implementations
sourceimpl DynamicMesh
impl DynamicMesh
sourcepub fn vertex_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Returns the number of vertices of the geometry base shape.
sourcepub fn set_material<M: Into<Material>>(&mut self, material: M)
pub fn set_material<M: Into<Material>>(&mut self, material: M)
Set mesh material.
Trait Implementations
sourceimpl AsRef<Base> for DynamicMesh
impl AsRef<Base> for DynamicMesh
sourceimpl Clone for DynamicMesh
impl Clone for DynamicMesh
sourcefn clone(&self) -> DynamicMesh
fn clone(&self) -> DynamicMesh
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DynamicMesh
impl Debug for DynamicMesh
sourceimpl Hash for DynamicMesh
impl Hash for DynamicMesh
sourceimpl Object for DynamicMesh
impl Object for DynamicMesh
sourcefn resolve_data(&self, _: &SyncGuard<'_>) -> Self::Data
fn resolve_data(&self, _: &SyncGuard<'_>) -> Self::Data
Retrieves the internal data for the object. Read more
sourcefn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
Invisible objects are not rendered by cameras.
sourcefn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32)where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
fn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32)where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
Set both position, orientation and scale.
sourcefn set_orientation<Q>(&self, rot: Q)where
Self: Sized,
Q: Into<Quaternion<f32>>,
fn set_orientation<Q>(&self, rot: Q)where
Self: Sized,
Q: Into<Quaternion<f32>>,
Set orientation.
sourcefn set_weights(&self, weights: Vec<f32>)
fn set_weights(&self, weights: Vec<f32>)
Set weights.
sourceimpl PartialEq<DynamicMesh> for DynamicMesh
impl PartialEq<DynamicMesh> for DynamicMesh
sourcefn eq(&self, other: &DynamicMesh) -> bool
fn eq(&self, other: &DynamicMesh) -> bool
impl Eq for DynamicMesh
Auto Trait Implementations
impl !RefUnwindSafe for DynamicMesh
impl !Send for DynamicMesh
impl !Sync for DynamicMesh
impl Unpin for DynamicMesh
impl !UnwindSafe for DynamicMesh
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.