UNPKG

forge-svf-utils

Version:

Utilities for working with Autodesk Forge SVF file format.

17 lines (13 loc) 458 B
/* * Example: converting an SVF from local file system to glTF * Usage: * node write-gltf.js <path to svf file> <path to output folder> */ const { SvfReader, GltfWriter } = require('../lib'); async function run (inputFile, outputDir) { const reader = await SvfReader.FromFileSystem(inputFile); const svf = await reader.read(); const writer = new GltfWriter(); writer.write(svf, outputDir); } run(process.argv[2], process.argv[3]);