pub struct FbxBinaryWriter { /* private fields */ }Expand description
Writes FBX data in the binary format (version 7400).
Implementations§
Source§impl FbxBinaryWriter
impl FbxBinaryWriter
Sourcepub fn write_header(&mut self) -> Result<()>
pub fn write_header(&mut self) -> Result<()>
Writes the 27-byte FBX binary header (magic + version).
Sourcepub fn write_node(&mut self, node: &FbxNode) -> Result<()>
pub fn write_node(&mut self, node: &FbxNode) -> Result<()>
Serialises a single top-level FbxNode (and all its descendants)
into the output buffer. The node’s end-offset is computed
automatically.
Sourcepub fn write_mesh(
&mut self,
name: &str,
positions: &[[f64; 3]],
normals: &[[f64; 3]],
uvs: &[[f64; 2]],
triangles: &[[usize; 3]],
) -> Result<()>
pub fn write_mesh( &mut self, name: &str, positions: &[[f64; 3]], normals: &[[f64; 3]], uvs: &[[f64; 2]], triangles: &[[usize; 3]], ) -> Result<()>
Convenience: writes a complete Geometry + Model node pair for a triangle mesh.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FbxBinaryWriter
impl RefUnwindSafe for FbxBinaryWriter
impl Send for FbxBinaryWriter
impl Sync for FbxBinaryWriter
impl Unpin for FbxBinaryWriter
impl UnsafeUnpin for FbxBinaryWriter
impl UnwindSafe for FbxBinaryWriter
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more