Appearance
outLine ?
Functions ?
- outLineObject(viewer, object)
對指定的“子模型元素”,外輪廓高亮顯示
- setOutlineStyle(composer, options)
設(shè)置外輪廓高亮的樣式
outLineObject(viewer, object) ?
對指定的“子模型元素”,外輪廓高亮顯示
Kind: global function
| Param | Type | Description |
|---|---|---|
| viewer | Viewer | - 場景類 |
| object | string | 字符串,“子模型元素”的名稱?;蛘邽榘撟址臄?shù)組。 |
setOutlineStyle(composer, options) ?
設(shè)置外輪廓高亮的樣式
Kind: global function
| Param | Type | Description |
|---|---|---|
| composer | 后處理效果類 | |
| options | * | 樣式參數(shù) |
| options.edgeStrength | number | 外輪廓高亮的強度 |
| options.edgeGlow | number | 光暈 |
| options.edgeThickness | number | 粗細 |
| options.pulsePeriod | number | 閃爍(0 為不閃爍,一直常顯) |
| options.visibleEdgeColor | * | 外輪廓顏色 |
| options.hiddenEdgeColor- | * | 被擋住的顏色 |