bprocessor-commit Mailing List for B-processor (Page 158)
Status: Pre-Alpha
Brought to you by:
henryml
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(12) |
Jul
(117) |
Aug
(151) |
Sep
(157) |
Oct
(81) |
Nov
(117) |
Dec
(119) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(183) |
Feb
(130) |
Mar
(117) |
Apr
(61) |
May
(82) |
Jun
(45) |
Jul
(149) |
Aug
(173) |
Sep
(199) |
Oct
(165) |
Nov
(107) |
Dec
(137) |
2007 |
Jan
(124) |
Feb
(58) |
Mar
(123) |
Apr
(80) |
May
(130) |
Jun
(64) |
Jul
(31) |
Aug
(42) |
Sep
(114) |
Oct
(167) |
Nov
(239) |
Dec
(200) |
2008 |
Jan
(43) |
Feb
(43) |
Mar
(4) |
Apr
(9) |
May
(5) |
Jun
(1) |
Jul
(3) |
Aug
(3) |
Sep
(13) |
Oct
(9) |
Nov
(12) |
Dec
|
2009 |
Jan
|
Feb
(20) |
Mar
(7) |
Apr
(12) |
May
(34) |
Jun
(72) |
Jul
|
Aug
(3) |
Sep
(31) |
Oct
(2) |
Nov
(8) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(32) |
Mar
(8) |
Apr
(7) |
May
(36) |
Jun
|
Jul
(11) |
Aug
(15) |
Sep
(7) |
Oct
(2) |
Nov
(13) |
Dec
(80) |
2011 |
Jan
|
Feb
|
Mar
(8) |
Apr
(12) |
May
(32) |
Jun
(9) |
Jul
(5) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(8) |
2012 |
Jan
|
Feb
|
Mar
(3) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(22) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Michael L. <he...@us...> - 2005-09-29 10:46:52
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27278/src/net/sourceforge/bprocessor/gl/tool Modified Files: AbstractTool.java ExtrusionTool.java Log Message: Changed usage of equals() to == Index: ExtrusionTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ExtrusionTool.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** ExtrusionTool.java 29 Sep 2005 10:37:27 -0000 1.16 --- ExtrusionTool.java 29 Sep 2005 10:46:41 -0000 1.17 *************** *** 238,243 **** } else { if (times == edges.size() - 1 && ! ((first.getTo()).equals(current.getTo()) || ! (first.getTo()).equals(current.getFrom()))) { Edge newE = createEdge(first.getFrom(), previousEdge.getTo()); newEdges.add(current); --- 238,243 ---- } else { if (times == edges.size() - 1 && ! ((first.getTo() == current.getTo()) || ! (first.getTo() == current.getFrom()))) { Edge newE = createEdge(first.getFrom(), previousEdge.getTo()); newEdges.add(current); Index: AbstractTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractTool.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** AbstractTool.java 21 Sep 2005 09:33:31 -0000 1.18 --- AbstractTool.java 29 Sep 2005 10:46:41 -0000 1.19 *************** *** 396,400 **** while (innerIt.hasNext()) { Surface innerSurf = (Surface)innerIt.next(); ! if (innerSurf.equals(surface)) { surf.removeHole(surface); SurfaceFacade.getInstance().update(surf); --- 396,400 ---- while (innerIt.hasNext()) { Surface innerSurf = (Surface)innerIt.next(); ! if (innerSurf == surface) { surf.removeHole(surface); SurfaceFacade.getInstance().update(surf); |
From: Michael L. <he...@us...> - 2005-09-29 10:37:43
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25056/src/net/sourceforge/bprocessor/gl/tool Modified Files: ExtrusionTool.java Removed Files: Util.java Log Message: Removed usage of Util (uses operations from model instead) --- Util.java DELETED --- Index: ExtrusionTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ExtrusionTool.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ExtrusionTool.java 22 Sep 2005 23:32:50 -0000 1.15 --- ExtrusionTool.java 29 Sep 2005 10:37:27 -0000 1.16 *************** *** 86,92 **** normal.scale(normDotDelta / (normal.length() * normal.length())); //normal.scale(delta); ! List l = Util.traverse(dragSurface); //moving the dragged surface along its normal vector ! for (int count = 0; l != null && count < l.size(); count++) { Vertex v = (Vertex)l.get(count); updateVertex(v, new double[] {v.getX() + normal.getX(), --- 86,92 ---- normal.scale(normDotDelta / (normal.length() * normal.length())); //normal.scale(delta); ! List l = dragSurface.getVertices(); //moving the dragged surface along its normal vector ! for (int count = 0; l != null && count < l.size() - 1; count++) { Vertex v = (Vertex)l.get(count); updateVertex(v, new double[] {v.getX() + normal.getX(), *************** *** 100,105 **** while (innerIt.hasNext()) { Surface innerSurf = (Surface)innerIt.next(); ! List verticies = Util.traverse(innerSurf); ! for (int count = 0; verticies != null && count < verticies.size(); count++) { Vertex v = (Vertex)verticies.get(count); updateVertex(v, new double[] {v.getX() + normal.getX(), --- 100,105 ---- while (innerIt.hasNext()) { Surface innerSurf = (Surface)innerIt.next(); ! List verticies = innerSurf.getVertices(); ! for (int count = 0; verticies != null && count < verticies.size() - 1; count++) { Vertex v = (Vertex)verticies.get(count); updateVertex(v, new double[] {v.getX() + normal.getX(), *************** *** 128,132 **** } Vertex normal = s.normal(); ! List l = Util.traverse(s); if (l != null) { for (int i = 0; i < l.size(); i++) { --- 128,132 ---- } Vertex normal = s.normal(); ! List l = s.getVertices(); if (l != null) { for (int i = 0; i < l.size(); i++) { *************** *** 298,302 **** return topSurf; } ! /** * Do all the initial extrusion stuff returns the top of the extension --- 298,302 ---- return topSurf; } ! /** * Do all the initial extrusion stuff returns the top of the extension *************** *** 305,308 **** --- 305,309 ---- */ private Surface createExtension(Surface selectedSurface) { + Surface top = extendSurface(selectedSurface); Set innerSurfaces = selectedSurface.getInnerSurfaces(); |
From: Michael L. <he...@us...> - 2005-09-29 09:28:43
|
Update of /cvsroot/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11635 Modified Files: .classpath build.xml Log Message: Small fix to build process. Index: .classpath =================================================================== RCS file: /cvsroot/bprocessor/model/.classpath,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .classpath 10 Aug 2005 12:38:49 -0000 1.1 --- .classpath 29 Sep 2005 09:28:33 -0000 1.2 *************** *** 7,11 **** <classpathentry kind="lib" path="lib/hibernate3.jar"/> <classpathentry kind="src" path="/kernel"/> ! <classpathentry kind="lib" path="build"/> <classpathentry kind="output" path="bin"/> </classpath> --- 7,11 ---- <classpathentry kind="lib" path="lib/hibernate3.jar"/> <classpathentry kind="src" path="/kernel"/> ! <classpathentry kind="lib" path="build/code"/> <classpathentry kind="output" path="bin"/> </classpath> Index: build.xml =================================================================== RCS file: /cvsroot/bprocessor/model/build.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** build.xml 28 Sep 2005 14:07:55 -0000 1.7 --- build.xml 29 Sep 2005 09:28:33 -0000 1.8 *************** *** 113,117 **** <hibernatedoclet ! destdir="${build.dir}" mergedir="${conf.dir}" excludedtags="@version,@author,@todo,@see" --- 113,117 ---- <hibernatedoclet ! destdir="${build.code.dir}" mergedir="${conf.dir}" excludedtags="@version,@author,@todo,@see" |
From: Michael L. <he...@us...> - 2005-09-29 09:28:15
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11581/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Log Message: Surface.copy works. Uses HashMap of already copied vertices. Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Surface.java 28 Sep 2005 13:42:48 -0000 1.30 --- Surface.java 29 Sep 2005 09:28:07 -0000 1.31 *************** *** 9,12 **** --- 9,13 ---- import java.io.Serializable; import java.util.ArrayList; + import java.util.HashMap; import java.util.Iterator; import java.util.List; *************** *** 278,288 **** public Surface copy() { Surface surface = new Surface(getName()); List edges = new ArrayList(); Iterator iter = getEdges().iterator(); while (iter.hasNext()) { Edge current = (Edge) iter.next(); ! edges.add(current.copy()); } surface.setEdges(edges); return surface; } --- 279,310 ---- public Surface copy() { Surface surface = new Surface(getName()); + + HashMap map = new HashMap(); List edges = new ArrayList(); Iterator iter = getEdges().iterator(); while (iter.hasNext()) { Edge current = (Edge) iter.next(); ! Edge newEdge = new Edge(current.getName()); ! Vertex from = current.getFrom(); ! Vertex newFrom = (Vertex) map.get(from.getId()); ! if (newFrom == null) { ! newFrom = from.copy(); ! map.put(from.getId(), newFrom); ! VertexFacade.getInstance().create(newFrom); ! } ! newEdge.setFrom(newFrom); ! Vertex to = current.getTo(); ! Vertex newTo = (Vertex) map.get(to.getId()); ! if (newTo == null) { ! newTo = to.copy(); ! map.put(to.getId(), newTo); ! VertexFacade.getInstance().create(newTo); ! } ! newEdge.setTo(newTo); ! EdgeFacade.getInstance().create(newEdge); ! edges.add(newEdge); } surface.setEdges(edges); + SurfaceFacade.getInstance().create(surface); return surface; } |
From: rimestad <rim...@us...> - 2005-09-28 14:08:07
|
Update of /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14594/test/net/sourceforge/bprocessor/model Modified Files: EdgeTest.java Log Message: small refactoring of the build.xml file into test/build.xml Index: EdgeTest.java =================================================================== RCS file: /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor/model/EdgeTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EdgeTest.java 28 Sep 2005 12:28:46 -0000 1.1 --- EdgeTest.java 28 Sep 2005 14:07:55 -0000 1.2 *************** *** 52,56 **** /** ! * Tests the length method for the Edge */ public void testLength() { --- 52,56 ---- /** ! * Tests the {@link net.sourceforge.bprocessor.model.Edge#getLength length} method for the Edge */ public void testLength() { *************** *** 68,71 **** --- 68,78 ---- /** + * Tests the {@link net.sourceforge.bprocessor.model.Edge#otherVertex otherVertex} method + */ + public void testOtherVertex() { + + } + + /** * For single invocation use * @param args The arguments |
From: rimestad <rim...@us...> - 2005-09-28 14:08:04
|
Update of /cvsroot/bprocessor/model/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14594/test Added Files: build.xml Log Message: small refactoring of the build.xml file into test/build.xml --- NEW FILE: build.xml --- <project name="test" default="compile" basedir="."> <path id="build.test.path"> <fileset dir="${lib.dir}"> <include name="**/*.jar"/> </fileset> <fileset dir="${dist.dir}"> <include name="**/*.jar"/> </fileset> <pathelement location="."/> </path> <target name="init"> <mkdir dir="${build.test.dir}"/> </target> <target name="compile" depends="init"> <javac srcdir="${test.dir}" destdir="${build.test.dir}" deprecation="yes" debug="yes" includes="net/**"> <classpath refid="build.test.path"/> </javac> </target> <target name="doc" depends="init"> <mkdir dir="${test.doc.api.dir}"/> <javadoc packagenames="net.*" sourcepath="${test.dir}" destdir="${test.doc.api.dir}" author="false" version="false" windowtitle="BProcessor : Model (TEST)" doctitle="BProcessor : Model (TEST)" use="true" classpathref="build.test.path" bottom="Copyright © 2005 The BProcessor Team (http://bprocessor.sourceforge.net/)"> <link offline="true" href="http://java.sun.com/j2se/1.4/docs/api/" packagelistLoc="${java.home}/../docs/api"/> </javadoc> </target> </project> |
From: rimestad <rim...@us...> - 2005-09-28 14:08:03
|
Update of /cvsroot/bprocessor/model/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14594/src Modified Files: build.xml Log Message: small refactoring of the build.xml file into test/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/bprocessor/model/src/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 28 Sep 2005 12:28:46 -0000 1.2 --- build.xml 28 Sep 2005 14:07:55 -0000 1.3 *************** *** 6,17 **** </fileset> <pathelement location="."/> </path> <target name="init"> ! <mkdir dir="${build.dir}/code"/> </target> <target name="compile" depends="dep"> ! <javac srcdir="${src.dir}" destdir="${build.dir}/code" deprecation="yes" debug="yes" includes="net/**"> --- 6,18 ---- </fileset> <pathelement location="."/> + <pathelement location="${build.code.dir}"/> </path> <target name="init"> ! <mkdir dir="${build.code.dir}"/> </target> <target name="compile" depends="dep"> ! <javac srcdir="${src.dir}" destdir="${build.code.dir}" deprecation="yes" debug="yes" includes="net/**"> *************** *** 41,44 **** --- 42,57 ---- bottom="Copyright © 2005 The BProcessor Team (http://bprocessor.sourceforge.net/)"> <link offline="true" href="http://java.sun.com/j2se/1.4/docs/api/" packagelistLoc="${java.home}/../docs/api"/> + <tag name="hibernate.id" enabled="False"/> + <tag name="hibernate.key" enabled="False"/> + <tag name="hibernate.class" enabled="False"/> + <tag name="hibernate.property" enabled="False"/> + <tag name="hibernate.cache" enabled="False"/> + <tag name="hibernate.set" enabled="False"/> + <tag name="hibernate.many-to-many" enabled="False"/> + <tag name="hibernate.one-to-many" enabled="False"/> + <tag name="hibernate.many-to-one" enabled="False"/> + <tag name="hibernate.joined-subclass" enabled="False"/> + <tag name="hibernate.list" enabled="False"/> + <tag name="hibernate.collection-index" enabled="False"/> </javadoc> </target> |
From: rimestad <rim...@us...> - 2005-09-28 14:08:03
|
Update of /cvsroot/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14594 Modified Files: build.xml Log Message: small refactoring of the build.xml file into test/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/bprocessor/model/build.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** build.xml 28 Sep 2005 12:28:45 -0000 1.6 --- build.xml 28 Sep 2005 14:07:55 -0000 1.7 *************** *** 8,11 **** --- 8,13 ---- <property name="build.dir" value="${basedir}/build"/> + <property name="build.test.dir" value="${basedir}/build/test"/> + <property name="build.code.dir" value="${basedir}/build/code"/> <property name="src.dir" value="${basedir}/src"/> <property name="conf.dir" value="${src.dir}/etc"/> *************** *** 15,18 **** --- 17,21 ---- <property name="dist.dir" value="${basedir}/dist"/> <property name="test.dir" value="${basedir}/test"/> + <property name="test.doc.api.dir" value="${doc.dir}/testapi"/> <property name="checkstyle-results" value="${build.dir}/checkstyle-results.txt" /> *************** *** 25,28 **** --- 28,32 ---- <delete dir="${dist.dir}"/> <delete dir="${doc.api.dir}"/> + <delete dir="${test.doc.api.dir}"/> <delete> <fileset dir="${lib.dir}"> *************** *** 44,48 **** <echo message=""/> <mkdir dir="${build.dir}"/> ! <mkdir dir="${build.dir}/code"/> </target> --- 48,52 ---- <echo message=""/> <mkdir dir="${build.dir}"/> ! <mkdir dir="${build.code.dir}"/> </target> *************** *** 79,87 **** </taskdef> <xjc schema="${conf.dir}/bprocessor.xsd" ! target="${build.dir}/code" package="net.sourceforge.bprocessor.model.xml"> <arg value="-nv"/> </xjc> ! <javac srcdir="${build.dir}/code" destdir="${build.dir}/code" deprecation="yes" debug="yes" includes="net/**"> --- 83,91 ---- </taskdef> <xjc schema="${conf.dir}/bprocessor.xsd" ! target="${build.code.dir}" package="net.sourceforge.bprocessor.model.xml"> <arg value="-nv"/> </xjc> ! <javac srcdir="${build.code.dir}" destdir="${build.code.dir}" deprecation="yes" debug="yes" includes="net/**"> *************** *** 91,95 **** </javac> <delete> ! <fileset dir="${build.dir}/code"> <include name="**/*.java"/> </fileset> --- 95,99 ---- </javac> <delete> ! <fileset dir="${build.code.dir}"> <include name="**/*.java"/> </fileset> *************** *** 141,145 **** </target> ! <target name="doc" depends="copylib"> <delete dir="${doc.api.dir}"/> <ant dir="src" target="doc"/> --- 145,149 ---- </target> ! <target name="doc" depends="copylib, compile-xml"> <delete dir="${doc.api.dir}"/> <ant dir="src" target="doc"/> *************** *** 148,152 **** <target name="jar" depends="compile"> <mkdir dir="${dist.dir}"/> ! <copy todir="${build.dir}/code"> <fileset dir="${conf.dir}"> <include name="**/*.properties"/> --- 152,156 ---- <target name="jar" depends="compile"> <mkdir dir="${dist.dir}"/> ! <copy todir="${build.code.dir}"> <fileset dir="${conf.dir}"> <include name="**/*.properties"/> *************** *** 154,158 **** </copy> <jar jarfile="${dist.dir}/${name}.jar" ! basedir="${build.dir}/code" compress="true" includes="**/*" --- 158,162 ---- </copy> <jar jarfile="${dist.dir}/${name}.jar" ! basedir="${build.code.dir}" compress="true" includes="**/*" *************** *** 192,209 **** </target> <target name="test" depends="dist"> ! <mkdir dir="${build.dir}/test"/> ! <javac srcdir="${test.dir}" destdir="${build.dir}/test" deprecation="yes" ! debug="yes" ! includes="net/**"> ! <classpath> ! <fileset dir="${lib.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! <fileset dir="${dist.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! </classpath> ! </javac> <junit> --- 196,210 ---- </target> + <target name="test-doc" depends="init"> + <copy todir="${lib.dir}"> + <fileset dir="${tools.dir}/junit"> + <include name="**/*.jar"/> + </fileset> + </copy> + <ant dir="test" target="doc"/> + </target> + <target name="test" depends="dist"> ! <ant dir="test" target="compile"/> <junit> *************** *** 215,219 **** <include name="**/*.jar"/> </fileset> ! <pathelement location="${build.dir}/test"/> </classpath> --- 216,220 ---- <include name="**/*.jar"/> </fileset> ! <pathelement location="${build.test.dir}"/> </classpath> |
From: Michael L. <he...@us...> - 2005-09-28 13:42:59
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8967/src/net/sourceforge/bprocessor/model Modified Files: Edge.java Vertex.java Surface.java Log Message: Copy operations made public - does not work yet Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** Surface.java 28 Sep 2005 12:04:31 -0000 1.29 --- Surface.java 28 Sep 2005 13:42:48 -0000 1.30 *************** *** 276,280 **** * @return The copy */ ! Surface copy() { Surface surface = new Surface(getName()); List edges = new ArrayList(); --- 276,280 ---- * @return The copy */ ! public Surface copy() { Surface surface = new Surface(getName()); List edges = new ArrayList(); Index: Edge.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Edge.java 28 Sep 2005 11:59:03 -0000 1.11 --- Edge.java 28 Sep 2005 13:42:48 -0000 1.12 *************** *** 146,152 **** */ public Vertex otherVertex(Vertex v) { ! if (v.equals(getFrom())) { return getTo(); ! } else if (v.equals(getTo())) { return getFrom(); } --- 146,152 ---- */ public Vertex otherVertex(Vertex v) { ! if (v == getFrom()) { return getTo(); ! } else if (v == getTo()) { return getFrom(); } *************** *** 167,171 **** * @return The copy */ ! Edge copy() { Edge edge = new Edge(getName()); edge.setFrom(getFrom().copy()); --- 167,171 ---- * @return The copy */ ! public Edge copy() { Edge edge = new Edge(getName()); edge.setFrom(getFrom().copy()); Index: Vertex.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Vertex.java 28 Sep 2005 11:59:03 -0000 1.10 --- Vertex.java 28 Sep 2005 13:42:48 -0000 1.11 *************** *** 193,197 **** * @return The copy */ ! Vertex copy() { Vertex vertex = new Vertex(getName()); vertex.setX(getX()); --- 193,197 ---- * @return The copy */ ! public Vertex copy() { Vertex vertex = new Vertex(getName()); vertex.setX(getX()); |
From: rimestad <rim...@us...> - 2005-09-28 12:29:00
|
Update of /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24155/test/net/sourceforge/bprocessor/model Added Files: EdgeTest.java package.html Log Message: added JUnit testsuite in test directory, remember to copy junit.jar to your Ant/lib directory --- NEW FILE: package.html --- <body> The test of model classes </body> --- NEW FILE: EdgeTest.java --- //--------------------------------------------------------------------------------- // $Id: EdgeTest.java,v 1.1 2005/09/28 12:28:46 rimestad Exp $ // // Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net) // Released under the Lesser GNU Public License v2.1 //--------------------------------------------------------------------------------- package net.sourceforge.bprocessor.model; import junit.framework.TestCase; import junit.framework.Test; import junit.framework.TestSuite; import org.apache.log4j.Logger; /** * The tests for the <code>net.sourceforge.bprocessor.model.Edge</code> class */ public class EdgeTest extends TestCase { /** The logger */ private static Logger log = Logger.getLogger(Edge.class); /** * All the pre handling */ protected void setUp() { } /** * All the post handling */ protected void tearDown() { } /** * Test Edge initialization */ public void testInit() { Edge edge = new Edge("edge"); assertEquals("[init]:1", edge.getName(), "edge"); assertNull("[init]:2", edge.getTo()); assertNull("[init]:3", edge.getFrom()); assertNull("[init]:4", edge.getId()); Vertex v1 = new Vertex("", 1.8, 0.0, 6.5); Vertex v2 = new Vertex("", -3.2, 2.0, -0.5); edge = new Edge("edge2", v1, v2); assertEquals("[init]:5", edge.getName(), "edge2"); assertTrue("[init]:6", edge.getFrom() == v1); assertTrue("[init]:7", edge.getTo() == v2); assertNull("[init]:8", edge.getId()); } /** * Tests the length method for the Edge */ public void testLength() { Edge edge = new Edge("Edge"); Vertex v1 = new Vertex("v1", 0, 0, 0); Vertex v2 = new Vertex("v2", 5, 5, 5); edge.setTo(v1); edge.setFrom(v2); assertEquals("[length]:1", edge.getLength(), Math.sqrt(75), 0.0); assertFalse("[length]:2", edge.getLength() == 0.0); edge.setFrom(v1); assertEquals("[length]:3", edge.getLength(), 0.0, 0.0); assertFalse("[length]:4", edge.getLength() == 5.0); } /** * For single invocation use * @param args The arguments */ public static void main(String[] args) { junit.textui.TestRunner.run (suite()); } /** * Generates the TestSuite for this class * @return The TestSuite */ public static Test suite() { return new TestSuite(EdgeTest.class); } } |
From: rimestad <rim...@us...> - 2005-09-28 12:29:00
|
Update of /cvsroot/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24155 Modified Files: build.xml Log Message: added JUnit testsuite in test directory, remember to copy junit.jar to your Ant/lib directory Index: build.xml =================================================================== RCS file: /cvsroot/bprocessor/model/build.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** build.xml 16 Aug 2005 11:42:35 -0000 1.5 --- build.xml 28 Sep 2005 12:28:45 -0000 1.6 *************** *** 1,4 **** <project name="model" default="compile" basedir="."> - <target name="init"> <property name="name" value="model"/> --- 1,3 ---- *************** *** 15,23 **** <property name="lib.dir" value="${basedir}/lib"/> <property name="dist.dir" value="${basedir}/dist"/> <property name="checkstyle-results" value="${build.dir}/checkstyle-results.txt" /> <property name="build.compiler" value="modern"/> - </target> --- 14,22 ---- <property name="lib.dir" value="${basedir}/lib"/> <property name="dist.dir" value="${basedir}/dist"/> + <property name="test.dir" value="${basedir}/test"/> <property name="checkstyle-results" value="${build.dir}/checkstyle-results.txt" /> <property name="build.compiler" value="modern"/> </target> *************** *** 45,48 **** --- 44,48 ---- <echo message=""/> <mkdir dir="${build.dir}"/> + <mkdir dir="${build.dir}/code"/> </target> *************** *** 79,87 **** </taskdef> <xjc schema="${conf.dir}/bprocessor.xsd" ! target="${build.dir}" package="net.sourceforge.bprocessor.model.xml"> <arg value="-nv"/> </xjc> ! <javac srcdir="${build.dir}" destdir="${build.dir}" deprecation="yes" debug="yes" includes="net/**"> --- 79,87 ---- </taskdef> <xjc schema="${conf.dir}/bprocessor.xsd" ! target="${build.dir}/code" package="net.sourceforge.bprocessor.model.xml"> <arg value="-nv"/> </xjc> ! <javac srcdir="${build.dir}/code" destdir="${build.dir}/code" deprecation="yes" debug="yes" includes="net/**"> *************** *** 91,95 **** </javac> <delete> ! <fileset dir="${build.dir}"> <include name="**/*.java"/> </fileset> --- 91,95 ---- </javac> <delete> ! <fileset dir="${build.dir}/code"> <include name="**/*.java"/> </fileset> *************** *** 132,135 **** --- 132,137 ---- <fileset dir="${src.dir}" includes="**/*.java"/> + <fileset dir="${test.dir}" + includes="**/*.java"/> </checkstyle> </target> *************** *** 146,150 **** <target name="jar" depends="compile"> <mkdir dir="${dist.dir}"/> ! <copy todir="${build.dir}"> <fileset dir="${conf.dir}"> <include name="**/*.properties"/> --- 148,152 ---- <target name="jar" depends="compile"> <mkdir dir="${dist.dir}"/> ! <copy todir="${build.dir}/code"> <fileset dir="${conf.dir}"> <include name="**/*.properties"/> *************** *** 152,156 **** </copy> <jar jarfile="${dist.dir}/${name}.jar" ! basedir="${build.dir}" compress="true" includes="**/*" --- 154,158 ---- </copy> <jar jarfile="${dist.dir}/${name}.jar" ! basedir="${build.dir}/code" compress="true" includes="**/*" *************** *** 189,191 **** --- 191,230 ---- <delete file="${basedir}/${name}-${version}.tar"/> </target> + + <target name="test" depends="dist"> + <mkdir dir="${build.dir}/test"/> + <javac srcdir="${test.dir}" destdir="${build.dir}/test" deprecation="yes" + debug="yes" + includes="net/**"> + <classpath> + <fileset dir="${lib.dir}"> + <include name="**/*.jar"/> + </fileset> + <fileset dir="${dist.dir}"> + <include name="**/*.jar"/> + </fileset> + </classpath> + </javac> + + <junit> + <classpath> + <fileset dir="${lib.dir}"> + <include name="**/*.jar"/> + </fileset> + <fileset dir="${dist.dir}"> + <include name="**/*.jar"/> + </fileset> + <pathelement location="${build.dir}/test"/> + </classpath> + + <formatter type="plain"/> + <batchtest fork="yes" todir="${basedir}"> + <fileset dir="${test.dir}"> + <include name="**/*Test*.java"/> + <exclude name="**/AllTests.java"/> + </fileset> + </batchtest> + + </junit> + </target> </project> |
From: rimestad <rim...@us...> - 2005-09-28 12:28:59
|
Update of /cvsroot/bprocessor/model/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24155/src Modified Files: build.xml Log Message: added JUnit testsuite in test directory, remember to copy junit.jar to your Ant/lib directory Index: build.xml =================================================================== RCS file: /cvsroot/bprocessor/model/src/build.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** build.xml 27 Jun 2005 09:31:14 -0000 1.1.1.1 --- build.xml 28 Sep 2005 12:28:46 -0000 1.2 *************** *** 9,17 **** <target name="init"> ! <mkdir dir="${build.dir}"/> </target> <target name="compile" depends="dep"> ! <javac srcdir="${src.dir}" destdir="${build.dir}" deprecation="yes" debug="yes" includes="net/**"> --- 9,17 ---- <target name="init"> ! <mkdir dir="${build.dir}/code"/> </target> <target name="compile" depends="dep"> ! <javac srcdir="${src.dir}" destdir="${build.dir}/code" deprecation="yes" debug="yes" includes="net/**"> |
From: rimestad <rim...@us...> - 2005-09-28 12:15:39
|
Update of /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20690/test/net/sourceforge/bprocessor/model Log Message: Directory /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor/model added to the repository |
From: rimestad <rim...@us...> - 2005-09-28 12:15:26
|
Update of /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20606/test/net/sourceforge/bprocessor Log Message: Directory /cvsroot/bprocessor/model/test/net/sourceforge/bprocessor added to the repository |
From: rimestad <rim...@us...> - 2005-09-28 12:14:50
|
Update of /cvsroot/bprocessor/model/test/net/sourceforge In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20540/test/net/sourceforge Log Message: Directory /cvsroot/bprocessor/model/test/net/sourceforge added to the repository |
From: rimestad <rim...@us...> - 2005-09-28 12:14:41
|
Update of /cvsroot/bprocessor/model/test/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20479/test/net Log Message: Directory /cvsroot/bprocessor/model/test/net added to the repository |
From: rimestad <rim...@us...> - 2005-09-28 12:14:12
|
Update of /cvsroot/bprocessor/model/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20331/test Log Message: Directory /cvsroot/bprocessor/model/test added to the repository |
From: Michael L. <he...@us...> - 2005-09-28 12:04:40
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17827/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Log Message: Fixed a style error Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** Surface.java 28 Sep 2005 11:59:03 -0000 1.28 --- Surface.java 28 Sep 2005 12:04:31 -0000 1.29 *************** *** 274,278 **** /** * Return a copy of this Surface ! * @return */ Surface copy() { --- 274,278 ---- /** * Return a copy of this Surface ! * @return The copy */ Surface copy() { *************** *** 280,284 **** List edges = new ArrayList(); Iterator iter = getEdges().iterator(); ! while(iter.hasNext()) { Edge current = (Edge) iter.next(); edges.add(current.copy()); --- 280,284 ---- List edges = new ArrayList(); Iterator iter = getEdges().iterator(); ! while (iter.hasNext()) { Edge current = (Edge) iter.next(); edges.add(current.copy()); *************** *** 287,290 **** --- 287,292 ---- return surface; } + + /** * Adds a hole surface to this surface. |
From: Michael L. <he...@us...> - 2005-09-28 11:59:13
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16542/src/net/sourceforge/bprocessor/model Modified Files: Edge.java Vertex.java Surface.java Log Message: Copy operations on Surface, Edge, and Vertex Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** Surface.java 22 Sep 2005 14:10:47 -0000 1.27 --- Surface.java 28 Sep 2005 11:59:03 -0000 1.28 *************** *** 273,276 **** --- 273,291 ---- /** + * Return a copy of this Surface + * @return + */ + Surface copy() { + Surface surface = new Surface(getName()); + List edges = new ArrayList(); + Iterator iter = getEdges().iterator(); + while(iter.hasNext()) { + Edge current = (Edge) iter.next(); + edges.add(current.copy()); + } + surface.setEdges(edges); + return surface; + } + /** * Adds a hole surface to this surface. * @param inner the hole to add. Index: Edge.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Edge.java 14 Sep 2005 14:05:45 -0000 1.10 --- Edge.java 28 Sep 2005 11:59:03 -0000 1.11 *************** *** 164,167 **** --- 164,177 ---- /** + * Return a copy if this Edge + * @return The copy + */ + Edge copy() { + Edge edge = new Edge(getName()); + edge.setFrom(getFrom().copy()); + edge.setTo(getTo().copy()); + return edge; + } + /** * Move the Edge a distance (dx, dy, dz) * @param dx The x distance Index: Vertex.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Vertex.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Vertex.java 22 Sep 2005 14:10:47 -0000 1.9 --- Vertex.java 28 Sep 2005 11:59:03 -0000 1.10 *************** *** 179,182 **** --- 179,183 ---- this.w = w; } + /** *************** *** 189,192 **** --- 190,205 ---- /** + * Return a copy of this Vertex + * @return The copy + */ + Vertex copy() { + Vertex vertex = new Vertex(getName()); + vertex.setX(getX()); + vertex.setY(getY()); + vertex.setZ(getZ()); + return vertex; + } + + /** * scales the vertex by the the given double * @param scale The scale |
From: Michael L. <he...@us...> - 2005-09-26 13:17:49
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1484/src/net/sourceforge/bprocessor/gl/view Modified Files: AbstractView.java Log Message: Puts space names on surfaces Index: AbstractView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** AbstractView.java 23 Sep 2005 07:09:50 -0000 1.35 --- AbstractView.java 26 Sep 2005 13:17:38 -0000 1.36 *************** *** 14,17 **** --- 14,18 ---- import net.sourceforge.bprocessor.model.Edge; import net.sourceforge.bprocessor.model.EdgeFacade; + import net.sourceforge.bprocessor.model.Space; import net.sourceforge.bprocessor.model.Vertex; import net.sourceforge.bprocessor.model.VertexFacade; *************** *** 259,274 **** drawAll(gld); - //gl.glMatrixMode(GL.GL_PROJECTION); - //gl.glLoadIdentity(); - //glu.gluOrtho2D(0, width, 0, height); - //gl.glMatrixMode(GL.GL_MODELVIEW); - //gl.glLoadIdentity(); - //drawTextBox(200, 200, "Space 1"); if (glv.getTool() instanceof SelectTool) { //gl.glDisable(GL.GL_DEPTH_TEST); //gl.glDisable(GL.GL_LIGHTING); ! //decorateSelection(); } gl.glGetIntegerv(GL.GL_RENDER_MODE, mode); --- 260,280 ---- drawAll(gld); if (glv.getTool() instanceof SelectTool) { //gl.glDisable(GL.GL_DEPTH_TEST); //gl.glDisable(GL.GL_LIGHTING); ! decorateSelection(); ! } ! ! if (glv.getTool() instanceof SelectTool) { ! gl.glMatrixMode(GL.GL_PROJECTION); ! gl.glLoadIdentity(); ! glu.gluOrtho2D(0, width, 0, height); ! gl.glMatrixMode(GL.GL_MODELVIEW); ! gl.glLoadIdentity(); ! labelSelection(); } + //drawTextBox(200, 200, "Space 1"); + gl.glGetIntegerv(GL.GL_RENDER_MODE, mode); *************** *** 367,375 **** void decorateSelection() { Collection selection = glv.getTool().getSelection(); ! Iterator iter = selection.iterator(); ! while (iter.hasNext()) { ! Object current = iter.next(); ! if (current instanceof Surface) { ! decorateSurface((Surface) current); } } --- 373,469 ---- void decorateSelection() { Collection selection = glv.getTool().getSelection(); ! if (selection.size() == 1) { ! Iterator iter = selection.iterator(); ! while (iter.hasNext()) { ! Object current = iter.next(); ! if (current instanceof Surface) { ! decorateSurface((Surface) current); ! } ! } ! } ! } ! ! ! /** ! * Put labels on a Surface ! * @param surface The Surface ! */ ! void labelSurface(Surface surface) { ! Vertex from = surface.center(); ! CoordinateSystem system = surface.coordinateSystem(); ! Vertex n = system.getN(); ! Vertex spot = from.add(n); ! Transformation transformation = transformation(); ! Space frontSpace = (Space) surface.getFrontDomain(); ! Space backSpace = (Space) surface.getBackDomain(); ! String frontName; ! String backName; ! ! if (frontSpace != null) { ! frontName = frontSpace.getName(); ! } else { ! frontName = "None"; ! } ! ! if (backSpace != null) { ! backName = backSpace.getName(); ! } else { ! backName = "None"; ! } ! ! int frontWidth = glut.glutBitmapLength(GLUT.BITMAP_HELVETICA_18, frontName); ! int backWidth = glut.glutBitmapLength(GLUT.BITMAP_HELVETICA_18, backName); ! ! Vertex front = transformation.project(from.add(n)); ! Vertex back = transformation.project(from.minus(n)); ! Vertex frontAnchor; ! Vertex backAnchor; ! Vertex frontTextAnchor; ! Vertex backTextAnchor; ! ! ! if (front.getX() > back.getX()) { ! frontAnchor = new Vertex("", front.getX() + 40, front.getY() + 10, front.getZ()); ! frontTextAnchor = frontAnchor; ! backAnchor = new Vertex("", back.getX() - 40, back.getY() + 10, back.getZ()); ! backTextAnchor = new Vertex("", backAnchor.getX() - backWidth, ! backAnchor.getY(), backAnchor.getZ()); ! } else { ! frontAnchor = new Vertex("", front.getX() - 40, front.getY() + 10, front.getZ()); ! frontTextAnchor = new Vertex("", frontAnchor.getX() - frontWidth, ! frontAnchor.getY(), frontAnchor.getZ()); ! backAnchor = new Vertex("", back.getX() + 40, back.getY() + 10, back.getZ()); ! backTextAnchor = backAnchor; ! } ! ! gl.glLineWidth(1.0f); ! gl.glColor3d(0.4, 0.4, 0.4); ! gl.glBegin(GL.GL_LINES); ! gl.glVertex3d(front.getX(), front.getY(), front.getZ()); ! gl.glVertex3d(frontAnchor.getX(), frontAnchor.getY(), frontAnchor.getZ()); ! gl.glEnd(); ! gl.glColor3d(0.2, 0.2, 0.2); ! drawString(frontTextAnchor.getX(), frontTextAnchor.getY(), frontName); ! gl.glColor3d(0.4, 0.4, 0.4); ! gl.glBegin(GL.GL_LINES); ! gl.glVertex3d(back.getX(), back.getY(), back.getZ()); ! gl.glVertex3d(backAnchor.getX(), backAnchor.getY(), backAnchor.getZ()); ! gl.glEnd(); ! gl.glColor3d(0.2, 0.2, 0.2); ! drawString(backTextAnchor.getX(), backTextAnchor.getY(), backName); ! } ! ! /** ! * Put labels on the selection ! */ ! void labelSelection() { ! Collection selection = glv.getTool().getSelection(); ! if (selection.size() == 1) { ! Iterator iter = selection.iterator(); ! while (iter.hasNext()) { ! Object current = iter.next(); ! if (current instanceof Surface) { ! labelSurface((Surface) current); ! } } } |
From: Nordholt <nor...@us...> - 2005-09-23 10:47:22
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11580 Modified Files: PencilTool.java Log Message: disabled snapping when not drawing in the XY-plane Index: PencilTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/PencilTool.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** PencilTool.java 20 Sep 2005 17:27:47 -0000 1.21 --- PencilTool.java 23 Sep 2005 10:47:13 -0000 1.22 *************** *** 242,245 **** --- 242,246 ---- } } + /** * Set current vertex to an appropriate vertex *************** *** 249,252 **** --- 250,254 ---- protected boolean findVertex(MouseEvent event) { boolean legal = true; + boolean snap = false; double x = event.getX(); double y = AbstractView.getHeight() - event.getY(); *************** *** 287,290 **** --- 289,293 ---- Plane xy = new Plane(0, 0, 1, 0); Vertex vertex = xy.intersection(ray); + snap = true; if (vertex != null) { vertex.setName("V" + vertexNum++); *************** *** 293,297 **** } if (current.getId() == null) { ! snap(current); Set vertices = VertexFacade.getInstance().findByLocation (current.getX(), current.getY(), current.getZ(), 0.0); --- 296,302 ---- } if (current.getId() == null) { ! if (snap) { ! snap(current); ! } Set vertices = VertexFacade.getInstance().findByLocation (current.getX(), current.getY(), current.getZ(), 0.0); |
From: Jesper P. <je...@us...> - 2005-09-23 09:59:01
|
Update of /cvsroot/bprocessor/build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv878 Modified Files: build.xml Log Message: We are now at the M1 release Index: build.xml =================================================================== RCS file: /cvsroot/bprocessor/build/build.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** build.xml 16 Aug 2005 11:45:29 -0000 1.5 --- build.xml 23 Sep 2005 09:58:52 -0000 1.6 *************** *** 3,7 **** <target name="init"> <property name="project" value="bprocessor"/> ! <property name="version" value="M0"/> <property name="script.dir" value="${basedir}/bin"/> --- 3,7 ---- <target name="init"> <property name="project" value="bprocessor"/> ! <property name="version" value="M1"/> <property name="script.dir" value="${basedir}/bin"/> |
From: Jesper P. <je...@us...> - 2005-09-23 09:58:29
|
Update of /cvsroot/bprocessor/build/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv772 Modified Files: Changelog Log Message: Divide Changelog into sections Index: Changelog =================================================================== RCS file: /cvsroot/bprocessor/build/doc/Changelog,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Changelog 22 Sep 2005 23:56:16 -0000 1.2 --- Changelog 23 Sep 2005 09:58:16 -0000 1.3 *************** *** 2,26 **** ========== ! 2005/08/08: Release M0 ---------------------- ! Initial release ! 2005/23/09: Release M1 ! ---------------------- - Added different rendering modes (WIREFRAME, SOLID and LIGHTING/w.o. shadows) - Added a textfield showing the length/distance of lines, movement and extrusions ! - If a number is keyd in while using pencil tool, and Enter is pressed afterwards, the active edge is changed accordingly and ended. The drawing just continues as normal afterwards. ! - Escape now cancels drawing and moving if pressed - If a one-button mouse only are awailable CTRL + MOUSE1 begins rotation - If SHIFT is held down while selecting multiple objects can be selected - - There are now only one draw tool, that draws in 3D, e.i. it draws on excisting objects (and here the grid is included) - - A selection in the treeview reflects on the view and vice versa. - - All current object types can be selected. - GL hiding tooltip fixed on LINUX but not MAC - - ... Known bugs: ! - The gl stops responding if SOLID rendering mode is chosen with F6, until the view is clicked a couple of times with the mouse - Some concurrency problems with the database on multi-threaded machines ! - If many objects are selected during rotation, the program seems slow ! - ... --- 2,37 ---- ========== ! 2005/09/23: Release M1 ---------------------- ! General: ! - Added support for the PostgreSQL database; copy JDBC driver to library directory to enable ! - All object types can be selected. ! Model: ! - Added support for inner surfaces (holes) ! - Create a construction space when a surface is extruded ! ! GUI: ! - Show object relationships in space treeview ! ! GL: ! - Enabled drawing/moving/extrusion in 3D mode - Added different rendering modes (WIREFRAME, SOLID and LIGHTING/w.o. shadows) - Added a textfield showing the length/distance of lines, movement and extrusions ! - If a number is keyed in while using pencil tool, and 'Enter' is pressed afterwards, ! the active edge is changed accordingly and ended ! - 'Escape' now cancels drawing and moving - If a one-button mouse only are awailable CTRL + MOUSE1 begins rotation - If SHIFT is held down while selecting multiple objects can be selected - GL hiding tooltip fixed on LINUX but not MAC Known bugs: ! - The GL stops responding if SOLID rendering mode is chosen with F6, until the view is ! clicked a couple of times with the mouse - Some concurrency problems with the database on multi-threaded machines ! Set "notification.async=0" in bprocessor.properties as a work-around ! - If many objects are selected during rotation the program seems slow ! ! 2005/08/08: Release M0 ! ---------------------- ! Initial release |
From: Jesper P. <je...@us...> - 2005-09-23 09:58:10
|
Update of /cvsroot/bprocessor/build/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv701 Modified Files: README Log Message: rotate -> Rotate Index: README =================================================================== RCS file: /cvsroot/bprocessor/build/doc/README,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** README 22 Sep 2005 23:57:36 -0000 1.5 --- README 23 Sep 2005 09:57:54 -0000 1.6 *************** *** 18,25 **** ----- ! F1 : rotate the 3D view to default location ! F2 : rotate the view to XZ view ! F3 : rotate the view to XY view ! F4 : rotate the view to YZ view F5 : Wireframe --- 18,25 ---- ----- ! F1 : Rotate the 3D view to default location ! F2 : Rotate the view to XZ view ! F3 : Rotate the view to XY view ! F4 : Rotate the view to YZ view F5 : Wireframe |
From: Michael L. <he...@us...> - 2005-09-23 07:09:58
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25296/src/net/sourceforge/bprocessor/gl/view Modified Files: AbstractView.java Log Message: Index: AbstractView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** AbstractView.java 21 Sep 2005 14:06:37 -0000 1.34 --- AbstractView.java 23 Sep 2005 07:09:50 -0000 1.35 *************** *** 10,13 **** --- 10,14 ---- import net.sourceforge.bprocessor.gl.tool.SelectTool; + import net.sourceforge.bprocessor.model.CoordinateSystem; import net.sourceforge.bprocessor.model.Plane; import net.sourceforge.bprocessor.model.Edge; *************** *** 266,270 **** //drawTextBox(200, 200, "Space 1"); if (glv.getTool() instanceof SelectTool) { ! decorateSelection(); } --- 267,273 ---- //drawTextBox(200, 200, "Space 1"); if (glv.getTool() instanceof SelectTool) { ! //gl.glDisable(GL.GL_DEPTH_TEST); ! //gl.glDisable(GL.GL_LIGHTING); ! //decorateSelection(); } *************** *** 349,360 **** */ void decorateSurface(Surface surface) { ! Vertex from = surface.getFirtVertex(); ! Vertex to = surface.normal(); ! to.scale(1 / to.length()); ! to.setX(from.getX() + to.getX()); ! to.setY(from.getY() + to.getY()); ! to.setZ(from.getZ() + to.getZ()); ! Edge edge = new Edge("", from, to); ! gl.glColor3d(0.0, 1.0, 0.0); drawEdge(edge); } --- 352,361 ---- */ void decorateSurface(Surface surface) { ! Vertex from = surface.center(); ! CoordinateSystem system = surface.coordinateSystem(); ! Vertex n = system.getN(); ! ! Edge edge = new Edge("", from.minus(n), from.add(n)); ! gl.glColor3d(0.0, 0.0, 1.0); drawEdge(edge); } |