X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2FMain.java;h=86eb92a177838672562efe3634a989e45c36c607;hb=17972ccdcc4b45ccf91a4281d6dedd6f1d79e003;hp=95cd989487e9517dd2dc10229a2f470f933ed12e;hpb=42acb5af8ff15b7af9fa8f34c071ee58e24faf98;p=anneal.git diff --git a/src/edu/berkeley/qfat/Main.java b/src/edu/berkeley/qfat/Main.java index 95cd989..86eb92a 100644 --- a/src/edu/berkeley/qfat/Main.java +++ b/src/edu/berkeley/qfat/Main.java @@ -11,6 +11,31 @@ import edu.berkeley.qfat.geom.Point; import edu.berkeley.qfat.geom.Polygon; // TO DO: +// +// - Implement "real" constraints (plane, line, point) +// +// - Constrained surface subdivision +// - Edge.flip() gets us the triforce subdivision +// - Edge.delete() gets us the catmull-clark subdivision +// - Catmull-Clark: just don't move points if we can't. Need to average the influence of the points on a binding group. +// +// - Ability to snap three views to orthgonal +// - SLIDE UI +// - left button -> crystal ball +// - translate +// - rightbutton/mousewheel zoom +// - v+click to select vertex +// - show: constraints, bindings, faces +// +// Editing: +// - fracture edge, face +// - change aspect ratio +// - ability to select a point, rotate the model, then move the point +// - when moving a vertex in one window, show that window's axes in all other windows +// + + +// TO DO: // - real anneal // - solve self-intersection problem // - get a better test model? @@ -50,7 +75,9 @@ import edu.berkeley.qfat.geom.Polygon; // FIXME: re-orient goal (how?) -public class Main extends MeshViewer { +public class Main extends InteractiveMeshViewer { + + public static int verts = 1; @@ -107,7 +134,7 @@ public class Main extends MeshViewer { StlFile stlf = new StlFile(); InputStream res = this.getClass().getClassLoader().getResourceAsStream(file); stlf.readBinaryFile(file, res); - goal = new Mesh(false); + setGoal(new Mesh(false)); for(int i=0; i