[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool AbstractPencil.java,1.19,1.20
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2006-03-30 07:41:30
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25032/src/net/sourceforge/bprocessor/gl/tool Modified Files: AbstractPencil.java Log Message: Improvements of AbstractPencil Index: AbstractPencil.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractPencil.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** AbstractPencil.java 30 Mar 2006 06:28:41 -0000 1.19 --- AbstractPencil.java 30 Mar 2006 07:41:27 -0000 1.20 *************** *** 60,63 **** --- 60,66 ---- protected Intersection incident; + /** Work plane */ + protected Plane plane; + /** Number */ protected String number; *************** *** 73,77 **** public AbstractPencil(GLView glv, Cursor cursor) { super(glv, cursor); ! timer = new Timer(1000, new TargetAction()); timer.setRepeats(false); } --- 76,80 ---- public AbstractPencil(GLView glv, Cursor cursor) { super(glv, cursor); ! timer = new Timer(500, new TargetAction()); timer.setRepeats(false); } *************** *** 297,301 **** if (incident != null) { constructors.addAll(xyz(incident.vertex())); ! if (incident.type() == Intersection.EDGE_MIDPOINT) { Edge edge = (Edge) incident.object(); Vertex v = edge.getDirection(); --- 300,304 ---- if (incident != null) { constructors.addAll(xyz(incident.vertex())); ! if (incident.hasEdge()) { Edge edge = (Edge) incident.object(); Vertex v = edge.getDirection(); *************** *** 413,417 **** break; case Intersection.EDGE: ! target = intersection.object(); break; case Intersection.SURFACE: --- 416,425 ---- break; case Intersection.EDGE: ! Edge edge = (Edge) intersection.object(); ! if (edge.getConstructor()) { ! target = current; ! } else { ! target = intersection.object(); ! } break; case Intersection.SURFACE: *************** *** 578,581 **** --- 586,590 ---- */ public void cleanUp() { + plane = null; start = null; current = null; |