Class: SelectionOverlay
Меньше 1 минуты
Class: SelectionOverlay
Canvas overlay that draws the lasso / box selection shape on top of the viewer.
Visual convention:
- Enclosure (left→right): solid outline, blue fill
- Intersection (right→left): dashed outline, green fill
Methods
draw()
draw(
points,behavior?):void
Draw the selection shape from NDC points ([-1,1] range).
Parameters
points
number[]
flat array [x0, y0, z0, x1, y1, z1, ...]
behavior?
SelectionBehavior
"enclosure" for solid blue, "intersection" for dashed green
Returns
void