artofillusion.object
Class TriangleMesh.Face

java.lang.Object
  extended by artofillusion.object.TriangleMesh.Face
Enclosing class:
TriangleMesh

public class TriangleMesh.Face
extends java.lang.Object

A face is defined by its three vertices and three edges. The vertices must be arranged in counter-clockwise order, when viewed from the outside. Edges 1, 2, and 3 connect vertices 1 and 2, 2 and 3, and 3 and 1 respectively.


Field Summary
 int e1
           
 int e2
           
 int e3
           
 int v1
           
 int v2
           
 int v3
           
 
Constructor Summary
TriangleMesh.Face(int vertex1, int vertex2, int vertex3, int edge1, int edge2, int edge3)
           
 
Method Summary
 int getSharedFace(TriangleMesh.Face f)
          Given another face, return the index of the edge it shares with this one, or -1 if they do not share an edge.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v1

public int v1

v2

public int v2

v3

public int v3

e1

public int e1

e2

public int e2

e3

public int e3
Constructor Detail

TriangleMesh.Face

public TriangleMesh.Face(int vertex1,
                         int vertex2,
                         int vertex3,
                         int edge1,
                         int edge2,
                         int edge3)
Method Detail

getSharedFace

public int getSharedFace(TriangleMesh.Face f)
Given another face, return the index of the edge it shares with this one, or -1 if they do not share an edge.



Copyright © 1999-2011 by Peter Eastman.