Appearance
perspectiveMode ?
PerspectiveMode ?
Kind: global class
new PerspectiveMode(viewer) ?
透視模式,用于模型顯現(xiàn)和隱藏的動(dòng)畫(huà)效果、包括透明變化、生長(zhǎng)變化。
| Param | Type | Description |
|---|---|---|
| viewer | Viewer | 場(chǎng)景對(duì)象 |
perspectiveMode.switchMaterial(meshs, hidemesh, material, callback, scaleMesh, display, time1, time2) ?
漸變隱藏顯現(xiàn)模型
Kind: instance method of PerspectiveMode
| Param | Type | Default | Description |
|---|---|---|---|
| meshs | Array | 模型數(shù)組 | |
| material | Obect | 透視材質(zhì) | |
| callback | function | 回調(diào)函數(shù) | |
| scaleMesh | * | | 比例模型 |
| display | boolean | 顯示(恢復(fù)原有材質(zhì))還是隱藏(進(jìn)入透視模式) | |
| time1 | number | 動(dòng)畫(huà)壓平的時(shí)間 | |
| time2 | number | 模型抬升的時(shí)間 |
perspectiveMode.destroy(models) ?
釋放材質(zhì)以及幾何信息
Kind: instance method of PerspectiveMode
| Param | Type | Description |
|---|---|---|
| models | Array | 模型數(shù)組 |