[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Surface.java, 1.185, 1.186 Geometry.
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-02 06:42:02
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv24167/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Geometry.java Log Message: constructor drawing Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.185 retrieving revision 1.186 diff -C2 -d -r1.185 -r1.186 *** Surface.java 1 Oct 2007 13:26:22 -0000 1.185 --- Surface.java 2 Oct 2007 06:41:57 -0000 1.186 *************** *** 1015,1018 **** --- 1015,1019 ---- /** * Make the new vertices, edges and surfaces for extrusion + * @param isRootExtrusion is root extrusion * @param delta the length of extrusion in meters * @param sides Will contain the sides that are created *************** *** 1023,1027 **** * @return The top in the extruded surface */ ! public Surface extrudeControlled(double delta, boolean isRootExtrusion, Set<Surface> sides, Map<Edge, Edge> e2e, Map<Vertex, Edge> v2e, Map<Edge, Surface> e2s, Map<Vertex, Direction> v2dir) { Vertex normal = normal(); --- 1024,1029 ---- * @return The top in the extruded surface */ ! public Surface extrudeControlled(double delta, ! boolean isRootExtrusion, Set<Surface> sides, Map<Edge, Edge> e2e, Map<Vertex, Edge> v2e, Map<Edge, Surface> e2s, Map<Vertex, Direction> v2dir) { Vertex normal = normal(); Index: Geometry.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Geometry.java,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** Geometry.java 19 Jul 2007 12:23:38 -0000 1.60 --- Geometry.java 2 Oct 2007 06:41:57 -0000 1.61 *************** *** 433,437 **** * @return List of the surfaces created (empty list if none) */ ! public static List insertEdges(List<Edge> edges) { Space space = Project.getInstance().getActiveSpace(); List<Surface> result = new LinkedList(); --- 433,437 ---- * @return List of the surfaces created (empty list if none) */ ! public static List<Surface> insertEdges(List<Edge> edges) { Space space = Project.getInstance().getActiveSpace(); List<Surface> result = new LinkedList(); *************** *** 439,444 **** Collection<Vertex> vertices = Edge.vertices(edges); Mesh mesh = new Mesh(new LinkedList(), edges, vertices); ! space.insert(mesh); ! Project.getInstance().changed(Project.getInstance().getActiveSpace()); Project.getInstance().checkpoint(); --- 439,444 ---- Collection<Vertex> vertices = Edge.vertices(edges); Mesh mesh = new Mesh(new LinkedList(), edges, vertices); ! mesh = space.insert(mesh); ! result.addAll(mesh.surfaces()); Project.getInstance().changed(Project.getInstance().getActiveSpace()); Project.getInstance().checkpoint(); |