[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java,1.65,1.66
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-02-26 10:52:34
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23531/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Drawing elements Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** View.java 23 Feb 2006 14:59:41 -0000 1.65 --- View.java 26 Feb 2006 10:52:25 -0000 1.66 *************** *** 781,785 **** } } ! drawSpaces(gld); gl.glColor3fv(SELECTED_COLOR); --- 781,785 ---- } } ! //drawSpaces(gld); gl.glColor3fv(SELECTED_COLOR); *************** *** 893,898 **** --- 893,917 ---- private void drawSurfaces(GLDrawable gld, int side) { Collection surfaces = Project.getInstance().getSurfaces(); + Collection spaces = Project.getInstance().getSpaces(); drawSurfaces(gld, surfaces, side); drawSurfaces(gld, tempSurfaces, side); + drawInteriorSurfaces(gld, side, spaces); + } + + /** + * Draw interior surfaces + * @param gld The GLDrawable + * @param side The side of surfaces to draw + * @param spaces The spaces + */ + private void drawInteriorSurfaces(GLDrawable gld, int side, Collection spaces) { + Iterator iter = spaces.iterator(); + while (iter.hasNext()) { + Space current = (Space) iter.next(); + Mesh interior = current.getInterior(); + if (interior != null) { + drawSurfaces(gld, interior.getSurfaces(), side); + } + } } *************** *** 1489,1492 **** --- 1508,1514 ---- return false; } + if (front.getInterior() != null || back.getInterior() != null) { + return false; + } return true; } |