[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.111, 1.112
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-07-18 12:43:15
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15893/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Renamed View.Point to TesselatorPoint Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.111 retrieving revision 1.112 diff -C2 -d -r1.111 -r1.112 *** View.java 18 Jul 2006 11:18:58 -0000 1.111 --- View.java 18 Jul 2006 12:43:13 -0000 1.112 *************** *** 1208,1215 **** Vertex current = (Vertex) iter.next(); double[] coords = new double[] {current.getX(), current.getY(), current.getZ()}; ! glu.gluTessVertex(tess, coords, new Point(coords[0], coords[1], coords[2])); } double[] coords = new double[] {first.getX(), first.getY(), first.getZ()}; ! glu.gluTessVertex(tess, coords, new Point(coords[0], coords[1], coords[2])); glu.gluTessEndContour(tess); } --- 1208,1215 ---- Vertex current = (Vertex) iter.next(); double[] coords = new double[] {current.getX(), current.getY(), current.getZ()}; ! glu.gluTessVertex(tess, coords, new TesselatorPoint(coords[0], coords[1], coords[2])); } double[] coords = new double[] {first.getX(), first.getY(), first.getZ()}; ! glu.gluTessVertex(tess, coords, new TesselatorPoint(coords[0], coords[1], coords[2])); glu.gluTessEndContour(tess); } *************** *** 1598,1601 **** --- 1598,1602 ---- popName(gl); } + } } *************** *** 2225,2229 **** * representation of a 3D point. */ ! private class Point { /** the x coordinate*/ private double x; --- 2226,2230 ---- * representation of a 3D point. */ ! private class TesselatorPoint { /** the x coordinate*/ private double x; *************** *** 2234,2243 **** /** ! * Constructor for a point * @param x the x coordinate. * @param y the y coordinate. * @param z the z coordinate. */ ! public Point(double x, double y, double z) { this.x = x; this.y = y; --- 2235,2244 ---- /** ! * Constructor for a tesselator-point * @param x the x coordinate. * @param y the y coordinate. * @param z the z coordinate. */ ! public TesselatorPoint(double x, double y, double z) { this.x = x; this.y = y; *************** *** 2300,2305 **** */ public void vertex(Object vertex) { ! if (vertex instanceof Point) { ! Point p = (Point)vertex; gl.glVertex3d(p.x, p.y, p.z); } else { --- 2301,2306 ---- */ public void vertex(Object vertex) { ! if (vertex instanceof TesselatorPoint) { ! TesselatorPoint p = (TesselatorPoint)vertex; gl.glVertex3d(p.x, p.y, p.z); } else { |