瀏覽代碼

clean up exampels

Former-commit-id: 1a1001bea6b8088e092b2af64117e1f34b88abbb
Alec Jacobson (jalec 12 年之前
父節點
當前提交
204b94d1a7

+ 6 - 0
VERSION.txt

@@ -0,0 +1,6 @@
+# This file should contain the current version number of libigl
+# Major.Minor.Tick
+# Anyone may increment Tick to indicate a small change.
+# Minor indicates small changes that do not amount to new uploaded versions
+# Major indicates new uploaded version
+0.1.1

+ 0 - 1
examples/Core/bunny.off.REMOVED.git-id

@@ -1 +0,0 @@
-022b8fd121c540101dd1b2de051e69028c735823

+ 0 - 7
examples/Core/runexample2.sh

@@ -1,7 +0,0 @@
-PATH=/opt/local/bin:/opt/local/sbin:/Applications/MATLAB_R2010b.app/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
-DYLD_LIBRARY_PATH=/Applications/MATLAB_R2010b.app/bin/maci64
-
-export PATH
-export DYLD_LIBRARY_PATH
-
-./example2

+ 1 - 1
examples/MatlabWorkspace/README

@@ -6,7 +6,7 @@ To Build:
   make
 
 To Run:
-  ./example [input path] [output path]
+  ./example [input.dmat] [output.mat]
 
 Example Run #1:
   Issuing:

+ 1 - 1
examples/MatlabWorkspace/example.cpp

@@ -19,7 +19,7 @@ int main(int argc, char * argv[])
   using namespace Eigen;
   if(argc <= 2)
   {
-    printf("USAGE:\n  ./example [input path] [output path]\n");
+    printf("USAGE:\n  ./example [input.dmat] [output.mat]\n");
     return 1;
   }
   MatrixXd M;

二進制
examples/MatlabWorkspace/example.mat


+ 1 - 4
examples/Core/Makefile → examples/basic_topology/Makefile

@@ -11,11 +11,8 @@ CFLAGS=-g
 inc=-I$(igl_lib)/include -I$(eigen_lib)
 lib=-L$(igl_lib)/lib -ligl
 
-matlab_inc=-I$(MATLAB)/extern/include 
-matlab_lib=-L$(MATLAB)/bin/maci64/ -leng -lmx
-
 example1: example1.o
-	g++ $(CFLAGS) -o example1 example1.o $(OPENGL_LIB) $(GLUT_LIB) $(lib)
+	g++ $(CFLAGS) -o example1 example1.o $(lib)
 
 example1.o: example1.cpp
 	g++ $(CFLAGS) -c example1.cpp -o example1.o $(inc)

+ 0 - 0
examples/Core/README → examples/basic_topology/README


+ 1 - 8
examples/Core/example1.cpp → examples/basic_topology/example1.cpp

@@ -10,7 +10,6 @@
 #include <string>
 #include <igl/read.h>
 #include <igl/write.h>
-#include <igl/cotmatrix.h>
 #include <igl/tt.h>
 #include <igl/edgetopology.h>
 
@@ -20,7 +19,7 @@ int main (int argc, const char * argv[])
 {
     Eigen::MatrixXd V;
     Eigen::MatrixXi F;
-    igl::read("bunny.off",V,F);
+    igl::read("TinyTorus.obj",V,F);
 
     std::cout << "Mesh loaded!\n";
     cout << "Vertex Array:" << endl;
@@ -29,12 +28,6 @@ int main (int argc, const char * argv[])
     cout << "Face Array:" << endl;
     cout << F << endl;
     cout << "-------------" << endl;
-
-    cout << "CotMatrix:" << endl;
-    Eigen::SparseMatrix<double> L;
-    igl::cotmatrix(V,F,L);
-    cout << L << endl;
-    cout << "-------------" << endl;
     
     igl::write("bunny_out.off",V,F);