Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30959/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
MultiExtrudeTool.java
Log Message:
fixed small calculation to the extrusion surface
Index: MultiExtrudeTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/MultiExtrudeTool.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** MultiExtrudeTool.java 15 May 2006 15:32:16 -0000 1.18
--- MultiExtrudeTool.java 24 May 2006 19:37:33 -0000 1.19
***************
*** 29,33 ****
import net.sourceforge.bprocessor.model.Direction;
import net.sourceforge.bprocessor.model.Edge;
- import net.sourceforge.bprocessor.model.Plane;
import net.sourceforge.bprocessor.model.Project;
import net.sourceforge.bprocessor.model.Selection;
--- 29,32 ----
***************
*** 221,225 ****
Direction d = (Direction)iter.next();
t = start.vertex().minus(d.getVertex()).dot(normal);
! log.info(d.getVertex() + " were " + t + " away");
double delta = t - to;
Vertex movement = d.getDirection();
--- 220,224 ----
Direction d = (Direction)iter.next();
t = start.vertex().minus(d.getVertex()).dot(normal);
! log.info(d.getVertex() + " were " + t + " away from " + start);
double delta = t - to;
Vertex movement = d.getDirection();
***************
*** 241,245 ****
t = start.vertex().minus(which.getVertex()).dot(normal);
double delta = t - to;
! log.info(which.getVertex() + " were " + t + " away");
Vertex movement = which.getDirection();
Vertex v = movement.copy();
--- 240,244 ----
t = start.vertex().minus(which.getVertex()).dot(normal);
double delta = t - to;
! log.info(which.getVertex() + " were " + t + " away from " + start);
Vertex movement = which.getDirection();
Vertex v = movement.copy();
***************
*** 378,383 ****
while (dirs.hasNext()) {
Direction dir = (Direction)dirs.next();
! Plane p = ((Surface)current.object()).plane();
! Vertex v = p.intersection(dir.getVertex(), dir.getDirection());
if (v == null) {
wereInside = false;
--- 377,383 ----
while (dirs.hasNext()) {
Direction dir = (Direction)dirs.next();
! Surface s = (Surface)current.object();
! Vertex v = s.intersection(new Edge(dir.getVertex(),
! dir.getDirection().minus(dir.getVertex())));
if (v == null) {
wereInside = false;
***************
*** 397,400 ****
--- 397,401 ----
i++;
}
+ return;
}
}
|