Create a new Viewer3d.
The ObjectStateManager manages all object related state such as visibility, color and selection
Optional
loadProgressHandler: LoadProgressHandlerOptional
settings: Viewer3dSettingsOptional
stats: unknownReadonly
bimReadonly
clientReadonly
containerCurrent viewer mode, either LOCAL (Using local coordinates) or GEO (Using geo coordinates)
Readonly
modelReadonly
objectReadonly
settingsAdd a listener for mode updates
Private
qidsRemove listener for mode updates
Will take a screenshot of the contents of the Viewer3d.
The returned Blob can for example be downloaded by the user, using the following example
const width = viewer3d.width;
const height = viewer3d.height;
const filename = `screencapture-${width}x${height}.png`;
Utils.downloadBlob(blob, filename);
A Blob
Optional
options: ScreenshotOptionsOptional options object
Private
sidsStart a new measurement
Stops the viewer. When the viewer is stopped, the view is not updated anymore. Any changes to the viewer will be accumulated and become visible as soon as the viewer is started again The main reason for stopping the viewer would be for performance, for example when the viewer is currently hidden
Toggle whether (generated) door openings are rendered. This only works for models that have been processed when the repository setting features.generate_door_openings
had been enabled.
Some models contains door opening direction geometry as IFC lines, in those cases it's best to disabled rendering generated door openings.
True when enabled
Generated using TypeDoc
A 3D viewer