pub struct FbxMeshLayers {
pub uv_sets: Vec<FbxUvSet>,
pub normal_sets: Vec<FbxNormalSet>,
pub color_sets: Vec<FbxColorSet>,
pub tangent_sets: Vec<FbxTangentSet>,
pub binormal_sets: Vec<FbxBinormalSet>,
pub smoothing_layers: Vec<FbxSmoothingLayer>,
pub crease_layers: Vec<FbxCreaseLayer>,
}fbx-reader or fbx-writer only.Expand description
The layer elements preserved from one FBX geometry node.
Grouped rather than spread across FbxMeshInstance because they are one
kind of thing that grows together: every format capability added so far
arrived as another layer family, and each one that lands as a bare field
has to be threaded through every construction site and every signature
that carries geometry. crate::FbxGeometryLayers is the borrowed view of
this plus the positions and indices it indexes into.
Fields§
§uv_sets: Vec<FbxUvSet>Original UV layer elements, including mapping/reference information.
normal_sets: Vec<FbxNormalSet>Original normal layer elements, including mapping/reference information.
color_sets: Vec<FbxColorSet>Original colour layer elements, including mapping/reference information.
tangent_sets: Vec<FbxTangentSet>Original tangent layer elements, with handedness merged into w.
Draco has no tangent attribute, so these never reach
FbxMeshInstance::mesh; they travel on the instance and through
crate::FbxRenderMesh instead, the same way extra UV sets do.
binormal_sets: Vec<FbxBinormalSet>Original binormal layer elements.
Derivable from the normal and tangent, and absent from glTF, so these exist only so an FBX document survives a rewrite unchanged.
smoothing_layers: Vec<FbxSmoothingLayer>Original LayerElementSmoothing layers.
Hard and soft edges. glTF has no equivalent, so these survive an FBX-to-FBX rewrite but do not travel further. A layer whose length does not match the domain its mapping names is dropped with a warning rather than kept as misaligned data.
crease_layers: Vec<FbxCreaseLayer>Original LayerElementEdgeCrease and LayerElementVertexCrease layers.
Trait Implementations§
Source§impl Clone for FbxMeshLayers
impl Clone for FbxMeshLayers
Source§fn clone(&self) -> FbxMeshLayers
fn clone(&self) -> FbxMeshLayers
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more