Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13055
Modified Files:
RectTool.java
Log Message:
corrected error that made the program crash
Index: RectTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/RectTool.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** RectTool.java 21 Apr 2006 14:56:06 -0000 1.7
--- RectTool.java 21 Apr 2006 15:06:38 -0000 1.8
***************
*** 50,53 ****
--- 50,59 ----
Vertex d = start.minus(end);
+ /* So no edges are created with null vertices */
+ if (Math.abs(d.getX()) < 0.00001 &&
+ Math.abs(d.getY()) < 0.00001 &&
+ Math.abs(d.getZ()) < 0.00001) {
+ return edges;
+ }
Vertex v1 = null;
Vertex v3 = null;
|