F3dWriter class final

Serializes any ModelDocument into the .f3d container.

Takes a ModelDocument rather than a glTF or an OBJ, which is the whole reason that abstraction exists: one converter serves every decoder the engine has, and a third format needs a decoder rather than a second writer.

Runs offline, in dart run flutter3d_build:convert (flutter3d_build). Nothing here is on a frame path, so it favours being obviously correct over being quick.

Constructors

F3dWriter(ModelDocument document)

Properties

document → ModelDocument
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
warnings → List<String>
What write could not carry — fmt-12's own row.
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write() → Uint8List
Encodes the document. The result is a complete file.

Operators

operator ==(Object other) → bool
The equality operator.
inherited