Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3596/src/net/sourceforge/bprocessor/gl/view
Modified Files:
View.java
Log Message:
made clipplanes more visible and changed the way edges and surfaces crossing the plane is found
Index: View.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v
retrieving revision 1.160
retrieving revision 1.161
diff -C2 -d -r1.160 -r1.161
*** View.java 7 Nov 2006 10:51:19 -0000 1.160
--- View.java 13 Nov 2006 14:56:11 -0000 1.161
***************
*** 2160,2164 ****
Collection corners = clipplane.getCorners();
{
! gl.glLineWidth(2.0f);
gl.glBegin(GL.GL_LINE_LOOP);
Iterator it = corners.iterator();
--- 2160,2164 ----
Collection corners = clipplane.getCorners();
{
! gl.glLineWidth(3.0f);
gl.glBegin(GL.GL_LINE_LOOP);
Iterator it = corners.iterator();
***************
*** 2171,2174 ****
--- 2171,2175 ----
gl.glEnd();
}
+ gl.glLineWidth(1.5f);
if (clipplane.isActive()) {
Collection lines = clipplane.getLines();
***************
*** 2177,2181 ****
Edge e = (Edge)it.next();
if (e.getStrippled()) {
! drawConstructor(e);
} else {
drawEdge(e);
--- 2178,2184 ----
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);
|