From af0c5a2f9bdb2c79f132a2108bc42fbf9a569422 Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Thu, 9 Apr 2015 13:35:15 -0500 Subject: Font3D: declare local variables when they are used This will ease subsequent refactoring. --- src/javax/media/j3d/Font3D.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/javax/media/j3d/Font3D.java b/src/javax/media/j3d/Font3D.java index 4df6a6c..b9011e8 100644 --- a/src/javax/media/j3d/Font3D.java +++ b/src/javax/media/j3d/Font3D.java @@ -460,7 +460,6 @@ private static class IntVector { vertices = null; int[] contourCounts = new int[1]; - int currCoordIndex = 0, vertOffset = 0; ArrayList triangData = new ArrayList(); Point3f q1 = new Point3f(), q2 = new Point3f(), q3 = new Point3f(); @@ -471,6 +470,7 @@ private static class IntVector { } //Now loop thru each island, calling triangulator once per island. //Combine triangle data for all islands together in one object. + int vertOffset = 0; NormalGenerator ng = new NormalGenerator(); for (i = 0; i < islandCounts.length; i++) { contourCounts[0] = islandCounts[i].length; @@ -510,7 +510,7 @@ private static class IntVector { // last known non-degenerate normal Vector3f goodNormal = new Vector3f(); - + int currCoordIndex = 0; for (j=0;j < islandCounts.length;j++) { GeometryArray ga = triangData.get(j); vertOffset = ga.getVertexCount(); -- cgit v1.2.3