Interface I3mfSerializer<T>
interface I3mfSerializer<T> {
serializeAsync(
sink: (err: any, chunk: Uint8Array, final: boolean) => void,
...meshes: T[],
): Promise<void>;
}
serializeAsync(
sink: (err: any, chunk: Uint8Array, final: boolean) => void,
...meshes: T[],
): Promise<void>;
}
Type Parameters
- T
Minimal contract for a 3MF serializer that can stream its output through a sink callback.
The sink callback receives:
Important: