Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27604/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
SpaceTool.java
Log Message:
Removed some unecessary code
Index: SpaceTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SpaceTool.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** SpaceTool.java 3 Oct 2006 10:03:59 -0000 1.43
--- SpaceTool.java 5 Oct 2006 07:46:35 -0000 1.44
***************
*** 290,293 ****
--- 290,294 ----
Surface top;
Surface bottom;
+ Space space = Project.getInstance().world();
for (int i = 0; i < axisDivisions; i++) {
***************
*** 298,318 ****
bv[i] = new Vertex(x, y, z);
tv[i] = new Vertex(x, y, z + height);
! Project.getInstance().add(bv[i]);
! Project.getInstance().add(tv[i]);
}
for (int i = 0; i < axisDivisions; i++) {
be[i] = new Edge(bv[i], bv[(i + 1) % axisDivisions]);
! Project.getInstance().add(be[i]);
}
for (int i = 0; i < axisDivisions; i++) {
te[i] = new Edge(tv[i], tv[(i + 1) % axisDivisions]);
! Project.getInstance().add(te[i]);
}
for (int i = 0; i < axisDivisions; i++) {
se[i] = new Edge(bv[i], tv[i]);
! Project.getInstance().add(se[i]);
}
--- 299,319 ----
bv[i] = new Vertex(x, y, z);
tv[i] = new Vertex(x, y, z + height);
! space.add(bv[i]);
! space.add(tv[i]);
}
for (int i = 0; i < axisDivisions; i++) {
be[i] = new Edge(bv[i], bv[(i + 1) % axisDivisions]);
! space.add(be[i]);
}
for (int i = 0; i < axisDivisions; i++) {
te[i] = new Edge(tv[i], tv[(i + 1) % axisDivisions]);
! space.add(te[i]);
}
for (int i = 0; i < axisDivisions; i++) {
se[i] = new Edge(bv[i], tv[i]);
! space.add(se[i]);
}
***************
*** 324,338 ****
edges.add(se[i]);
sf[i] = new Surface(edges);
! Project.getInstance().world().insert(sf[i]);
}
{
List edges = new LinkedList(Arrays.asList(be));
bottom = new Surface(edges);
! Project.getInstance().world().insert(bottom);
}
{
List edges = new LinkedList(Arrays.asList(te));
top = new Surface(edges);
! Project.getInstance().world().insert(top);
}
}
--- 325,339 ----
edges.add(se[i]);
sf[i] = new Surface(edges);
! space.insert(sf[i]);
}
{
List edges = new LinkedList(Arrays.asList(be));
bottom = new Surface(edges);
! space.insert(bottom);
}
{
List edges = new LinkedList(Arrays.asList(te));
top = new Surface(edges);
! space.insert(top);
}
}
|