[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Surface.java, 1.183, 1.184
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-09-28 14:08:58
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22996/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Log Message: Added knowledge to isVertexBounded Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.183 retrieving revision 1.184 diff -C2 -d -r1.183 -r1.184 *** Surface.java 27 Sep 2007 13:22:25 -0000 1.183 --- Surface.java 28 Sep 2007 14:09:00 -0000 1.184 *************** *** 1281,1284 **** --- 1281,1290 ---- } } + //The vertex is part of another surface coplaner with this + for (Surface s : vertex.getSurfaces()) { + if (s != this && plane.contains(s)) { + return true; + } + } return false; case 2: *************** *** 1286,1295 **** for (Surface s : vertex.getSurfaces()) { if (this != s) { ! return false; } } break; default: ! break; } --- 1292,1313 ---- for (Surface s : vertex.getSurfaces()) { if (this != s) { ! return true; } } break; + case 1: + return true; default: ! // there are more than three edges connected to this edge ! // if they are all all parallel bound it else dont ! connected.removeAll(this.getEdges()); ! if (connected.size() == 2) { ! Iterator<Edge> iter = connected.iterator(); ! Edge e1 = iter.next(); ! Edge e2 = iter.next(); ! if (e1.parrallel(e2)) { ! return false; ! } ! } break; } |