SelectModel class

Signature:

export default class SelectModel extends Tool 

Extends: Tool

Constructors

ConstructorDescription
(constructor)(viewer)Constructs a new instance of the SelectModel class

Properties

PropertyModifiersDescription
boundingBoxEnabled
currentHoveredModel
currentPosition
currentSelectedModel

Methods

MethodDescription
pickModelById(modelId)根据模型id选中模型,传入空值则取消选择
pickModelByMouseCoordinate(x, y)根据鼠标在canvas上的坐标获取模型
updateBoundingBox()更新boundingBox,当其他操作更新模型位姿时,需要调用,如gizmo操作或者model接口设置模型位姿