Open object from file and register presentation(s) in erased state.
object name
path to the file in emulated filesystem
expand model or display as a single part
FALSE on reading error
Open object from memory and register presentation(s) in erased state.
object name
pointer to data
expand model or display as a single part
FALSE on reading error
Open object from the given URL and register presentation(s) in erased state. File will be loaded asynchronously. To remove file from file system you should call OccViewer.ModelLoader.unlinkFile if it is no longer needed
object name
the file URL address
expand model or display as a single part
Take buffer and upload it to emulated file system.
buffer to load
file path on emulated file system (or empty string to take name from URL)
decode image file using Emscripten plugins
evaluation result as promise returning TRUE or Error
Unlinks the node at path. This removes a name from the file system. If that name was the last link to a file (and no processes have the file open) the file is deleted. Usually you should call this function after
file path on emulated file system (or empty string to take name from URL)
Fetch remote file from specified URL and upload it to emulated file system. To remove file from file system you should call
URL to load
file path on emulated file system (or empty string to take name from URL)
decode image file using Emscripten plugins
evaluation result as promise returning TRUE or Error
Model loader is a global object accessible via OccViewer.modelLoader, providing an interface for loading files/models into the Viewer scene.
See also OccViewer.InteractiveMesh for object-oriented interface to this functionality.