[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Space.java, 1.96, 1.97
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-11-07 09:54:01
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9062/src/net/sourceforge/bprocessor/model Modified Files: Space.java Log Message: Ids reset during extrusion Background menu introduced Envelope can be propageted to space-level Index: Space.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v retrieving revision 1.96 retrieving revision 1.97 diff -C2 -d -r1.96 -r1.97 *** Space.java 6 Nov 2006 16:19:03 -0000 1.96 --- Space.java 7 Nov 2006 09:53:59 -0000 1.97 *************** *** 1205,1208 **** --- 1205,1220 ---- } + + /** + * Compute next id + * + */ + public void computeNextId() { + nextVertexId = Entity.maxId(vertices.values()) + 1; + nextEdgeId = Entity.maxId(edges.values()) + 1; + nextSurfaceId = Entity.maxId(surfaces.values()) + 1; + nextElementId = Entity.maxId(elements.values()) + 1; + } + /** * Add a surface to the envelope *************** *** 1605,1608 **** --- 1617,1633 ---- /** + * Copy the envelope of the owner + * + */ + public void copyOwnerEnvelope() { + Collection envelope = getEnvelope(); + Iterator iter = envelope.iterator(); + while (iter.hasNext()) { + Surface current = (Surface) iter.next(); + current.copyall(this); + } + } + + /** * Copy this space and return the copy * @param copiedVertices map of vertices and their copies. |