Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32366/src/net/sourceforge/bprocessor/gl/view
Modified Files:
View.java
Log Message:
Coloring intersection-points
Index: View.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -d -r1.83 -r1.84
*** View.java 3 May 2006 10:11:25 -0000 1.83
--- View.java 3 May 2006 11:01:27 -0000 1.84
***************
*** 99,102 ****
--- 99,109 ----
public static final float[] TARGET_COLOR = new float[] {0.8f, 0.8f, 0.1f};
+ /** Used for vertices on edges */
+ public static final float[] EDGE_MIDPOINT_COLOR = new float[] {0.1f, 0.8f, 0.8f};
+
+ /** Used for vertices on edge-intersections */
+ public static final float[] EDGE_INTERSECTION_COLOR = new float[] {0.8f, 0.1f, 0.8f};
+
+
/** Used for constructor objects */
public static final float [] CONSTRUCTOR_COLOR = new float[] {0.8f, 0.7f, 0.6f, 0.50f};
***************
*** 706,714 ****
// draw target
if (target != null) {
! if (colorMap.containsKey(target)) {
! gl.glColor3fv((float[])colorMap.get(target));
! } else {
! gl.glColor3fv(targetColor);
! }
drawObject(target);
}
--- 713,717 ----
// draw target
if (target != null) {
! gl.glColor3fv(targetColor);
drawObject(target);
}
|