Class vxlCell

Provides cell definitions

Constructor

vxlCell(mesh, index, vertices, color)
A cell is the minimum surface that can be selected on a mesh
Author: Diego Cantor.

Parameters:

mesh

index

vertices

color

Methods

.getFlattenVertices()
Returns an unidimensional array with the vertex information [[a,b,c],[d,e,f],[g,h,i]] --> [a,b,c,d,e,f,g,h,i]
.setColor(r, g, b)
Updates the cell color.

Parameters:

Type Name Description
Object r

Object g

Object b