[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Command.java, 1.26, 1.27
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-11-13 09:03:46
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3859/src/net/sourceforge/bprocessor/model Modified Files: Command.java Log Message: Creates cube in local coordinatesystem Index: Command.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Command.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Command.java 13 Nov 2007 07:32:42 -0000 1.26 --- Command.java 13 Nov 2007 09:03:41 -0000 1.27 *************** *** 646,656 **** double h = parameters.getDouble("height"); double d = parameters.getDouble("depth"); double x = -w / 2; double y = -h / 2; double z = -d / 2; ! Vertex v0 = new Vertex(x, y, z); ! Vertex v1 = new Vertex(x + w, y, z); ! Vertex v2 = new Vertex(x + w, y + h, z); ! Vertex v3 = new Vertex(x, y + h, z); Edge e0 = new Edge(v0, v1); --- 646,657 ---- double h = parameters.getDouble("height"); double d = parameters.getDouble("depth"); + CoordinateSystem system = Project.getInstance().getActiveCoordinateSystem(); double x = -w / 2; double y = -h / 2; double z = -d / 2; ! Vertex v0 = system.unTranslate(new Vertex(x, y, z)); ! Vertex v1 = system.unTranslate(new Vertex(x + w, y, z)); ! Vertex v2 = system.unTranslate(new Vertex(x + w, y + h, z)); ! Vertex v3 = system.unTranslate(new Vertex(x, y + h, z)); Edge e0 = new Edge(v0, v1); |