pub struct Relation {
pub original_id: i32,
pub transform: Mat3x4,
pub back_side: bool,
pub has_normals: bool,
}Expand description
Transform relation between meshes.
Fields§
§original_id: i32§transform: Mat3x4§back_side: bool§has_normals: boolTrue when this meshID’s contribution to properties_ slots 0..2 holds
world-frame vertex normals (set by CalculateNormals at slot 0).
Carries through Transforms and Booleans; exported as run_flags bit 1.
Per C++ #1718.
Implementations§
Source§impl Relation
impl Relation
Sourcepub fn get_normal_transform(&self) -> Mat3
pub fn get_normal_transform(&self) -> Mat3
Normal transform: inverse-transpose of the 3×3 linear part. Multiply stored-property normals by this to get world-space normals. Matches C++ Relation::GetNormalTransform()
Sourcepub fn get_inverse_normal_transform(&self) -> Mat3
pub fn get_inverse_normal_transform(&self) -> Mat3
Inverse normal transform: transpose of the 3×3 linear part. Multiply world-space normals by this before storing in properties. Matches C++ Relation::GetInverseNormalTransform()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
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