forge-svf-utils
Version:
Utilities for working with Autodesk Forge SVF file format.
22 lines • 1.13 kB
TypeScript
/// <reference types="node" />
import * as fse from 'fs-extra';
import * as gltf from './schema';
import { IMaterial, IFragment, IMesh, ILines, IPoints, IMaterialMap } from '../svf/schema';
import { ISvfContent } from '../svf/reader';
export declare class Writer {
protected manifest: gltf.GlTf;
protected downloads: Promise<string>[];
protected bufferStream: fse.WriteStream | null;
protected bufferSize: number;
protected baseDir: string;
constructor();
write(svf: ISvfContent, baseDir: string): void;
protected writeScene(svf: ISvfContent): gltf.Scene;
protected writeFragment(fragment: IFragment, svf: ISvfContent): gltf.Node;
protected writeMeshGeometry(fragmesh: IMesh, svf: ISvfContent): gltf.Mesh;
protected writeLineGeometry(fragmesh: ILines, svf: ISvfContent): gltf.Mesh;
protected writePointGeometry(fragmesh: IPoints, svf: ISvfContent): gltf.Mesh;
protected writeMaterial(mat: IMaterial | null, svf: ISvfContent): gltf.MaterialPbrMetallicRoughness;
protected writeTexture(map: IMaterialMap, svf: ISvfContent): gltf.Texture;
}
//# sourceMappingURL=writer.d.ts.map