Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18006/src/net/sourceforge/bprocessor/model
Modified Files:
Surface.java Space.java Project.java
Log Message:
Build errors and style-check errors fixed
Index: Surface.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -d -r1.129 -r1.130
*** Surface.java 5 Jan 2007 13:54:47 -0000 1.129
--- Surface.java 23 Jan 2007 14:31:26 -0000 1.130
***************
*** 1397,1401 ****
public Vertex normal() {
! return Geometry.normal(getVertices());
}
--- 1397,1402 ----
public Vertex normal() {
! return normal0();
! //return Geometry.normal(getVertices());
}
Index: Space.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -d -r1.110 -r1.111
*** Space.java 23 Jan 2007 10:51:51 -0000 1.110
--- Space.java 23 Jan 2007 14:31:27 -0000 1.111
***************
*** 208,212 ****
* @param name The name
* @return The space
- * @throws Exception If a part is being extended
*/
public Space createConstructionSpace(String name) {
--- 208,211 ----
***************
*** 682,685 ****
--- 681,697 ----
/**
+ * Inserts a list of edges into this space.
+ * The vertices of the edges are also inserted.
+ * Analysis is performed that ensure no duplicate
+ * vertices and edges.
+ * @param edges List of edges
+ */
+ public void insert(List<Edge> edges) {
+ for (Edge edge : edges) {
+ insert(edge);
+ }
+ }
+
+ /**
* Insert a edge
* @param edge The edge
Index: Project.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Project.java,v
retrieving revision 1.109
retrieving revision 1.110
diff -C2 -d -r1.109 -r1.110
*** Project.java 9 Jan 2007 10:12:09 -0000 1.109
--- Project.java 23 Jan 2007 14:31:27 -0000 1.110
***************
*** 1182,1188 ****
current = bf.readLine();
}
! for (Edge e : newEdges) {
! Project.getInstance().world().insert(e);
! }
}
--- 1182,1186 ----
current = bf.readLine();
}
! Project.getInstance().world().insert(newEdges);
}
|