Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6606/src/net/sourceforge/bprocessor/gl/model
Modified Files:
ClippingPlane.java
Log Message:
Name removed Surface, Edge, and Vertex
Work done on extrudetool
Index: ClippingPlane.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model/ClippingPlane.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ClippingPlane.java 28 Nov 2005 22:24:51 -0000 1.5
--- ClippingPlane.java 19 Dec 2005 07:51:30 -0000 1.6
***************
*** 142,149 ****
}
}
! Vertex v1 = new Vertex("", minX - 1, minY - 1, 0.0);
! Vertex v2 = new Vertex("", minX - 1, maxY + 1, 0.0);
! Vertex v3 = new Vertex("", maxX + 1, maxY + 1, 0.0);
! Vertex v4 = new Vertex("", maxX + 1, minY - 1, 0.0);
v1 = system.unTranslate(v1);
v2 = system.unTranslate(v2);
--- 142,149 ----
}
}
! Vertex v1 = new Vertex(minX - 1, minY - 1, 0.0);
! Vertex v2 = new Vertex(minX - 1, maxY + 1, 0.0);
! Vertex v3 = new Vertex(maxX + 1, maxY + 1, 0.0);
! Vertex v4 = new Vertex(maxX + 1, minY - 1, 0.0);
v1 = system.unTranslate(v1);
v2 = system.unTranslate(v2);
***************
*** 156,223 ****
corners.add(v4);
}
-
- /**
- * Find a lot of corners among intersections
- */
- public void findManyCorners() {
- log.info(plane);
- Collection c = findIntersections();
- Iterator it = c.iterator();
- double minX = Integer.MAX_VALUE;
- double minY = Integer.MAX_VALUE;
- double minZ = Integer.MAX_VALUE;
- double maxX = Integer.MIN_VALUE;
- double maxY = Integer.MIN_VALUE;
- double maxZ = Integer.MIN_VALUE;
- while (it.hasNext()) {
- Vertex v = (Vertex)it.next();
- log.info(v);
- if (v.getX() < minX) {
- minX = v.getX();
- }
- if (v.getX() > maxX) {
- maxX = v.getX();
- }
- if (v.getY() < minY) {
- minY = v.getY();
- }
- if (v.getY() > maxY) {
- maxY = v.getY();
- }
- if (v.getZ() < minZ) {
- minZ = v.getZ();
- }
- if (v.getZ() > maxZ) {
- maxZ = v.getZ();
- }
- }
-
- double[] abcd = plane.getDoublev();
- corners = new ArrayList();
- if (Math.abs(minX * abcd[0] + minY * abcd[1] + maxZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v1", minX, minY, maxZ));
- }
- if (Math.abs(minX * abcd[0] + maxY * abcd[1] + maxZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v2", minX, maxY, maxZ));
- }
- if (Math.abs(minX * abcd[0] + minY * abcd[1] + minZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v3", minX, minY, minZ));
- }
- if (Math.abs(minX * abcd[0] + maxY * abcd[1] + minZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v4", minX, maxY, minZ));
- }
- if (Math.abs(maxX * abcd[0] + minY * abcd[1] + minZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v7", maxX, minY, minZ));
- }
- if (Math.abs(maxX * abcd[0] + maxY * abcd[1] + minZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v8", maxX, maxY, minZ));
- }
- if (Math.abs(maxX * abcd[0] + minY * abcd[1] + maxZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v5", maxX, minY, maxZ));
- }
- if (Math.abs(maxX * abcd[0] + maxY * abcd[1] + maxZ * abcd[2] + abcd[3]) < 0.001) {
- corners.add(new Vertex("v6", maxX, maxY, maxZ));
- }
- }
/**
--- 156,159 ----
|