Skip to content

Interface: LodOptions

Defined in: packages/viewer-core/src/public/types.ts:447

构造期 LOD 与小件代理策略(ViewerOptions.lod)。

Properties

cullBelowPx?

optional cullBelowPx?: number

Defined in: packages/viewer-core/src/public/types.ts:453

小于该屏幕足迹(px)的零件进入亚像素剔除候选。


edgeVisibility?

optional edgeVisibility?: object

Defined in: packages/viewer-core/src/public/types.ts:459

BREP 边线屏幕足迹降噪策略,默认 auto。

denseBoost?

optional denseBoost?: number

密集线阈值增益:threshold=hideBelowPx*(1+denseBoost*sqrt(density))。

denseLineCount?

optional denseLineCount?: number

参考可见线段数;超过后按 sqrt(segmentCount / denseLineCount) 继续放大阈值。

hideBelowPx?

optional hideBelowPx?: number

基础屏幕足迹阈值(px);线密度越高,实际隐藏阈值越大。

mode?

optional mode?: "auto" | "always"

auto=按足迹/线密度隐藏远处密集边线;always=始终按全局边线开关显示。


interactiveDegrade?

optional interactiveDegrade?: boolean

Defined in: packages/viewer-core/src/public/types.ts:457

相机交互时是否临时加大代理策略以保流畅,默认随预设。


mode?

optional mode?: LodMode

Defined in: packages/viewer-core/src/public/types.ts:449

预设策略,默认 "auto"


prominentFootprintPx?

optional prominentFootprintPx?: number

Defined in: packages/viewer-core/src/public/types.ts:470

件屏幕足迹≥此像素判「显眼」:画精确烘焙边并 floor 面档到 LOD-0。默认 256。


proxyBelowPx?

optional proxyBelowPx?: number

Defined in: packages/viewer-core/src/public/types.ts:455

小于该屏幕足迹(px)的零件优先使用最粗代理 LOD。


screenSpaceErrorPx?

optional screenSpaceErrorPx?: number

Defined in: packages/viewer-core/src/public/types.ts:451

屏幕空间误差阈值(px);越小越偏向精细 LOD。