summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/curve/tess
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-14 16:41:37 +0100
committerSven Gothel <[email protected]>2023-03-14 16:41:37 +0100
commit94c01e08a59929220686e131d1ce706e5cec6e16 (patch)
tree5e883061b8cfbc93df346d8a92baff2cc99a3bcc /src/jogl/classes/jogamp/graph/curve/tess
parent4d1d546aee01fe27e6b331b23be9be7cc3a5f883 (diff)
Graph: Have RegionRenderer.reshapeNotify(..) track x/y as well (vieport); GraphUI.Scene using RegionRenderer's viewport (no duplicate)
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/tess')
-rw-r--r--src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java b/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java
index defb26e77..715b812c1 100644
--- a/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java
+++ b/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java
@@ -109,22 +109,25 @@ public class CDTriangulator2D implements Triangulator {
int size = loop.computeLoopSize();
while(!loop.isSimplex()){
final Triangle tri;
+ final boolean delauny;
if(numTries > size){
tri = loop.cut(false);
+ delauny = false;
}
else{
tri = loop.cut(true);
+ delauny = true;
}
numTries++;
if(tri != null) {
- numTries = 0;
- size--;
tri.setId(maxTriID++);
sink.add(tri);
if(DEBUG){
- System.err.println("CDTri.gen["+i+"].0: "+tri);
+ System.err.println("CDTri.gen["+i+"].0: delauny "+delauny+", tries "+numTries+", size "+size+", "+tri);
}
+ numTries = 0;
+ size--;
}
if(numTries > size*2){
if(DEBUG){