diff options
author | Rami Santina <[email protected]> | 2011-03-30 16:38:14 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-03-30 16:38:14 +0300 |
commit | 8e5d620eae1dcc1f1178e09c1d5172324541f503 (patch) | |
tree | f2d26265a6d2ee46fba6bae368fbde36428418a8 /src/jogamp/graph/curve/tess/GraphVertex.java | |
parent | 133edeb70921dbcae3ec7cc76f1bc6dd0cd36da8 (diff) | |
parent | 630a9ea52b16da6badb31a98b70893f8d294b4e8 (diff) |
Merge with sgothel
Diffstat (limited to 'src/jogamp/graph/curve/tess/GraphVertex.java')
-rw-r--r-- | src/jogamp/graph/curve/tess/GraphVertex.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/jogamp/graph/curve/tess/GraphVertex.java b/src/jogamp/graph/curve/tess/GraphVertex.java index a474a002e..b9f95a0e7 100644 --- a/src/jogamp/graph/curve/tess/GraphVertex.java +++ b/src/jogamp/graph/curve/tess/GraphVertex.java @@ -31,16 +31,16 @@ import java.util.ArrayList; import com.jogamp.graph.geom.Vertex; -public class GraphVertex <T extends Vertex> { - private T point; - private ArrayList<HEdge<T>> edges = null; +public class GraphVertex { + private Vertex point; + private ArrayList<HEdge> edges = null; private boolean boundaryContained = false; - public GraphVertex(T point) { + public GraphVertex(Vertex point) { this.point = point; } - public T getPoint() { + public Vertex getPoint() { return point; } @@ -59,25 +59,25 @@ public class GraphVertex <T extends Vertex> { return point.getCoord(); } - public void setPoint(T point) { + public void setPoint(Vertex point) { this.point = point; } - public ArrayList<HEdge<T>> getEdges() { + public ArrayList<HEdge> getEdges() { return edges; } - public void setEdges(ArrayList<HEdge<T>> edges) { + public void setEdges(ArrayList<HEdge> edges) { this.edges = edges; } - public void addEdge(HEdge<T> edge){ + public void addEdge(HEdge edge){ if(edges == null){ - edges = new ArrayList<HEdge<T>>(); + edges = new ArrayList<HEdge>(); } edges.add(edge); } - public void removeEdge(HEdge<T> edge){ + public void removeEdge(HEdge edge){ if(edges == null) return; edges.remove(edge); @@ -85,24 +85,24 @@ public class GraphVertex <T extends Vertex> { edges = null; } } - public HEdge<T> findNextEdge(GraphVertex<T> nextVert){ - for(HEdge<T> e:edges){ + public HEdge findNextEdge(GraphVertex nextVert){ + for(HEdge e:edges){ if(e.getNext().getGraphPoint() == nextVert){ return e; } } return null; } - public HEdge<T> findBoundEdge(){ - for(HEdge<T> e:edges){ + public HEdge findBoundEdge(){ + for(HEdge e:edges){ if((e.getType() == HEdge.BOUNDARY) || (e.getType() == HEdge.HOLE)){ return e; } } return null; } - public HEdge<T> findPrevEdge(GraphVertex<T> prevVert){ - for(HEdge<T> e:edges){ + public HEdge findPrevEdge(GraphVertex prevVert){ + for(HEdge e:edges){ if(e.getPrev().getGraphPoint() == prevVert){ return e; } |