XRayVisualization
Class in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Class
TypeScript#
class XRayVisualizationHow the ObjectStateManager's x-ray set is drawn (Viewer3d.setXRayVisualization): translucent faces and edges through the scene, independent of selection and of XRaySelectionVisualization. This is an overlay: the objects remain rendered normally underneath. Overlapping faces accumulate opacity. The ghost set (ObjectStateManager.addToGhostSet) is drawn with it too: ghosts are hidden, so for them the overlay is all there is.
Members#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | |
| color | Property | Normalized RGBA edge color. |
| faceColor | Property | Normalized RGBA face color; alpha controls overlay opacity (clamped to 0..1 when rendered). |
| facesEnabled | Property | Whether to draw the translucent faces. Defaults to true. |
| wireframeEnabled | Property | Whether to draw the edges. Defaults to true. |
constructor#
TypeScript#
constructor(faceColor?: SelectionColor, wireframeColor?: SelectionColor)Parameters#
| Name | Type | Description |
|---|---|---|
faceColor |
SelectionColor |
Defaults to blue at 15% opacity. |
wireframeColor |
SelectionColor |
Defaults to #cfe0ff. |
color#
TypeScript#
color: Float32ArrayNormalized RGBA edge color.
faceColor#
TypeScript#
faceColor: Float32ArrayNormalized RGBA face color; alpha controls overlay opacity (clamped to 0..1 when rendered).
facesEnabled#
TypeScript#
facesEnabled: booleanWhether to draw the translucent faces. Defaults to true.
wireframeEnabled#
TypeScript#
wireframeEnabled: booleanWhether to draw the edges. Defaults to true.