Properties
objectPickConfiguration
By default the viewer filters the objects from ObjectClicked and ObjectDoubleClicked events the following way:
- Null materials are ignored
- Materials with
visible=false
are ignored - Transparent materials with
opacity=0
are ignored SpeckleGhostMaterial
material instances are ignored
Accessors
allObjects
clippingPlanes
clippingVolume
indirectIBL
indirectIBLIntensity
intersections
needsRender
pipeline
renderer
renderingCamera
renderingStats
scene
sceneBox
sceneCenter
sceneSphere
shadowcatcher
shadowMapNeedsUpdate
sunLight
Methods
addRenderTree
yield
after each batch has been created, allowing for user defined code to be run in the following fashion.
- subtreeId: The id of the render tree to add to the scene
boxFromObjects
- objectIds: An array of ids that participate in the bounds calculation
cancelRenderTree
- objectIds: An array of ids that participate in the bounds calculation
enableLayers
- objectIds: An array of ids that participate in the bounds calculation
getBatch
- id: The id of the batch
getBatchMaterial
- rv: NodeRenderView
getMaterial
- rv: NodeRenderView
getObject
- rv: NodeRenderView
getObjects
removeRenderTree
- subtreeId: The id of the render tree to remove from the scene
renderViewFromIntersection
- intersection: ExtendedIntersection
resetMaterials
resetPipeline
resize
setMaterial
There are several overloads of this method.- rvs: NodeRenderView
- material: The material instance to apply. It can be a vanilla three.js Material but also a SpeckleMaterial
- rvs: NodeRenderView
- material: RenderMaterial & DisplayStyle & MaterialOptions
- rvs: NodeRenderView
- material: FilterMaterial
setSunLightConfiguration
- config: SunLightConfiguration
updateShadowCatcher
- optional force: boolean
Typedefs
ObjectPickConfiguration
- pickedObjectsFilter: The filtering predicate
RenderingStats
SunLightConfiguration
- elevation: Elevation in polar coordinates
- azimuth: Azimuth in polar coordinates
- radius: Distance from the camera target