pub struct FbxGeometryLayers<'a> {
pub control_points: &'a [[f32; 3]],
pub polygon_vertex_indices: &'a [i32],
pub uv_sets: &'a [FbxUvSet],
pub normal_sets: &'a [FbxNormalSet],
pub color_sets: &'a [FbxColorSet],
pub tangent_sets: &'a [FbxTangentSet],
pub binormal_sets: &'a [FbxBinormalSet],
pub smoothing_layers: &'a [FbxSmoothingLayer],
pub crease_layers: &'a [FbxCreaseLayer],
}fbx-reader or fbx-writer only.Expand description
Borrowed FBX geometry, as expand_to_render_mesh and the writer consume
it.
The borrowed counterpart of FbxMeshLayers plus the positions and
indices those layers index into. Flat slices rather than a borrow of the
owning struct so the reader can assemble one from decode locals before an
FbxMeshInstance exists, and so it stays Copy.
A struct rather than a positional argument list because the list grows with every layer family the crate learns to read, and nine adjacent slices of nearly interchangeable types are easy to transpose silently.
Fields§
§control_points: &'a [[f32; 3]]FBX control-point positions.
polygon_vertex_indices: &'a [i32]Polygon-corner indices; a negative value terminates a polygon.
uv_sets: &'a [FbxUvSet]UV layer elements.
normal_sets: &'a [FbxNormalSet]Normal layer elements.
color_sets: &'a [FbxColorSet]Colour layer elements.
tangent_sets: &'a [FbxTangentSet]Tangent layer elements.
binormal_sets: &'a [FbxBinormalSet]Binormal layer elements.
smoothing_layers: &'a [FbxSmoothingLayer]Smoothing layers.
Scalars on a non-corner domain, so unlike the families above these do
not reach FbxRenderMesh; they are carried for the writer.
crease_layers: &'a [FbxCreaseLayer]Edge and vertex crease layers, carried for the writer as above.
Implementations§
Source§impl<'a> FbxGeometryLayers<'a>
impl<'a> FbxGeometryLayers<'a>
Sourcepub fn from_instance(instance: &'a FbxMeshInstance) -> Self
pub fn from_instance(instance: &'a FbxMeshInstance) -> Self
Borrows every layer family from a decoded mesh instance.
Trait Implementations§
Source§impl<'a> Clone for FbxGeometryLayers<'a>
impl<'a> Clone for FbxGeometryLayers<'a>
Source§fn clone(&self) -> FbxGeometryLayers<'a>
fn clone(&self) -> FbxGeometryLayers<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more