Class EdgeStack

java.lang.Object
au.edu.unsw.cse.EdgeStack

public class EdgeStack
extends java.lang.Object
This class stores the edges that still need to be processed. It works like a regular stack except that putting AB on the stack when BA is already there causes both edges to be eliminated.
  • Constructor Summary

    Constructors
    Constructor Description
    EdgeStack()  
  • Method Summary

    Modifier and Type Method Description
    void dump()  
    Edge3d get()  
    boolean isEmpty()  
    void put​(Edge3d e)  
    void put​(Point3d a, Point3d b)  
    void putp​(Edge3d e)  
    void putp​(Point3d a, Point3d b)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EdgeStack

      public EdgeStack()
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • get

      public Edge3d get()
    • put

      public void put​(Edge3d e)
    • put

      public void put​(Point3d a, Point3d b)
    • putp

      public void putp​(Edge3d e)
    • putp

      public void putp​(Point3d a, Point3d b)
    • dump

      public void dump()