Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17162/src/net/sourceforge/bprocessor/model
Modified Files:
Line.java CoordinateSystem.java Constructor.java
Log Message:
CoordinateSystem.normalize() normalizes the vectors in the coordinate-system Ð keeping the direction of the i vector
Index: Constructor.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Constructor.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Constructor.java 10 Aug 2006 13:07:57 -0000 1.8
--- Constructor.java 11 Aug 2006 12:44:21 -0000 1.9
***************
*** 7,10 ****
--- 7,12 ----
package net.sourceforge.bprocessor.model;
+ import java.util.LinkedList;
+ import java.util.List;
import java.util.Set;
***************
*** 130,133 ****
--- 132,143 ----
/**
+ * @param dist dist
+ * @return list of handles
+ */
+ public List handles(double dist) {
+ return new LinkedList();
+ }
+
+ /**
* Handle
*/
Index: CoordinateSystem.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** CoordinateSystem.java 8 Aug 2006 12:05:10 -0000 1.22
--- CoordinateSystem.java 11 Aug 2006 12:44:21 -0000 1.23
***************
*** 67,73 ****
public CoordinateSystem(Vertex i, Vertex j, Vertex n, Vertex origin) {
super(origin);
! i.normalize();
! j.normalize();
! n.normalize();
this.i = i;
this.j = j;
--- 67,73 ----
public CoordinateSystem(Vertex i, Vertex j, Vertex n, Vertex origin) {
super(origin);
! //i.normalize();
! //j.normalize();
! //n.normalize();
this.i = i;
this.j = j;
***************
*** 77,80 ****
--- 77,90 ----
/**
+ * normalize vectors
+ */
+ public void normalize() {
+ j = n.cross(i);
+ i.normalize();
+ j.normalize();
+ n.normalize();
+ }
+
+ /**
* Constructor for CoordinateSystem that constructs a CoordinateSystem
* from two edges. The edges are assumed to have a common Vertex.
Index: Line.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Line.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Line.java 11 Aug 2006 08:23:22 -0000 1.19
--- Line.java 11 Aug 2006 12:44:21 -0000 1.20
***************
*** 9,12 ****
--- 9,13 ----
import java.util.ArrayList;
import java.util.HashSet;
+ import java.util.LinkedList;
import java.util.List;
import java.util.Set;
***************
*** 211,214 ****
--- 212,225 ----
/**
+ * @param distance distance
+ * @return list of handles
+ */
+ public List handles(double distance) {
+ List list = new LinkedList();
+ list.add(tip(distance));
+ return list;
+ }
+
+ /**
* Return an edge for this line
* @param length The the length
|