Struct dae_parser::Morph
source · [−]pub struct Morph {
pub source: UrlRef<Geometry>,
pub method: MorphMethod,
pub sources: Vec<Source>,
pub targets: Targets,
pub extra: Vec<Extra>,
}
Expand description
Describes the data required to blend between sets of static meshes.
Fields
source: UrlRef<Geometry>
Refers to the Geometry
that describes the base mesh.
method: MorphMethod
Which blending technique to use.
sources: Vec<Source>
Data for morph weights and for morph targets.
targets: Targets
Input meshes (morph targets) to be blended.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations
sourceimpl Morph
impl Morph
sourcepub fn new(source: Url, sources: Vec<Source>, targets: Vec<Input>) -> Self
pub fn new(source: Url, sources: Vec<Source>, targets: Vec<Input>) -> Self
Construct a new Morph
of from a list of sources and targets.
- The
source
should reference aGeometry
. - There should be at least two
sources
. - One of the
targets
must haveSemantic::MorphTarget
. - One of the
targets
must haveSemantic::MorphWeight
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Morph
impl Send for Morph
impl Sync for Morph
impl Unpin for Morph
impl UnwindSafe for Morph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more