[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.212, 1.213
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-05-30 17:30:03
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8025/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: added a boolean field telling the view if it is in debug mode (make it draw normals) or not Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.212 retrieving revision 1.213 diff -C2 -d -r1.212 -r1.213 *** View.java 24 May 2007 10:41:04 -0000 1.212 --- View.java 30 May 2007 17:29:53 -0000 1.213 *************** *** 386,389 **** --- 386,391 ---- private List<Integer> deletedLists = new LinkedList<Integer>(); + private boolean debug = false; + static { setTransparency(100); *************** *** 1661,1664 **** --- 1663,1671 ---- gl.glNormal3d(norm.getX(), norm.getY(), norm.getZ()); } + if (debug) { + Vertex from = s.getEdges().get(0).getFrom(); + Vertex to = from.add(norm); + drawEdge(new Edge(from, to)); + } drawContour(s, tess); Collection innerSurfaces = s.getHoles(); |