com.threerings.opengl.model.tools
Class ModelDef.Triangle

java.lang.Object
  extended by com.threerings.opengl.model.tools.ModelDef.Triangle
Enclosing class:
ModelDef

protected static class ModelDef.Triangle
extends Object

Represents a triangle for processing purposes.


Field Summary
 ModelDef.Vertex[] vertices
          The vertices of the triangle.
 
Constructor Summary
ModelDef.Triangle(ModelDef.Vertex[] vertices)
           
 
Method Summary
 float getScore()
          Returns the score of the triangle, which is simply the sum of the scores of its vertices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

public ModelDef.Vertex[] vertices
The vertices of the triangle.

Constructor Detail

ModelDef.Triangle

public ModelDef.Triangle(ModelDef.Vertex[] vertices)
Method Detail

getScore

public float getScore()
Returns the score of the triangle, which is simply the sum of the scores of its vertices.