From ac32c044ea2c69cd97b4ac95c5bbeabb8af183dc Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sat, 15 Jun 2013 09:25:53 -0700 Subject: j3dcore: use a trivial little struct instead of FastVector Pull out a struct to hold an int[] array and a count, remove the numContours variable that was redundant. Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/Font3D.java | 43 +++++++++++++++++++-------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/src/classes/share/javax/media/j3d/Font3D.java b/src/classes/share/javax/media/j3d/Font3D.java index e0cc620..ecdc352 100644 --- a/src/classes/share/javax/media/j3d/Font3D.java +++ b/src/classes/share/javax/media/j3d/Font3D.java @@ -35,13 +35,13 @@ import java.awt.geom.AffineTransform; import java.awt.geom.PathIterator; import java.awt.geom.Rectangle2D; import java.util.ArrayList; +import java.util.Arrays; import java.util.Hashtable; import javax.vecmath.Point3d; import javax.vecmath.Point3f; import javax.vecmath.Vector3f; -import com.sun.j3d.internal.FastVector; import com.sun.j3d.utils.geometry.GeometryInfo; import com.sun.j3d.utils.geometry.NormalGenerator; @@ -200,6 +200,28 @@ Hashtable geomHash = new Hashtable geomHash = new Hashtable geomHash = new Hashtable geomHash = new Hashtable 0){ - contours.addElement(num); + contours.add(num); num = 0; - numContours++; } num++; numPoints++; @@ -391,18 +411,15 @@ Hashtable geomHash = new Hashtable geomHash = new Hashtable triangData = new ArrayList(); -- cgit v1.2.3