org.jcae.mesh.amibe.patch.tests
Class QuadTreeSampleRemove

java.lang.Object
  extended by org.jcae.mesh.amibe.patch.tests.QuadTreeSample
      extended by org.jcae.mesh.amibe.patch.tests.QuadTreeSampleRemove

public class QuadTreeSampleRemove
extends QuadTreeSample

Unit test to check removal of vertices. Run

   QuadTreeSampleRemove
 
to display an initial QuadTree with 500 vertices. Click to remove vertices.


Field Summary
 
Fields inherited from class org.jcae.mesh.amibe.patch.tests.QuadTreeSample
quadtree
 
Constructor Summary
QuadTreeSampleRemove(KdTree q)
           
 
Method Summary
static void display(Viewer view, QuadTreeSample r)
           
 Vertex2D getNearestVertex(Mesh2D mesh, Vertex2D n)
           
 Vertex2D getNearVertex(Mesh2D mesh, Vertex2D n)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.jcae.mesh.amibe.patch.tests.QuadTreeSample
bgQuadTree, bgVertices, segment, writeUNV
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadTreeSampleRemove

public QuadTreeSampleRemove(KdTree q)
Method Detail

getNearVertex

public Vertex2D getNearVertex(Mesh2D mesh,
                              Vertex2D n)

getNearestVertex

public Vertex2D getNearestVertex(Mesh2D mesh,
                                 Vertex2D n)

display

public static void display(Viewer view,
                           QuadTreeSample r)

main

public static void main(java.lang.String[] args)