|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.subdivision.SubdivisionButterfly.Edge
public class SubdivisionButterfly.Edge
Inner helper class for SubdivisonBatch to keep track of the edges
SubdivisionButterfly.findEdgesAndTriangles()| Field Summary | |
|---|---|
SubdivisionButterfly.Edge[] |
newEdges
The two new Edges that were created when splitting this Edge |
int |
newVertexIndex
The new vertex that was created when splitting this Edge |
SubdivisionButterfly.Triangle[] |
triangles
The one or two triangle(s) sharing this edge |
int[] |
vertexIndex
The two vertex indices of this Edge |
| Constructor Summary | |
|---|---|
SubdivisionButterfly.Edge()
Constructor |
|
SubdivisionButterfly.Edge(int i1,
int i2)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(int i1,
int i2)
Does this Edge have the same vertex indices as those provided. |
boolean |
equals(SubdivisionButterfly.Edge edge)
Does this Edge have the same vertex indices as the provided Edge. |
boolean |
hasVertex(int vertexIndex)
|
int |
otherVertex(int 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[] newEdges
public SubdivisionButterfly.Triangle[] triangles
public int newVertexIndex
| Constructor Detail |
|---|
public SubdivisionButterfly.Edge()
public SubdivisionButterfly.Edge(int i1,
int i2)
i1 - One vertex index of this Edgei2 - The other vertex index of this Edge| Method Detail |
|---|
public boolean equals(SubdivisionButterfly.Edge edge)
edge - The Edge to compare this Edge to
true if they are the same
public boolean equals(int i1,
int i2)
i1 - One vertex indexi2 - Another vertex index
true if the vertex indices in this Edge are the same as those providedpublic boolean hasVertex(int vertexIndex)
vertexIndex - The index to look for
true if this Edge contains the provided vertexIndexpublic int otherVertex(int vertexIndex)
vertexIndex - The index that we already know of of this Edge
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 | |||||||||