Skip to content
On this page

perspectiveMode

PerspectiveMode

Kind: global class

new PerspectiveMode(viewer)

透视模式,用于模型显现和隐藏的动画效果、包括透明变化、生长变化。

ParamTypeDescription
viewerViewer场景对象

perspectiveMode.switchMaterial(meshs, hidemesh, material, callback, scaleMesh, display, time1, time2)

渐变隐藏显现模型

Kind: instance method of PerspectiveMode

ParamTypeDefaultDescription
meshsArray模型数组
materialObect透视材质
callbackfunction回调函数
scaleMesh*比例模型
displayboolean显示(恢复原有材质)还是隐藏(进入透视模式)
time1number动画压平的时间
time2number模型抬升的时间

perspectiveMode.destroy(models)

释放材质以及几何信息

Kind: instance method of PerspectiveMode

ParamTypeDescription
modelsArray模型数组