[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model ClippingPlane.java, 1.17, 1.18
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-02-19 15:50:28
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22671/src/net/sourceforge/bprocessor/model Modified Files: ClippingPlane.java Log Message: improved the interaction in the controlled move tool Index: ClippingPlane.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ClippingPlane.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ClippingPlane.java 31 Jan 2007 21:27:30 -0000 1.17 --- ClippingPlane.java 19 Feb 2007 15:50:14 -0000 1.18 *************** *** 103,106 **** --- 103,114 ---- /** + * gets the normal of the clippingplane + * @return the normal + */ + public Vertex getNormal() { + return cs.getN().copy(); + } + + /** * Update this clipping from the defining coordinatesystem attribute */ *************** *** 319,323 **** /** {@inheritDoc} */ public Vertex canMove(double x, double y, double z, Collection entities) { ! return new Vertex(x, y, z).projectOnto(plane.normal()); } --- 327,331 ---- /** {@inheritDoc} */ public Vertex canMove(double x, double y, double z, Collection entities) { ! return (new Vertex(x, y, z).projectOnto(getPlane().normal())); } |