---
title: FaceAndWireframeSelectionVisualization
summary: Class in @bimworks/viewer3d.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewer3d
---

# FaceAndWireframeSelectionVisualization

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewer3d` · Class

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
class FaceAndWireframeSelectionVisualization
````

Draw opaque selected faces using a shared base color and optional thin edges in another color.
Faces retain normal surface lighting and two-sided shading; the displayed color varies with lighting.
Faces are depth-tested against the scene; edges remain visible through occluders.
The highlight replaces original/user colors without modifying them, including for transparent objects.
Face alpha is ignored (always opaque); wireframe alpha controls outline opacity.

## Inheritance and interfaces

- `WireframeSelectionVisualization`

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewer3d/faceandwireframeselectionvisualization-345f19cf#member-constructor-ea2dcf483ea4|constructor]] | Method | overwrites: WireframeSelectionVisualization.constructor |
| [[page:reference/javascript/bimworks-viewer3d/faceandwireframeselectionvisualization-345f19cf#member-color-fe6bc8d2c85c|color]] | Property | Normalized RGBA wireframe color. inheritedFrom: WireframeSelectionVisualization.color |
| [[page:reference/javascript/bimworks-viewer3d/faceandwireframeselectionvisualization-345f19cf#member-extendedobbcolor-8fd7da8ffb29|extendedObbColor]] | Property | Normalized RGBA extended OBB line color (four channels, 0..1). Defaults to orange (#ff8000). inheritedFrom: WireframeSelectionVisualization.extendedObbColor |
| [[page:reference/javascript/bimworks-viewer3d/faceandwireframeselectionvisualization-345f19cf#member-extendedobbenabled-933315bc17e1|extendedObbEnabled]] | Property | Draw a thin wireframe around each selected, visible object's extended oriented bounding box. Independent of face/edge highlighting, including NoneSelectionVi… |
| [[page:reference/javascript/bimworks-viewer3d/faceandwireframeselectionvisualization-345f19cf#member-facecolor-59f25ebc7166|faceColor]] | Property | Normalized RGBA face color; alpha is always 1. The inherited color is the wireframe color. |
| [[page:reference/javascript/bimworks-viewer3d/faceandwireframeselectionvisualization-345f19cf#member-wireframeenabled-1ebb725beb45|wireframeEnabled]] | Property | Whether to draw selection edges. Defaults to true; set false for faces only. Reapply with setSelectionVisualization after changing this flag. No wireframe pa… |

## `constructor` {#member-constructor-ea2dcf483ea4}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
constructor(faceColor: SelectionColor, wireframeColor: SelectionColor)
````



overwrites: WireframeSelectionVisualization.constructor

### Parameters

| Name | Type | Description |
|---|---|---|
| `faceColor` | `SelectionColor` |  |
| `wireframeColor` | `SelectionColor` |  |

## `color` {#member-color-fe6bc8d2c85c}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
color: Float32Array
````

Normalized RGBA wireframe color.

inheritedFrom: WireframeSelectionVisualization.color

## `extendedObbColor` {#member-extendedobbcolor-8fd7da8ffb29}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
extendedObbColor: Float32Array
````

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

inheritedFrom: WireframeSelectionVisualization.extendedObbColor

## `extendedObbEnabled` {#member-extendedobbenabled-933315bc17e1}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
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.

inheritedFrom: WireframeSelectionVisualization.extendedObbEnabled

## `faceColor` {#member-facecolor-59f25ebc7166}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
faceColor: Float32Array
````

Normalized RGBA face color; alpha is always 1. The inherited color is the wireframe color.

## `wireframeEnabled` {#member-wireframeenabled-1ebb725beb45}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
wireframeEnabled: boolean
````

Whether to draw selection edges. Defaults to true; set false for faces only.
Reapply with setSelectionVisualization after changing this flag. No wireframe pass runs when false.
