[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.270, 1.271
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-12-13 08:21:38
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv382/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: final grid algorithm Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.270 retrieving revision 1.271 diff -C2 -d -r1.270 -r1.271 *** View.java 12 Dec 2007 12:56:09 -0000 1.270 --- View.java 13 Dec 2007 08:21:40 -0000 1.271 *************** *** 1473,1477 **** Vertex cross = v1.cross(v2); if (!cross.isZero()) { ! Edge intersect = e1.intersection(e2); if (intersect != null) { if (intersect.getLength() < 0.0000001) { --- 1473,1477 ---- Vertex cross = v1.cross(v2); if (!cross.isZero()) { ! Edge intersect = e1.shortestEdge(e2); if (intersect != null) { if (intersect.getLength() < 0.0000001) { *************** *** 1507,1511 **** } { ! Edge intersect = current.intersection(ray); Vertex intersection = intersect.getFrom(); return new Intersection(intersection, Intersection.EDGE, current); --- 1507,1511 ---- } { ! Edge intersect = current.shortestEdge(ray); Vertex intersection = intersect.getFrom(); return new Intersection(intersection, Intersection.EDGE, current); |