forge-svf-utils
Utilities for working with SVF, the proprietary file format used in Autodesk Forge.
Usage
In Node.js
Read an SVF from local file system:
const SvfReader = ; { const reader = await SvfReader; const svf = await reader; console;} ;
Read an SVF from Model Derivative service:
const ModelDerivativeClient ManifestHelper = ;const SvfReader = ; const FORGE_CLIENT_ID FORGE_CLIENT_SECRET = processenv; { const auth = client_id: FORGE_CLIENT_ID client_secret: FORGE_CLIENT_SECRET ; const modelDerivativeClient = auth; const helper = await modelDerivativeClient; const derivatives = helper; for const derivative of derivatives const reader = await SvfReader; const svf = await reader; console; } ;