Retrieves, parses, and iterates over all SVF fragments.
Async iterator over parsed fragments.
Retrieves, parses, and iterates over all SVF geometry metadata.
Async iterator over parsed geometry metadata.
Retrieves, parses, and iterates over all SVF materials.
Async iterator over parsed materials (or null values for unsupported material types).
Retrieves, parses, and iterates over all meshes, lines, or points in a specific SVF meshpack.
Async iterator over parsed meshes, lines, or points (or null values for unsupported mesh types).
Retrieves raw binary data of a specific SVF asset.
Asset URI.
Asset content.
Retrieves parsed SVF manifest.
SVF manifest.
Gets the number of available mesh packs.
Retrieves parsed SVF metadata.
SVF metadata.
Retrieves and parses the property database.
Property database reader.
Finds URIs of all image assets referenced in the SVF. These can then be retrieved using getAsset.
Image asset URIs.
Loads an image.
Image URI.
Reads the entire scene and all its referenced assets into memory. In cases where a more granular control is needed (for example, when trying to control memory consumption), consider parsing the different SVF elements individually, using methods like readFragments, enumerateGeometries, etc.
Intermediate, in-memory representation of the loaded scene.
Retrieves, parses, and collects all SVF fragments.
List of parsed fragments.
Retrieves, parses, and collects all SVF geometry metadata.
List of parsed geometry metadata.
Retrieves, parses, and collects all SVF materials.
List of parsed materials (or null values for unsupported material types).
Retrieves, parses, and collects all meshes, lines, or points in a specific SVF meshpack.
Index of mesh pack file.
List of parsed meshes, lines, or points (or null values for unsupported mesh types).
Instantiates new reader for an SVF in APS Model Derivative service.
APS model URN.
APS viewable GUID. The viewable(s) can be found in the manifest with type: 'resource', role: 'graphics', and mime: 'application/autodesk-svf'.
Authentication provider for accessing the Model Derivative service.
Optional host URL to be used by all APS calls.
Optional region to be used by all APS calls.
Reader for the provided SVF.
Instantiates new reader for an SVF on local file system.
Path to the *.svf file.
Reader for the provided SVF.
Generated using TypeDoc
Utility class for parsing & reading SVF content from Model Derivative service or from local file system.
The class can only be instantiated using one of the two async static methods: {@link Reader.FromFileSystem}, or {@link Reader.FromDerivativeService}. After that, you can parse the entire SVF into memory using {@link parse}, or parse individual SVF objects using methods like readFragments or enumerateGeometries.
const authProvider = new TwoLeggedAuthenticationProvider(APS_CLIENT_ID, APS_CLIENT_SECRET); const reader = await Reader.FromDerivativeService(MODEL_URN, VIEWABLE_GUID, authProvider); const scene = await reader.read(); // Read entire scene into an intermediate, in-memory representation console.log(scene);
const reader = await Reader.FromFileSystem('path/to/output.svf'); // Enumerate fragments (without building a list of all of them) for await (const fragment of reader.enumerateFragments()) { console.log(fragment); }