Class vxlMesh

Provides cell by cell operations on models

Constructor

vxlMesh(prior)
In a mesh, the geometry is structured in units called cells (triangles). This class provides operations on individual cells.
Author: Diego Cantor.

Parameters:

vxlActor prior

the model for this mesh

Methods

.getCell(cellUID)
Determines if this mesh contains the cell indicated by the parameter cellUID

Parameters:

Type Name Description
String cellUID

the unique identifier of a cell

.hasCell(cellUID)
Determines if this mesh contains the cell indicated by the parameter cellUID

Parameters:

Type Name Description
String cellUID

the unique identifier of a cell

.intersect(camera, angle)
This is just an experimental method. Determines what cells are facing the camera. May be this can be used for anything? I don't know! Maybe to see through a surface??

Parameters:

Type Name Description
Object camera

Object angle

.removeCell(cellUID)

Parameters:

Type Name Description
cellUID

.scalarsToCellColors(scalars, lut)
Receives an array with vertex colors (one color per vertex) interpolates these colors and assign cell colors

Parameters:

Type Name Description
scalars

lut

.setColor(color)
Sets the mesh color

Parameters:

Type Name Description
color

.updateColor()
Update the mesh colors based on the current cell colors