Class: TriangleList

TriangleList(options)

new TriangleList(options)

A TriangleList is a THREE object that can be used to display a list of triangles as a geometry.

Parameters:
Name Type Description
options

object with following keys:

  • material (optional) - the material to use for the object
  • vertices - the array of vertices to use
  • colors - the associated array of colors to use
Source:

Methods

setColor(hex)

Set the color of this object to the given hex value.

Parameters:
Name Type Description
hex

the hex value of the color to set

Source: