From 630a9ea52b16da6badb31a98b70893f8d294b4e8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 30 Mar 2011 15:25:18 +0200 Subject: Remove generics notion of Type, since Vertex _is_ the lowest denominator for our implementation and curve API --- src/jogamp/graph/curve/tess/HEdge.java | 43 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'src/jogamp/graph/curve/tess/HEdge.java') diff --git a/src/jogamp/graph/curve/tess/HEdge.java b/src/jogamp/graph/curve/tess/HEdge.java index 5635e2c31..d1bcc6e17 100644 --- a/src/jogamp/graph/curve/tess/HEdge.java +++ b/src/jogamp/graph/curve/tess/HEdge.java @@ -31,24 +31,24 @@ import com.jogamp.graph.geom.Vertex; import com.jogamp.graph.geom.Triangle; -public class HEdge { +public class HEdge { public static int BOUNDARY = 3; public static int INNER = 1; public static int HOLE = 2; - private GraphVertex vert; - private HEdge prev = null; - private HEdge next = null; - private HEdge sibling = null; + private GraphVertex vert; + private HEdge prev = null; + private HEdge next = null; + private HEdge sibling = null; private int type = BOUNDARY; - private Triangle triangle = null; + private Triangle triangle = null; - public HEdge(GraphVertex vert, int type) { + public HEdge(GraphVertex vert, int type) { this.vert = vert; this.type = type; } - public HEdge(GraphVertex vert, HEdge prev, HEdge next, HEdge sibling, int type) { + public HEdge(GraphVertex vert, HEdge prev, HEdge next, HEdge sibling, int type) { this.vert = vert; this.prev = prev; this.next = next; @@ -56,8 +56,7 @@ public class HEdge { this.type = type; } - public HEdge(GraphVertex vert, HEdge prev, HEdge next, HEdge sibling, int type, - Triangle triangle) { + public HEdge(GraphVertex vert, HEdge prev, HEdge next, HEdge sibling, int type, Triangle triangle) { this.vert = vert; this.prev = prev; this.next = next; @@ -66,35 +65,35 @@ public class HEdge { this.triangle = triangle; } - public GraphVertex getGraphPoint() { + public GraphVertex getGraphPoint() { return vert; } - public void setVert(GraphVertex vert) { + public void setVert(GraphVertex vert) { this.vert = vert; } - public HEdge getPrev() { + public HEdge getPrev() { return prev; } - public void setPrev(HEdge prev) { + public void setPrev(HEdge prev) { this.prev = prev; } - public HEdge getNext() { + public HEdge getNext() { return next; } - public void setNext(HEdge next) { + public void setNext(HEdge next) { this.next = next; } - public HEdge getSibling() { + public HEdge getSibling() { return sibling; } - public void setSibling(HEdge sibling) { + public void setSibling(HEdge sibling) { this.sibling = sibling; } @@ -106,20 +105,20 @@ public class HEdge { this.type = type; } - public Triangle getTriangle() { + public Triangle getTriangle() { return triangle; } - public void setTriangle(Triangle triangle) { + public void setTriangle(Triangle triangle) { this.triangle = triangle; } - public static void connect(HEdge first, HEdge next){ + public static void connect(HEdge first, HEdge next){ first.setNext(next); next.setPrev(first); } - public static void makeSiblings(HEdge first, HEdge second){ + public static void makeSiblings(HEdge first, HEdge second){ first.setSibling(second); second.setSibling(first); } -- cgit v1.2.3