[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.238, 1.239
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-02 13:51:41
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31792/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: small refactor Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.238 retrieving revision 1.239 diff -C2 -d -r1.238 -r1.239 *** View.java 2 Oct 2007 13:04:21 -0000 1.238 --- View.java 2 Oct 2007 13:51:43 -0000 1.239 *************** *** 2331,2359 **** */ private void drawClipplane(ClippingPlane clipplane) { ! Collection corners = clipplane.getCorners(); ! { ! gl.glLineWidth(3.0f); ! gl.glBegin(GL.GL_LINE_LOOP); ! Iterator it = corners.iterator(); ! while (it.hasNext()) { ! Vertex v = (Vertex)it.next(); ! gl.glVertex3d(v.getX(), ! v.getY(), ! v.getZ()); ! } ! gl.glEnd(); } ! gl.glLineWidth(1.5f); if (clipplane.isActive()) { ! Collection lines = clipplane.getLines(); ! Iterator it = lines.iterator(); ! while (it.hasNext()) { ! Edge e = (Edge)it.next(); ! if (e.getStrippled()) { gl.glEnable(GL.GL_LINE_STIPPLE); ! drawEdge(e); gl.glDisable(GL.GL_LINE_STIPPLE); } else { ! drawEdge(e); } } --- 2331,2353 ---- */ private void drawClipplane(ClippingPlane clipplane) { ! Collection<Vertex> corners = clipplane.getCorners(); ! gl.glLineWidth(3.0f); ! gl.glBegin(GL.GL_LINE_LOOP); ! for (Vertex current : corners) { ! gl.glVertex3d(current.getX(), ! current.getY(), ! current.getZ()); } ! gl.glEnd(); if (clipplane.isActive()) { ! gl.glLineWidth(1.5f); ! Collection<Edge> lines = clipplane.getLines(); ! for (Edge current : lines) { ! if (current.getStrippled()) { gl.glEnable(GL.GL_LINE_STIPPLE); ! drawEdge(current); gl.glDisable(GL.GL_LINE_STIPPLE); } else { ! drawEdge(current); } } |