pub struct FbxTangentSet {
pub layer: FbxLayerSet<4>,
pub has_handedness: bool,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
A preserved FBX LayerElementTangent or LayerElementBinormal.
FBX splits these across two sibling arrays: Tangents holds three
components and the handedness sign lives in a separate TangentsW, which
only FBX 7500 and later write. They are merged into one four-component
value here because that is the form glTF’s TANGENT needs, and split again
on write.
Fields§
§layer: FbxLayerSet<4>Tangent vectors, with the handedness sign in w.
has_handedness: boolWhether the source carried an explicit handedness array.
When it did not, w was defaulted to +1.0. The writer emits the
sibling array only when this is set, so a document that had no
handedness does not gain one by being rewritten.
Trait Implementations§
Source§impl Clone for FbxTangentSet
impl Clone for FbxTangentSet
Source§fn clone(&self) -> FbxTangentSet
fn clone(&self) -> FbxTangentSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FbxTangentSet
impl Debug for FbxTangentSet
Source§impl Default for FbxTangentSet
impl Default for FbxTangentSet
Source§fn default() -> FbxTangentSet
fn default() -> FbxTangentSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for FbxTangentSet
impl PartialEq for FbxTangentSet
impl StructuralPartialEq for FbxTangentSet
Auto Trait Implementations§
impl Freeze for FbxTangentSet
impl RefUnwindSafe for FbxTangentSet
impl Send for FbxTangentSet
impl Sync for FbxTangentSet
impl Unpin for FbxTangentSet
impl UnsafeUnpin for FbxTangentSet
impl UnwindSafe for FbxTangentSet
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