BIM.works SDKs - v3.0.0-b.115
    Preparing search index...

    Class XRaySelectionVisualization

    Translucent selected faces and bright edges drawn through the scene, respecting section planes and object visibility. Defaults to green faces (12% opacity) and pale green edges. This is an overlay: original objects remain rendered underneath, so it does not make them physically transparent. Overlapping selected faces accumulate opacity. Uses one selected triangle pass plus optional edges, with no geometry rebuild or additional framebuffer. Save getSelectionVisualization() before enabling, then reapply it to restore the previous style.

    const previous = viewer.getSelectionVisualization();
    viewer.setSelectionVisualization(new XRaySelectionVisualization()); // on
    viewer.setSelectionVisualization(previous); // off
    To x-ray objects without selecting them, use ObjectStateManager.addToXRaySet.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    color: Float32Array

    Normalized RGBA wireframe color.

    extendedObbColor: Float32Array

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

    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. Each half-extent grows by 1% of the longest full side, preserving orientation and center, including for planar objects. Objects without a non-empty OBB are skipped. Boxes follow model placement and remain visible through occluders and section planes. Cached instance buffers use one draw per model/layer; color and camera changes do not rebuild them. Reapply with setSelectionVisualization after changing this flag or the color.

    faceColor: Float32Array

    Normalized RGBA face color; alpha controls overlay opacity (clamped to 0..1 when rendered). Reapply with setSelectionVisualization after editing. The inherited color controls edges.

    wireframeEnabled: boolean

    Whether to draw selection edges. Defaults to true. Reapply after editing.