aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/graph/curve
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/graph/curve')
-rw-r--r--src/com/jogamp/graph/curve/tess/CDTriangulator2D.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/com/jogamp/graph/curve/tess/CDTriangulator2D.java b/src/com/jogamp/graph/curve/tess/CDTriangulator2D.java
index beef2d4a5..cc2478409 100644
--- a/src/com/jogamp/graph/curve/tess/CDTriangulator2D.java
+++ b/src/com/jogamp/graph/curve/tess/CDTriangulator2D.java
@@ -203,13 +203,14 @@ public class CDTriangulator2D {
}
private Loop getContainerLoop(Outline polyline){
- Vertex v = polyline.getVertex(0);
-
- for (Loop loop:loops){
- if(loop.checkInside(v)){
- return loop;
+ ArrayList<Vertex> vertices = polyline.getVertices();
+ for(Vertex vert: vertices){
+ for (Loop loop:loops){
+ if(loop.checkInside(vert)){
+ return loop;
+ }
}
- }
+ }
return null;
}
}