[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool AltMoveTool.java, 1.8, 1.9
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-03-14 10:22:17
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17777/src/net/sourceforge/bprocessor/gl/tool Modified Files: AltMoveTool.java Log Message: Improved handling of relations Index: AltMoveTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AltMoveTool.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** AltMoveTool.java 12 Mar 2007 08:32:43 -0000 1.8 --- AltMoveTool.java 14 Mar 2007 10:22:08 -0000 1.9 *************** *** 24,28 **** import net.sourceforge.bprocessor.model.Plane; import net.sourceforge.bprocessor.model.Project; - import net.sourceforge.bprocessor.model.Relation; import net.sourceforge.bprocessor.model.Selection; import net.sourceforge.bprocessor.model.Space; --- 24,27 ---- *************** *** 107,119 **** Space space = surface.getOwner(); ! Collection<CoordinateSystem> systems = space.getCoordinateSystems(); ! for (CoordinateSystem current : systems) { ! Collection<Relation> relations = current.relations(); ! for (Relation relation : relations) { ! if (relation.geometric() == surface) { ! system = current; ! } ! } ! } vertices = surface.collect(); --- 106,110 ---- Space space = surface.getOwner(); ! system = CoordinateSystem.systemOf(surface); vertices = surface.collect(); |