FaceAndWireframeSelectionVisualization
Class in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Class
class FaceAndWireframeSelectionVisualizationDraw opaque selected faces in a shared base color and optional thin edges in another color
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 is always 1. The inherited color is the wireframe color. |
| wireframeEnabled | Property | Whether to draw selection edges. Defaults to true; set false for faces only. |
constructor#
constructor(faceColor: SelectionColor, wireframeColor: SelectionColor)overwrites: WireframeSelectionVisualization.constructor
Parameters#
| Name | Type | Description |
|---|---|---|
faceColor |
SelectionColor |
|
wireframeColor |
SelectionColor |
color#
color: Float32ArrayNormalized RGBA wireframe color.
inheritedFrom: WireframeSelectionVisualization.color
extendedObbColor#
extendedObbColor: Float32ArrayNormalized RGBA extended OBB line color (four channels, 0..1). Defaults to orange (#ff8000).
inheritedFrom: WireframeSelectionVisualization.extendedObbColor
extendedObbEnabled#
extendedObbEnabled: booleanDraw 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#
faceColor: Float32ArrayNormalized RGBA face color; alpha is always 1. The inherited color is the wireframe color.
wireframeEnabled#
wireframeEnabled: booleanWhether to draw selection edges. Defaults to true; set false for faces only.