Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22647/src/net/sourceforge/bprocessor/gl/model
Modified Files:
ClippingPlane.java
Log Message:
ClippingPlane Defined by its coordinate system - ClippinPlane.update recalculates corners and plane
Index: ClippingPlane.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model/ClippingPlane.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ClippingPlane.java 6 Nov 2005 16:33:44 -0000 1.2
--- ClippingPlane.java 25 Nov 2005 17:03:32 -0000 1.3
***************
*** 44,49 ****
public ClippingPlane(CoordinateSystem system) {
this.system = system;
! this.plane = system.plane();
! findCorners();
}
--- 44,48 ----
public ClippingPlane(CoordinateSystem system) {
this.system = system;
! update();
}
***************
*** 57,60 ****
--- 56,76 ----
/**
+ * Getter for the origin
+ * @return The origin
+ */
+ public Vertex origin() {
+ return system.origin();
+ }
+
+ /**
+ * Update this clipping from the defining coordinatesystem attribute
+ *
+ */
+ public void update() {
+ plane = system.plane();
+ findCorners();
+ }
+
+ /**
* Set the number clipping plane this plane represents in the GL
* @param number The clipping plane number
|