Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19445/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
AbstractPencil.java
Log Message:
Fixed bug in creating orthogonal constructor
Index: AbstractPencil.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractPencil.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** AbstractPencil.java 19 Jul 2006 12:04:17 -0000 1.41
--- AbstractPencil.java 19 Jul 2006 13:42:19 -0000 1.42
***************
*** 430,433 ****
--- 430,435 ----
constructors.add(parrallel);
}
+
+
Plane plane;
***************
*** 439,442 ****
--- 441,445 ----
CoordinateSystem system = plane.coordinateSystem();
+
Vertex direction = parrallel.getDirection();
direction = system.translate(direction);
***************
*** 445,449 ****
direction.setX(-y);
direction.setY(x);
! system.unTranslate(direction);
direction.scale(50 / direction.length());
Edge orthogonal = null;
--- 448,452 ----
direction.setX(-y);
direction.setY(x);
! direction = system.unTranslate(direction);
direction.scale(50 / direction.length());
Edge orthogonal = null;
|