[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Command.java, 1.42, 1.43
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-11-28 21:25:38
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32589/src/net/sourceforge/bprocessor/model Modified Files: Command.java Log Message: extrude inserts geometry Index: Command.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Command.java,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** Command.java 28 Nov 2007 18:11:04 -0000 1.42 --- Command.java 28 Nov 2007 21:25:41 -0000 1.43 *************** *** 1485,1493 **** public void evaluate() { double distance = parameters.getDouble("distance"); Surface bottom = (Surface) surface.copy(new HashMap()); Prism prism = extrude(bottom, distance); ! Space union = new Space("Extrusion", Space.CONSTRUCTION, true); ! Shape.addTo(union, prism.surfaces()); ! surface.getOwner().add(union); } } --- 1485,1496 ---- public void evaluate() { double distance = parameters.getDouble("distance"); + Space owner = surface.getOwner(); Surface bottom = (Surface) surface.copy(new HashMap()); Prism prism = extrude(bottom, distance); ! for (Surface current : prism.surfaces()) { ! if (current != surface) { ! owner.insert(current); ! } ! } } } |