artofillusion.object
Class TriangleMesh.Face
java.lang.Object
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.
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 |
v1
public int v1
v2
public int v2
v3
public int v3
e1
public int e1
e2
public int e2
e3
public int e3
TriangleMesh.Face
public TriangleMesh.Face(int vertex1,
int vertex2,
int vertex3,
int edge1,
int edge2,
int edge3)
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.