com.sun.j3d.utils.geometry
Class Stripifier.Edge

java.lang.Object
  extended by com.sun.j3d.utils.geometry.Stripifier.Edge
Enclosing class:
Stripifier

 class Stripifier.Edge
extends java.lang.Object

Stores the information about an edge of a triangle


Field Summary
(package private)  int face
           
(package private)  Stripifier.Vertex v1
           
(package private)  Stripifier.Vertex v2
           
 
Constructor Summary
Stripifier.Edge(Stripifier.Vertex vertex1, Stripifier.Vertex vertex2, int faceIndex)
           
 
Method Summary
(package private)  boolean equals(Stripifier.Edge edge)
          Determine whether the edges have the same vertices
(package private)  boolean lessThan(Stripifier.Edge edge)
          Used to sort the edges.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v1

Stripifier.Vertex v1

v2

Stripifier.Vertex v2

face

int face
Constructor Detail

Stripifier.Edge

Stripifier.Edge(Stripifier.Vertex vertex1,
                Stripifier.Vertex vertex2,
                int faceIndex)
Method Detail

equals

boolean equals(Stripifier.Edge edge)
Determine whether the edges have the same vertices


lessThan

boolean lessThan(Stripifier.Edge edge)
Used to sort the edges. If this is less than the edge parameter, return true. First check if vertex1 is less than vertex1 of the edge provided. If so, return true. If the first vertices are equal then check vertex2.



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.