[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl GLView.java,1.19,1.20
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2005-10-30 15:55:59
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19988/src/net/sourceforge/bprocessor/gl Modified Files: GLView.java Log Message: Improved hit detection of vertices Uses different colors for back and front of surfaces in LIGHTING_MODE Added snap-functionality in PencilTool when drawing holes on surfaces Length is now millimeter (because the . is not accepted in length field) Index: GLView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLView.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** GLView.java 24 Oct 2005 10:27:28 -0000 1.19 --- GLView.java 30 Oct 2005 15:55:40 -0000 1.20 *************** *** 212,216 **** */ public void setText(double d) { ! super.setText(Double.toString(d)); } --- 212,217 ---- */ public void setText(double d) { ! int mm = (int) (d * 1000.0); ! super.setText(Integer.toString(mm)); } *************** *** 222,226 **** try { double d = Double.parseDouble(super.getText()); ! return d; } catch (NumberFormatException e) { log.warn(e); --- 223,227 ---- try { double d = Double.parseDouble(super.getText()); ! return (d / 1000); } catch (NumberFormatException e) { log.warn(e); |