aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-02-02 10:33:49 +0100
committerSven Göthel <[email protected]>2024-02-02 10:33:49 +0100
commit5242c1392c39d3a4b0a95ebfdc72bcd93bf2f820 (patch)
treed4ba261635965b9cea540038b795c568150ed8ee /src/jogl/classes/com/jogamp
parentaa39750aa27fc4c65f34fbd599186b30e5005f59 (diff)
OutlineShape: Earmark coloring task when triangulating ..
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
index cda46d8f6..eb6548838 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
@@ -163,6 +163,10 @@ public final class OutlineShape implements Comparable<OutlineShape> {
private final Vec3f tmpV1 = new Vec3f();
private final Vec3f tmpV2 = new Vec3f();
private final Vec3f tmpV3 = new Vec3f();
+ // COLOR
+ // private final Vec4f tmpC1 = new Vec4f();
+ // private final Vec4f tmpC2 = new Vec4f();
+ // private final Vec4f tmpC3 = new Vec4f();
/**
* Create a new Outline based Shape
@@ -771,6 +775,11 @@ public final class OutlineShape implements Comparable<OutlineShape> {
VectorUtil.midVec3(tmpV3, b.getCoord(), c.getCoord());
VectorUtil.midVec3(tmpV2, tmpV1, tmpV3);
+ // COLOR
+ // tmpC1.set(a.getColor()).add(b.getColor()).scale(0.5f);
+ // tmpC3.set(b.getColor()).add(b.getColor()).scale(0.5f);
+ // tmpC2.set(tmpC1).add(tmpC1).scale(0.5f);
+
//drop off-curve vertex to image on the curve
b.setCoord(tmpV2);
b.setOnCurve(true);
@@ -917,6 +926,7 @@ public final class OutlineShape implements Comparable<OutlineShape> {
VectorUtil.midVec3(tmpV1, currentVertex.getCoord(), nextVertex.getCoord());
System.err.println("XXX: Cubic: "+i+": "+currentVertex+", "+j+": "+nextVertex);
final Vertex v = new Vertex(tmpV1, true);
+ // COLOR: tmpC1.set(currentVertex.getColor()).add(nextVertex.getColor()).scale(0.5f)
i++;
vertexCount++;
addedVerticeCount++;