aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r--src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java6
-rw-r--r--src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2DExpAddOn.java16
2 files changed, 11 insertions, 11 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java b/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java
index b7fee25e5..fe1aad169 100644
--- a/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java
+++ b/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2D.java
@@ -204,9 +204,9 @@ public class CDTriangulator2D implements Triangulator {
final GraphVertex gv2 = outVertices.get((i+1)%size); // +1
if( !gv1.getPoint().isOnCurve() ) {
- final Vertex v0 = gv0.getPoint().clone();
- final Vertex v2 = gv2.getPoint().clone();
- final Vertex v1 = gv1.getPoint().clone();
+ final Vertex v0 = gv0.getPoint().copy();
+ final Vertex v2 = gv2.getPoint().copy();
+ final Vertex v1 = gv1.getPoint().copy();
addedVerticeCount += 3;
final boolean[] boundaryVertices = { true, true, true };
diff --git a/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2DExpAddOn.java b/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2DExpAddOn.java
index 32f526f3b..5429192cd 100644
--- a/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2DExpAddOn.java
+++ b/src/jogl/classes/jogamp/graph/curve/tess/CDTriangulator2DExpAddOn.java
@@ -95,17 +95,17 @@ public class CDTriangulator2DExpAddOn {
}
} else {
if( v0IsLS ) {
- final Vertex v = v0.clone();
+ final Vertex v = v0.copy();
v.setTexCoord(0f, 0f, texZTag);
triVs[0] = v;
}
if( v1IsLS ) {
- final Vertex v = v1.clone();
+ final Vertex v = v1.copy();
v.setTexCoord(0f, 0f, texZTag);
triVs[1] = v;
}
if( v2IsLS ) {
- final Vertex v = v2.clone();
+ final Vertex v = v2.copy();
v.setTexCoord(0f, 0f, texZTag);
triVs[2] = v;
}
@@ -252,16 +252,16 @@ public class CDTriangulator2DExpAddOn {
vOA = verts1[otherIdxA];
vOB = verts2[otherIdxB];
} else {
- // Fetch and clone, write-back to triangles
- vC0A = verts1[commonIdxA[0]].clone();
+ // Fetch and copy, write-back to triangles
+ vC0A = verts1[commonIdxA[0]].copy();
verts1[commonIdxA[0]] = vC0A;
verts2[commonIdxB[0]] = vC0A;
- vC1A = verts1[commonIdxA[1]].clone();
+ vC1A = verts1[commonIdxA[1]].copy();
verts1[commonIdxA[1]] = vC1A;
verts2[commonIdxB[1]] = vC1A;
- vOA = verts1[otherIdxA].clone();
+ vOA = verts1[otherIdxA].copy();
verts1[otherIdxA] = vOA;
- vOB = verts2[otherIdxB].clone();
+ vOB = verts2[otherIdxB].copy();
verts2[otherIdxB] = vOB;
}