Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28863/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
AbstractPencil.java
Log Message:
New mechanism for finding work plane
Index: AbstractPencil.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractPencil.java,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** AbstractPencil.java 5 Sep 2007 09:29:58 -0000 1.94
--- AbstractPencil.java 5 Sep 2007 11:18:50 -0000 1.95
***************
*** 187,194 ****
if (start != null) {
Vertex normal;
! if (Math.abs(n.getZ()) > 0.45) {
normal = new Vertex(0, 0, 1.0);
} else {
! normal = new Vertex(0, 0, 1.0);
}
--- 187,196 ----
if (start != null) {
Vertex normal;
! if (Math.abs(n.getZ()) > 0.47) {
normal = new Vertex(0, 0, 1.0);
} else {
! Vertex d = Project.getInstance().getCurrentCamera().getDirection();
! d.normalize();
! normal = d;
}
|