Skip to Content
Bear documentation

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

ParameterType
meshMesh

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

ParameterType
rootObject3D

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

ParameterType
objObject3D

Returns

boolean


removeHoverEffect()

function removeHoverEffect(mesh): void;

Defined in: bear/geometry/effects.ts:98

Removes the hover effect from a mesh.

Parameters

ParameterType
meshMesh

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

ParameterType
objObject3D
selectedboolean

Returns

void

On this page