Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv537/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
SpaceTool.java
Log Message:
Refactored geometry insertion
Index: SpaceTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SpaceTool.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** SpaceTool.java 17 Oct 2006 09:11:15 -0000 1.56
--- SpaceTool.java 19 Oct 2006 09:56:14 -0000 1.57
***************
*** 698,701 ****
--- 698,708 ----
}
});
+ globals.put("back", new Builtin() {
+ public void evaluate(Environment env, Stack stack) {
+ Surface surface = (Surface) env.get(0);
+ Space space = (Space) env.get(1);
+ surface.setBackDomain(space);
+ }
+ });
globals.put("space", new Builtin() {
public void evaluate(Environment env, Stack stack) {
***************
*** 785,795 ****
Object result = stack.pop();
if (result instanceof Vertex) {
! result = space.insert((Vertex)result, true);
Selection.primary().add(result);
} else if (result instanceof Edge) {
! result = space.insert((Edge)result, true);
Selection.primary().add(result);
} else if (result instanceof Surface) {
! result = space.insert((Surface) result, true);
Selection.primary().add(result);
} else if (result instanceof Space) {
--- 792,802 ----
Object result = stack.pop();
if (result instanceof Vertex) {
! result = space.insert((Vertex)result);
Selection.primary().add(result);
} else if (result instanceof Edge) {
! result = space.insert((Edge)result);
Selection.primary().add(result);
} else if (result instanceof Surface) {
! result = space.insert((Surface) result);
Selection.primary().add(result);
} else if (result instanceof Space) {
|