Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2333/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
PencilTool.java
Log Message:
View3d.toCanvasCoords implemented - returns poin in XY plane
Index: PencilTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/PencilTool.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PencilTool.java 30 Aug 2005 13:20:09 -0000 1.4
--- PencilTool.java 31 Aug 2005 07:02:52 -0000 1.5
***************
*** 9,13 ****
--- 9,15 ----
import java.awt.event.MouseEvent;
+ import java.util.ArrayList;
import java.util.LinkedList;
+ import java.util.List;
import net.sourceforge.bprocessor.gl.GLView;
***************
*** 34,37 ****
--- 36,43 ----
private int factor = 0;
+ /** The current Edge list */
+ protected List edges;
+
+
/**
* Constructor
***************
*** 40,43 ****
--- 46,50 ----
public PencilTool(GLView glv) {
super(glv);
+ edges = new ArrayList();
}
***************
*** 88,96 ****
Transformation transformation = v.transformation();
if (selectedVertex != null) {
! Vertex projected = transformation.project(selectedVertex);
! Vertex unprojected = transformation.unProject(projected);
! System.out.println(selectedVertex.toString());
! System.out.println(projected.toString());
! System.out.println(unprojected.toString());
} else {
Plane xy = new Plane(0, 0, 1, 0);
--- 95,99 ----
Transformation transformation = v.transformation();
if (selectedVertex != null) {
! System.out.println(selectedVertex);
} else {
Plane xy = new Plane(0, 0, 1, 0);
***************
*** 106,112 ****
direction = transformation.unProject(direction);
direction = direction.minus(origin);
- System.out.println(origin.toString() + " " + direction.toString());
Vertex vertex = xy.intersection(origin, direction);
- System.out.println(vertex);
}
}
--- 109,113 ----
|