WrapShape

WrapShape

Wrap a complicated shape inside a simpler one.

Constructor

new WrapShape(wrap, shape)

Source:

Constructor.

Parameters:
Name Type Description
wrap Shape

the wrapping shape

shape Shape

the wrapped shape

Classes

WrapShape

Methods

onAdd(scene)

Source:

Additional actions to perform when the object is added to the scene. Propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

setId(scene)

Source:

Set the ID of the shape. Propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.