#[non_exhaustive]pub enum ScaleOperation {
WholeDocumentLinearUnits {
factor: f64,
},
RestBindUniformScale {
source_skin_index: usize,
source_root_node_index: usize,
expected_factor: f64,
},
}Expand description
The two distinct scale operations DESIGN.md Appendix D §D.1 defines.
Neither variant infers its factor or applicability from mesh bounds,
character height, joint lengths, inverse-bind magnitude, filename, or an
asset category. The caller names the operation and declares or accepts
the exact factor plan_scale validates.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WholeDocumentLinearUnits
Whole-document linear-unit conversion: every represented length is
converted by the declared finite positive factor.
RestBindUniformScale
Rest/bind hierarchy reparameterization: removes one compensating inherited scale from a restricted skinned hierarchy.
Both selectors are raw, format-neutral source identity — a source
node/skin array index, per DESIGN.md Appendix D §D.7 — not a
normalized BoneId or mesh-instance ordinal. plan_scale
resolves them through crate::model::SceneAssets::source_skeleton.
Trait Implementations§
Source§impl Clone for ScaleOperation
impl Clone for ScaleOperation
Source§fn clone(&self) -> ScaleOperation
fn clone(&self) -> ScaleOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more