Namespace vxl.def.actor

Default values and constants that can be used with the vxlActor class.

Namespace

vxl.def.actor
Contains the constants and default values that can be associated with vxlActor

Fields

<static> vxl.def.actor.cull

Defines the culling modes available for instances of vxlActor

These modes can be BACK,FRONT or NONE

  var actor = vxl.c.scene.getActorByName('sphere'); //from the current scene  actor.cullFace(vxl.def.actor.cull.BACK); //hides the back face. 
<static> vxl.def.actor.mode

Defines the visualization modes available for instances of vxlActor

The visualization modes can be:

  • TEXTURED: Used when the model associated with this actor has a texture
  • SOLID
  • WIREFRAME
  • POINTS
  • LINES
  • BOUNDING_BOX (added in 0.88.1)
  • BB_AND_SOLID (added in 0.89)
  • WIRED_AND_SOLID (added in 0.89.1)
  • FLAT (added in 0.89.1)

to set the actor mode you should use the vxlActor#setVisualizationMode For instance, if you want to visualize the wireframe of your actor you can do something like this:

 var actor = vxl.c.scene.getActorByName('example.json'); //from the current scene actor.setVisualizationMode(vxl.def.actor.mode.WIREFRAME)
See:
vxlActor#setVisualizationMode
<static> vxl.def.actor.picking

Defines the picking modes available for vxlActor