[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java,1.57,1.58
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-02-06 14:27:10
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5071/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Draws interior mesh in spaces. PopupMenu for adding LayerModellor (does not work properly yet). Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** View.java 2 Feb 2006 14:18:31 -0000 1.57 --- View.java 6 Feb 2006 14:26:56 -0000 1.58 *************** *** 14,17 **** --- 14,18 ---- import net.sourceforge.bprocessor.model.CoordinateSystem; + import net.sourceforge.bprocessor.model.Mesh; import net.sourceforge.bprocessor.model.Plane; import net.sourceforge.bprocessor.model.Camera; *************** *** 1307,1313 **** * Draw all edges * @param gld The GLDrawable */ ! private void drawEdges(GLDrawable gld) { ! Collection edges = Project.getInstance().getEdges(); GL gl = gld.getGL(); GLU glu = gld.getGLU(); --- 1308,1314 ---- * Draw all edges * @param gld The GLDrawable + * @param edges The edges */ ! private void drawEdges(GLDrawable gld, Collection edges) { GL gl = gld.getGL(); GLU glu = gld.getGLU(); *************** *** 1462,1465 **** --- 1463,1472 ---- while (spaceIter.hasNext()) { Space space = (Space) spaceIter.next(); + Mesh interior = space.getInterior(); + if (interior != null) { + gl.glColor3fv(CONSTRUCTOR_COLOR); + drawSurfaces(gld, interior.getSurfaces(), BOTH); + drawEdges(gld, interior.getEdges()); + } } } |