[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool SelectTool.java,1.20,1.21
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2005-09-20 17:26:26
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9767 Modified Files: SelectTool.java Log Message: removed dead code Index: SelectTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SelectTool.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** SelectTool.java 14 Sep 2005 14:09:06 -0000 1.20 --- SelectTool.java 20 Sep 2005 17:26:08 -0000 1.21 *************** *** 91,95 **** if (e.getClickCount() >= 2 && target instanceof Surface) { ConstructionSpaceFacade csf = ConstructionSpaceFacade.getInstance(); ! ConstructionSpace cs = (ConstructionSpace)csf.findBySurface((Surface)target); Set s = cs.getSurfaces(); Iterator it = s.iterator(); --- 91,95 ---- if (e.getClickCount() >= 2 && target instanceof Surface) { ConstructionSpaceFacade csf = ConstructionSpaceFacade.getInstance(); ! ConstructionSpace cs = (ConstructionSpace)(csf.findBySurface((Surface)target)); Set s = cs.getSurfaces(); Iterator it = s.iterator(); *************** *** 167,200 **** protected void released(MouseEvent e) { //findTarget(e); ! } ! ! /** ! * Check if this cordinate collide with another vertex ! * @param coord The cordinate to check for collision at ! * @return The excisting vertex at coord, null if there ain't any ! */ ! protected Vertex vertexCollide(double[] coord) { ! Set vertexes = VertexFacade.getInstance().findByLocation(coord[0], ! coord[1], ! coord[2], ! EPSILON); ! Iterator it = vertexes.iterator(); ! while (it.hasNext()) { ! Vertex v = (Vertex)it.next(); ! return v; ! } ! return null; ! } ! ! /** ! * Check if a and b is as close as EPSILON ! * @param a The target ! * @param b The value ! * @return true if |a - b| < EPSILON false otherwise ! */ ! protected boolean collide(double a, double b) { ! return Math.abs(a - b) < EPSILON; ! } ! /** --- 167,171 ---- protected void released(MouseEvent e) { //findTarget(e); ! } /** |