[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool ControlledExtrudeTool.java, 1.3, 1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-09-27 12:20:21
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19559/src/net/sourceforge/bprocessor/gl/tool Modified Files: ControlledExtrudeTool.java Log Message: Added automation to remove one surface if two have the same edge list. Made controlled extrude extrude to the boundary and not just close to it Index: ControlledExtrudeTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ControlledExtrudeTool.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ControlledExtrudeTool.java 27 Sep 2007 10:49:17 -0000 1.3 --- ControlledExtrudeTool.java 27 Sep 2007 12:20:22 -0000 1.4 *************** *** 147,154 **** private void extrudeTo(Plane p) { double dist = p.distance(start.vertex()) * -1; ! if (dist < minExtrude) { p.moveDelta(dist - minExtrude); } ! if (dist > maxExtrude) { p.moveDelta(dist - maxExtrude); } --- 147,154 ---- private void extrudeTo(Plane p) { double dist = p.distance(start.vertex()) * -1; ! if (dist <= minExtrude) { p.moveDelta(dist - minExtrude); } ! if (dist >= maxExtrude) { p.moveDelta(dist - maxExtrude); } *************** *** 198,201 **** --- 198,204 ---- Mesh m = new Mesh(extrusion); owner.insert(m); + if (extrusion.isEmpty()) { + owner.simplify(); + } owner.changed(); Project.getInstance().checkpoint(); |