[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool ExtrudeTool.java,1.8,1.9
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-02-02 14:18:40
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29670/src/net/sourceforge/bprocessor/gl/tool Modified Files: ExtrudeTool.java Log Message: Surface.normal() is normalized Ð length() = 1 Index: ExtrudeTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ExtrudeTool.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ExtrudeTool.java 25 Jan 2006 10:02:09 -0000 1.8 --- ExtrudeTool.java 2 Feb 2006 14:18:31 -0000 1.9 *************** *** 113,118 **** if (top != null) { Vertex normal = top.normal(); ! normal.scale(1 / normal.length()); ! normal.scale(delta / (normal.length() * normal.length())); top.move(normal.getX(), normal.getY(), normal.getZ()); } --- 113,117 ---- if (top != null) { Vertex normal = top.normal(); ! normal.scale(delta); top.move(normal.getX(), normal.getY(), normal.getZ()); } *************** *** 179,183 **** Vertex normal = top.normal(); Vertex origin = extrudeSurface.getFirstVertex(); - normal.scale(1 / normal.length()); while (iter.hasNext()) { Surface current = (Surface) iter.next(); --- 178,181 ---- *************** *** 221,225 **** normal = top.normal(); } - normal.scale(1 / normal.length()); View view = glv.getView(); Vertex from = view.toPlaneCoords(new double[] {prevX, prevY}, dragplane); --- 219,222 ---- |