Reference·JavaScript · @bimworks/viewercommonJavaScript

XRaySelectionVisualization

Class in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Class

TypeScript#
class XRaySelectionVisualization

Translucent selected faces and bright edges drawn through the scene. Defaults to green faces (12% opacity) and pale green edges

Inheritance and interfaces#

  • WireframeSelectionVisualization

Members#

Member Kind Description
constructor Method overwrites: WireframeSelectionVisualization.constructor
color Property Normalized RGBA wireframe color. inheritedFrom: WireframeSelectionVisualization.color
extendedObbColor Property Normalized RGBA extended OBB line color (four channels, 0..1). Defaults to orange (#ff8000). inheritedFrom: WireframeSelectionVisualization.extendedObbColor
extendedObbEnabled Property Draw a thin wireframe around each selected, visible object's extended oriented bounding box. Independent of face/edge highlighting, including NoneSelectionVi…
faceColor Property Normalized RGBA face color; alpha controls overlay opacity. The inherited color controls edges.
wireframeEnabled Property Whether to draw selection edges. Defaults to true.

constructor#

TypeScript#
constructor(faceColor?: SelectionColor, wireframeColor?: SelectionColor)

overwrites: WireframeSelectionVisualization.constructor

Parameters#

Name Type Description
faceColor SelectionColor
wireframeColor SelectionColor

color#

TypeScript#
color: Float32Array

Normalized RGBA wireframe color.

inheritedFrom: WireframeSelectionVisualization.color

extendedObbColor#

TypeScript#
extendedObbColor: Float32Array

Normalized RGBA extended OBB line color (four channels, 0..1). Defaults to orange (#ff8000).

inheritedFrom: WireframeSelectionVisualization.extendedObbColor

extendedObbEnabled#

TypeScript#
extendedObbEnabled: boolean

Draw a thin wireframe around each selected, visible object's extended oriented bounding box. Independent of face/edge highlighting, including NoneSelectionVisualization. Defaults to false. Reapply with setSelectionVisualization after changing this flag or the color.

inheritedFrom: WireframeSelectionVisualization.extendedObbEnabled

faceColor#

TypeScript#
faceColor: Float32Array

Normalized RGBA face color; alpha controls overlay opacity. The inherited color controls edges.

wireframeEnabled#

TypeScript#
wireframeEnabled: boolean

Whether to draw selection edges. Defaults to true.