vclip
Class Edge

java.lang.Object
  extended byvclip.Feature
      extended byvclip.Edge

public class Edge
extends Feature

An edge of a polyhedron.

Author:
Brian Mirtich (C++ version), Eddy Boxerman, John E. Lloyd (Java port)
See Also:
Copyright information

Field Summary
 
Fields inherited from class vclip.Feature
EDGE, FACE, VERTEX
 
Method Summary
 javax.vecmath.Vector3d direction()
          Gets the direction vector associated with this edge
 Vertex getHead()
          Gets the head vertex associated with this edge.
 Vertex getTail()
          Gets the tail vertex associated with this edge.
 Face leftFace()
          Gets the left face associated with this edge.
 double length()
          Gets the length of this edge.
 Feature promote(javax.vecmath.Vector3d nrm, double angtol)
           
 Face rightFace()
          Gets the right face associated with this edge.
 java.lang.String toString()
          Produces a string representation of this edge.
 
Methods inherited from class vclip.Feature
getName, getType, isHidden, setHidden, typeName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHead

public Vertex getHead()
Gets the head vertex associated with this edge.

Returns:
head vertex

getTail

public Vertex getTail()
Gets the tail vertex associated with this edge.

Returns:
tail vertex

leftFace

public Face leftFace()
Gets the left face associated with this edge.

Returns:
left face

rightFace

public Face rightFace()
Gets the right face associated with this edge.

Returns:
right face

direction

public javax.vecmath.Vector3d direction()
Gets the direction vector associated with this edge

Returns:
direction vector

length

public double length()
Gets the length of this edge.

Returns:
length of the edge

toString

public final java.lang.String toString()
Produces a string representation of this edge.

Returns:
string representation

promote

public Feature promote(javax.vecmath.Vector3d nrm,
                       double angtol)
Overrides:
promote in class Feature