Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11320/src/net/sourceforge/bprocessor/gl/view
Modified Files:
View.java
Log Message:
Fixed hit-detection problem with hitting edges, not part of surface
Index: View.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v
retrieving revision 1.100
retrieving revision 1.101
diff -C2 -d -r1.100 -r1.101
*** View.java 7 Jul 2006 14:03:23 -0000 1.100
--- View.java 10 Jul 2006 13:30:00 -0000 1.101
***************
*** 1450,1454 ****
}
if (selectMode == EDGES || selectMode == ALL) {
-
if (space != null) {
Set es = new HashSet();
--- 1450,1453 ----
***************
*** 1461,1470 ****
}
}
! Collection surfs = space.getSurfaces();
! Iterator surfsIt = surfs.iterator();
! while (surfsIt.hasNext()) {
! Surface current = (Surface) surfsIt.next();
! es.addAll(current.getEdges());
! }
Iterator it = es.iterator();
gl.glColor3fv(lineColor);
--- 1460,1473 ----
}
}
!
! // Collection surfs = space.getSurfaces();
! // Iterator surfsIt = surfs.iterator();
! // while (surfsIt.hasNext()) {
! // Surface current = (Surface) surfsIt.next();
! // es.addAll(current.getEdges());
! // }
!
! es.addAll(space.getEdges());
!
Iterator it = es.iterator();
gl.glColor3fv(lineColor);
***************
*** 1820,1824 ****
Object current = getName(id);
-
if (!unWantedEntities.contains(current)) {
if (current instanceof Surface) {
--- 1823,1826 ----
|