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: MorphMethodWhich blending technique to use.
sources: Vec<Source>Data for morph weights and for morph targets.
targets: TargetsInput meshes (morph targets) to be blended.
extra: Vec<Extra>Provides arbitrary additional information about this element.
Implementations§
Source§impl 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
sourceshould reference aGeometry. - There should be at least two
sources. - One of the
targetsmust haveSemantic::MorphTarget. - One of the
targetsmust haveSemantic::MorphWeight.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Morph
impl RefUnwindSafe for Morph
impl Send for Morph
impl Sync for Morph
impl Unpin for Morph
impl UnwindSafe for Morph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more