ATTACH Method

The ATTACH method of VPGL Language registers event handler to 3D geometries.

ATTACH takes 3 inputs or 2 input with option and emits 1 ouput. Input 0 must be the 3D object, input 1 must be an object to respond agaist this event and input 2/option must be a dictionary which has:

  • “scene” – scene name which attached geometry belongs to
  • “geo” – name of goemetry which this hadler is attached
  • “evt” – event name.
  • “msg” – method name which input 1 executes on evt raising.

All mandetory items above are string object.

Finally ATTACH passes the 3D object to outpu 0.