com.azalient.api.a.position
Interface ITriangle

All Superinterfaces:
Serializable

public interface ITriangle
extends Serializable

A triangle forms part of a mesh, which is used to draw the surface of a complex shape.


Method Summary
 ITriangle duplicate()
          Return a copy of this triangle
 int materialIndex()
          The index of the material associated with this trangle face
 IXyz normal()
          A unit-length normal vector to this triangle face
 void replace(IVertex u, IVertex v)
           
 double shade()
           
 void vertexIndices(int[] vertexIndices)
          Set the vertices of this triangle by providing three indices into the vertex array for the Mesh
 IVertex[] vertices()
          An array of this triangle's three vertices
 

Method Detail

vertices

IVertex[] vertices()
An array of this triangle's three vertices


normal

IXyz normal()
A unit-length normal vector to this triangle face


materialIndex

int materialIndex()
The index of the material associated with this trangle face


vertexIndices

void vertexIndices(int[] vertexIndices)
Set the vertices of this triangle by providing three indices into the vertex array for the Mesh


duplicate

ITriangle duplicate()
Return a copy of this triangle


replace

void replace(IVertex u,
             IVertex v)
Internal - Not recommended for use. Public as a side-effect of implementation method
used by mesh reducer

shade

double shade()
Internal - Not recommended for use. Public as a side-effect of implementation method