Default values and constants that can be used with the vxlActor
class.
vxlActor
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.
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 textureSOLID
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)