Summary
Methods:
getBBox |
获取包围盒 |
getRoot |
获取根节点,一般指模型对象 |
setHighlight |
高亮当前模型的mesh。 |
Constructor
new Node()
Methods
-
getBBox() → {BBox}
-
获取包围盒
Returns:
BBox -
getRoot() → {GLTF}
-
获取根节点,一般指模型对象
Returns:
GLTF -
setHighlight(flag, color)
-
高亮当前模型的mesh。
Parameters:
Name Type Description flag
Boolean 选中设置true;不选中设置false。
color
Color 高亮颜色
Throws:
当参数flag既不是true,也不为false时,抛出参数类型异常。
Example
node.setHighlight(true,new hmap.style.Color(255,0,0,1));