BowlerKernel
FaceList.java
Go to the documentation of this file.
1 package eu.mihosoft.vrl.v3d.ext.quickhull3d;
2 
3 // TODO: Auto-generated Javadoc
7 class FaceList
8 {
9 
11  private Face head;
12 
14  private Face tail;
15 
19  public void clear()
20  {
21  head = tail = null;
22  }
23 
29  public void add (Face vtx)
30  {
31  if (head == null)
32  { head = vtx;
33  }
34  else
35  { tail.next = vtx;
36  }
37  vtx.next = null;
38  tail = vtx;
39  }
40 
46  public Face first()
47  {
48  return head;
49  }
50 
56  public boolean isEmpty()
57  {
58  return head == null;
59  }
60 }