[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool AbstractPencil.java, 1.96, 1.97
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-11-12 14:47:33
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29873/src/net/sourceforge/bprocessor/gl/tool Modified Files: AbstractPencil.java Log Message: active coordinate-system Index: AbstractPencil.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractPencil.java,v retrieving revision 1.96 retrieving revision 1.97 diff -C2 -d -r1.96 -r1.97 *** AbstractPencil.java 20 Sep 2007 07:45:06 -0000 1.96 --- AbstractPencil.java 12 Nov 2007 14:47:36 -0000 1.97 *************** *** 196,199 **** --- 196,201 ---- } + normal = Project.getInstance().getActiveCoordinateSystem().getN(); + work = new Plane(normal.getX(), normal.getY(), *************** *** 204,208 **** } else { ! work = new Plane(0, 0, 1, 0); } } --- 206,210 ---- } else { ! work = Project.getInstance().getActiveCoordinateSystem().plane(); } } *************** *** 457,466 **** protected List computeConstructors() { List<Constructor> constructors = new LinkedList<Constructor>(); if (start != null) { ! constructors.add(new CoordinateSystem(start.vertex().copy())); } if (incident != null) { if (start == null || (!start.equalEps(incident))) { ! constructors.add(new CoordinateSystem(incident.vertex().copy())); } } --- 459,469 ---- protected List computeConstructors() { List<Constructor> constructors = new LinkedList<Constructor>(); + CoordinateSystem cs = Project.getInstance().getActiveCoordinateSystem(); if (start != null) { ! constructors.add(cs.copy(start.vertex().copy())); } if (incident != null) { if (start == null || (!start.equalEps(incident))) { ! constructors.add(cs.copy(incident.vertex().copy())); } } |