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§
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
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
.