Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19606/src/net/sourceforge/bprocessor/model
Modified Files:
Edge.java Vertex.java Surface.java
Log Message:
More constructors for Vertex, Edge and Surface
Index: Surface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** Surface.java 30 Aug 2005 13:14:01 -0000 1.14
--- Surface.java 31 Aug 2005 08:33:17 -0000 1.15
***************
*** 63,66 ****
--- 63,76 ----
setInnerSurfaces(null);
}
+
+ /**
+ * Constructor
+ * @param name The name
+ * @param edges The edges
+ */
+ public Surface(String name, List edges) {
+ this(name);
+ setEdges(edges);
+ }
/**
Index: Edge.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Edge.java 23 Aug 2005 12:11:03 -0000 1.6
--- Edge.java 31 Aug 2005 08:33:17 -0000 1.7
***************
*** 53,56 ****
--- 53,68 ----
setTo(null);
}
+
+ /**
+ * Constructor
+ * @param name The name
+ * @param from The to vertex
+ * @param to The from vertex
+ */
+ public Edge(String name, Vertex from, Vertex to) {
+ this(name);
+ setFrom(from);
+ setTo(to);
+ }
/**
Index: Vertex.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Vertex.java 30 Aug 2005 13:14:55 -0000 1.6
--- Vertex.java 31 Aug 2005 08:33:17 -0000 1.7
***************
*** 60,63 ****
--- 60,78 ----
setW(0.0);
}
+
+ /**
+ *
+ * Constructor
+ * @param name The name
+ * @param x The x
+ * @param y The y
+ * @param z The z
+ */
+ public Vertex(String name, double x, double y, double z) {
+ this(name);
+ setX(x);
+ setY(y);
+ setZ(z);
+ }
/**
|