ViewerEvent.ObjectClicked
for selection detection.ViewerEvent.ObjectDoubleClicked
for focusing on objectsInputEvent.PointerMove
for hover detection
This extension requires and active CameraController extension implementation.
Note that this extension will automatically remember the last material for
each material that you select and automatically apply it upon deselection.
This might affect the end result if you are combining selection with other
operations like isolating, hiding or coloring.
Accessors
enabled
options
Methods
getSelectedObjects
getSelectedNodes
selectObjects
- ids: Array< string >
- optional multiSelect: Signals if this select needs to clear previous one or not
unselectObjects
- optional ids: Array< string >. If not specified everything gets unselected
Typedefs
SelectionExtensionOptions
hoverMaterialData
is not specified, there will be no hover effect.
The selection/hover material data is provided as an intersection between a
RenderMaterial,
a DisplayStyle
and a
MaterialOptions
in order to accomodate all renderable types: triangles, lines and points.
- selectionMaterialData: The material data for selection effect
- hoverMaterialData: The material data for hover effect. If not specified, hover will not be enabled