|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.subdivision.SubdivisionButterfly.Triangle
public class SubdivisionButterfly.Triangle
Inner helper class for SubdivisonBatch to keep track of the triangles
SubdivisionButterfly.findEdgesAndTriangles()
Field Summary | |
---|---|
SubdivisionButterfly.Edge[] |
edges
The three Edges of this Triangle |
int[] |
vertexIndex
The three vertex indices of this Triangle |
Constructor Summary | |
---|---|
SubdivisionButterfly.Triangle()
Constructor |
|
SubdivisionButterfly.Triangle(int i1,
int i2,
int i3)
Constructor |
Method Summary | |
---|---|
SubdivisionButterfly.Edge |
findEdge(int vertexIndex1,
int vertexIndex2)
Find the Edge of this Triangle with the provided vertex indices |
SubdivisionButterfly.Edge |
findOtherSharedEdge(int vertexIndex,
SubdivisionButterfly.Edge edge)
Finds the other edge in this triangle which has the vertex i.e. |
int |
findThirdVertex(int vertexIndex1,
int vertexIndex2)
Given two vertex indices of this Triangle, find the third vertex index |
int |
findThirdVertex(SubdivisionButterfly.Edge edge)
Given two vertex indices of this Triangle, find the third vertex index |
boolean |
hasEdge(SubdivisionButterfly.Edge edge)
Does this Triangle contain the given Edge? |
boolean |
isCCW(SubdivisionButterfly.Edge edge,
int vertexIndex)
Returns true if the triangle is counter-clockwise from the edges point of view, looking down the edge starting at vertex vertexIndex |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int[] vertexIndex
public SubdivisionButterfly.Edge[] edges
Constructor Detail |
---|
public SubdivisionButterfly.Triangle()
public SubdivisionButterfly.Triangle(int i1, int i2, int i3)
i1
- i2
- i3
- The three vertex indices of this TriangleMethod Detail |
---|
public boolean hasEdge(SubdivisionButterfly.Edge edge)
edge
- The edge to look for
true
if the edge is foundpublic boolean isCCW(SubdivisionButterfly.Edge edge, int vertexIndex)
edge
- vertexIndex
-
public SubdivisionButterfly.Edge findEdge(int vertexIndex1, int vertexIndex2)
vertexIndex1
- vertexIndex2
-
public int findThirdVertex(SubdivisionButterfly.Edge edge)
edge
- The edge that defines the other two vertex indices
public int findThirdVertex(int vertexIndex1, int vertexIndex2)
vertexIndex1
- vertexIndex2
-
public SubdivisionButterfly.Edge findOtherSharedEdge(int vertexIndex, SubdivisionButterfly.Edge edge)
vertexIndex
- The vertex index who's other Edge we want to findedge
- The edge we already know of
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |