[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Surface.java, 1.116, 1.117
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-10-22 14:32:59
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8737/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Log Message: New extrusion tool: - Uses the new Space.insert() operations that integrates new geometry with existing geometry. - Direction of extrusion can be changed during extrusion Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** Surface.java 19 Oct 2006 09:56:21 -0000 1.116 --- Surface.java 22 Oct 2006 14:32:47 -0000 1.117 *************** *** 457,460 **** --- 457,479 ---- /** + * Extrude with holes + * @param delta Distance to extrude + * @param sides Collection of extruded sides + * @param tops Collection of extruede tops + * @return Extruded top + */ + public Surface extrusionall(double delta, Set sides, Set tops) { + Surface top = extrusion(delta, sides); + tops.add(top); + Iterator iter = getHoles().iterator(); + while (iter.hasNext()) { + Surface hole = (Surface) iter.next(); + Surface holetop = hole.extrusionall(delta, sides, tops); + top.addHole(holetop); + } + return top; + } + + /** * Extrusion * @param delta Dinstance |