API referenceGeometry
effects
Import from bear/geometry/effects.
Functions
applyHoverEffect()
function applyHoverEffect(mesh): void;Defined in: bear/geometry/effects.ts:71
Tints a mesh in the model's periwinkle and traces its edges in a glow.
Parameters
| Parameter | Type |
|---|---|
mesh | Mesh |
Returns
void
clearEffects()
function clearEffects(root): void;Defined in: bear/geometry/effects.ts:155
Clears all hover and selection effects from an object and its children.
Parameters
| Parameter | Type |
|---|---|
root | Object3D |
Returns
void
isHelper()
function isHelper(obj): boolean;Defined in: bear/geometry/effects.ts:45
Drawn by the viewer, not the model: walks over the model's meshes (section caps, selection, shading, hover itself) skip it. Hover's lines are meshes.
Parameters
| Parameter | Type |
|---|---|
obj | Object3D |
Returns
boolean
removeHoverEffect()
function removeHoverEffect(mesh): void;Defined in: bear/geometry/effects.ts:98
Removes the hover effect from a mesh.
Parameters
| Parameter | Type |
|---|---|
mesh | Mesh |
Returns
void
setSelectionEffect()
function setSelectionEffect(obj, selected): void;Defined in: bear/geometry/effects.ts:122
Toggles selection effect (orange edge outline) on an object.
Parameters
| Parameter | Type |
|---|---|
obj | Object3D |
selected | boolean |
Returns
void