pub struct ExtractedTransforms<'a> {
pub transform: DAffine3,
pub color: Option<[f64; 4]>,
pub material: Option<MaterialData>,
pub inner: &'a DynamicObject,
}Expand description
Result of peeling off top-level transforms from a DynamicObject tree.
Transforms above the first boolean/primitive/extrude/group/mirror node are
accumulated into a DAffine3 matrix. The outermost Color node (if any)
is extracted separately for use as a material base_color.
Fields§
§transform: DAffine3Accumulated spatial transform (translate × rotate × scale).
color: Option<[f64; 4]>Extracted RGBA color (0.0–1.0), outermost Color node wins.
material: Option<MaterialData>Extracted surface finish, outermost Material node wins.
inner: &'a DynamicObjectReference to the remaining subtree below the peeled transforms.
Auto Trait Implementations§
impl<'a> Freeze for ExtractedTransforms<'a>
impl<'a> RefUnwindSafe for ExtractedTransforms<'a>
impl<'a> Send for ExtractedTransforms<'a>
impl<'a> Sync for ExtractedTransforms<'a>
impl<'a> Unpin for ExtractedTransforms<'a>
impl<'a> UnsafeUnpin for ExtractedTransforms<'a>
impl<'a> UnwindSafe for ExtractedTransforms<'a>
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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more