Class ThreeMf
Methods
StaticSerialize To Memory Async
-
SerializeToMemoryAsync<A>(
s: I3mfSerializer<A>,
...meshes: A[],
): Promise<Uint8Array<ArrayBufferLike> | undefined>Serialize to a single in-memory buffer.
This is a helper that buffers all chunks produced by serializeAsync, then concatenates them. Use serializeAsync directly if you want true streaming to a file/response.
Type Parameters
- A
Parameters
- s: I3mfSerializer<A>
- ...meshes: A[]
Returns Promise<Uint8Array<ArrayBufferLike> | undefined>
Convenience helpers around serializers.