pub struct FbxLayerSet<const N: usize> {
pub name: Option<String>,
pub mapping: Option<String>,
pub reference: Option<String>,
pub values: Vec<[f32; N]>,
pub indices: Vec<i32>,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
A preserved FBX layer element carrying N float components per value.
Every float-valued FBX layer element has this shape – a name, a mapping and reference mode, a value array, and an optional index array – and differs only in its component count and the node names it is read from. The per-family aliases below name the ones this crate understands.
Fields§
§name: Option<String>FBX layer set name.
mapping: Option<String>FBX mapping information type, e.g. ByPolygonVertex or ByVertice.
reference: Option<String>FBX reference information type, e.g. Direct or IndexToDirect.
values: Vec<[f32; N]>Direct values.
indices: Vec<i32>Optional direct-value indices, used when reference is IndexToDirect.
Trait Implementations§
Source§impl<const N: usize> Clone for FbxLayerSet<N>
impl<const N: usize> Clone for FbxLayerSet<N>
Source§fn clone(&self) -> FbxLayerSet<N>
fn clone(&self) -> FbxLayerSet<N>
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<const N: usize> Debug for FbxLayerSet<N>
impl<const N: usize> Debug for FbxLayerSet<N>
Source§impl<const N: usize> Default for FbxLayerSet<N>
impl<const N: usize> Default for FbxLayerSet<N>
Source§fn default() -> FbxLayerSet<N>
fn default() -> FbxLayerSet<N>
Returns the “default value” for a type. Read more
Source§impl<const N: usize> PartialEq for FbxLayerSet<N>
impl<const N: usize> PartialEq for FbxLayerSet<N>
impl<const N: usize> StructuralPartialEq for FbxLayerSet<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FbxLayerSet<N>
impl<const N: usize> RefUnwindSafe for FbxLayerSet<N>
impl<const N: usize> Send for FbxLayerSet<N>
impl<const N: usize> Sync for FbxLayerSet<N>
impl<const N: usize> Unpin for FbxLayerSet<N>
impl<const N: usize> UnsafeUnpin for FbxLayerSet<N>
impl<const N: usize> UnwindSafe for FbxLayerSet<N>
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