[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Command.java, 1.18, 1.19
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-11-01 12:02:51
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6373/src/net/sourceforge/bprocessor/model Modified Files: Command.java Log Message: Small change to subdivision command Index: Command.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Command.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Command.java 29 Oct 2007 18:08:32 -0000 1.18 --- Command.java 1 Nov 2007 12:02:48 -0000 1.19 *************** *** 492,512 **** } ! space.clear(); ! ! for (Surface quad : faces) { ! for (Edge current : quad.getEdges()) { ! if (current.from.getOwner() == null) { ! space.add(current.from); ! } ! if (current.to.getOwner() == null) { ! space.add(current.to); ! } ! if (current.getOwner() == null) { ! space.add(current); } } - space.add(quad); } Project.getInstance().changed(Project.getInstance()); } --- 492,524 ---- } ! if (envelope) { ! Collection<Surface> env = new LinkedList(space.getEnvelope()); ! for (Surface current : env) { ! current.delete(); ! } ! Space owner = space.getOwner(); ! for (Surface quad : faces) { ! owner.insert(quad); ! } ! } else { ! space.clear(); ! for (Surface quad : faces) { ! for (Edge current : quad.getEdges()) { ! if (current.from.getOwner() == null) { ! space.add(current.from); ! } ! if (current.to.getOwner() == null) { ! space.add(current.to); ! } ! if (current.getOwner() == null) { ! space.add(current); ! } } + space.add(quad); } } + + Project.getInstance().changed(Project.getInstance()); } |