[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Plane.java,1.6,1.7
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2005-11-01 07:25:42
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17953/src/net/sourceforge/bprocessor/model Modified Files: Plane.java Log Message: minor change so that an edge only intersect if the intersection is in its extend (on the line) Index: Plane.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Plane.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Plane.java 20 Sep 2005 17:19:42 -0000 1.6 --- Plane.java 1 Nov 2005 07:25:35 -0000 1.7 *************** *** 47,50 **** --- 47,58 ---- /** + * Return a doublearray {a,b,c,d} + * @return The array + */ + public double[] getDoublev() { + return new double[]{a, b, c, d}; + } + + /** * Find the orthogonal plane to this plane * @param rayIn the ray into the view *************** *** 103,106 **** --- 111,117 ---- double v0 = -(a * x0 + b * y0 + c * z0 + d); double t = v0 / vd; + if (t < - 0.001 || t > 1.001) { + return null; + } Vertex i = new Vertex("intersection"); i.setX(x0 + t * xd); |