Эх сурвалжийг харах

deleted obsolete examples

Former-commit-id: 3fba3fa0446f65ee171cb10b676129c43e70b797
Alec Jacobson 10 жил өмнө
parent
commit
44905437bc

+ 0 - 24
examples/basic_topology/Makefile

@@ -1,24 +0,0 @@
-
-all: example1
-
-# Shared flags etc.
-include ../../build/Makefile.conf
-
-igl_lib=../../
-eigen_lib=$(DEFAULT_PREFIX)/include/eigen3/
-
-CFLAGS+=-g -fopenmp
-inc=-I$(igl_lib)/include -I$(eigen_lib)
-lib=-L$(igl_lib)/lib -ligl
-
-example1: example1.o
-	g++ $(CFLAGS) -o example1 example1.o $(lib)
-
-example1.o: example1.cpp
-	g++ $(CFLAGS) -c example1.cpp -o example1.o $(inc)
-
-
-clean:
-	rm -f example1.o
-	rm -f example1
-	rm -f bunny_out.off

+ 0 - 7
examples/basic_topology/README

@@ -1,7 +0,0 @@
-igl_lib is a lightweight C++ for mesh processing
-
-Example1.cpp: 
-- Load/save a mesh
-- Compute face and edge topology
-- Compute the cotan matrix of the loaded mesh
-

+ 0 - 53
examples/basic_topology/example1.cpp

@@ -1,53 +0,0 @@
-//
-//  IGL Lib - Simple C++ mesh library
-//
-//  Copyright 2011, Daniele Panozzo. All rights reserved.
-
-// IMPORTANT DO NOT REMOVE OR MOVE
-#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
-
-#include <iostream>
-#include <string>
-#include <igl/read_triangle_mesh.h>
-#include <igl/write_triangle_mesh.h>
-#include <igl/triangle_triangle_adjacency.h>
-#include <igl/edge_topology.h>
-
-using namespace std;
-
-int main (int argc, const char * argv[])
-{
-    Eigen::MatrixXd V;
-    Eigen::MatrixXi F;
-    igl::read_triangle_mesh("../shared/TinyTorus.obj",V,F);
-
-    std::cout << "Mesh loaded!\n";
-    cout << "Vertex Array:" << endl;
-    cout << V << endl;
-    cout << "-------------" << endl;
-    cout << "Face Array:" << endl;
-    cout << F << endl;
-    cout << "-------------" << endl;
-
-    igl::write_triangle_mesh("bunny_out.off",V,F);
-
-    // Face Topology
-    cout << "TT Topology:" << endl;
-    Eigen::MatrixXi TT;
-    igl::triangle_triangle_adjacency(V,F,TT);
-    cout << TT << endl;
-    cout << "-------------" << endl;
-
-    // Edge Topology
-    cout << "Edge Topology:" << endl;
-    Eigen::MatrixXi EV;
-    Eigen::MatrixXi FE;
-    Eigen::MatrixXi EF;
-
-    igl::edge_topology(V,F,EV,FE, EF);
-    cout << EV << endl << FE << endl << EF << endl;
-    cout << "-------------" << endl;
-
-
-    return 0;
-}

+ 0 - 25
examples/cat/Makefile

@@ -1,25 +0,0 @@
-
-.PHONY: all
-
-# Shared flags etc.
-include ../../build/Makefile.conf
-
-all: example
-
-.PHONY: example
-
-igl_lib=../../
-eigen=$(DEFAULT_PREFIX)/include/eigen3/
-
-CFLAGS+=-g
-inc=-I$(igl_lib)/include -I$(eigen)
-lib=-L$(igl_lib)/lib -ligl
-
-example: example.o
-	g++ $(CFLAGS) -o example example.o $(lib)
-
-example.o: example.cpp
-	g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
-clean:
-	rm -f example.o
-	rm -f example

+ 0 - 9
examples/cat/README

@@ -1,9 +0,0 @@
-This is a simple example program that shows how to use the cat function on
-eigen matrices like matlab's C = cat(dim,A,B) function
-
-
-To Build:
-  make
-
-To Run:
-  ./example

+ 0 - 36
examples/cat/example.cpp

@@ -1,36 +0,0 @@
-// g++ -o main main.cpp -I. -I/usr/local/include/eigen3
-#include <Eigen/Core>
-#include <iostream>
-#include <igl/cat.h>
-
-using namespace std;
-using namespace igl;
-using namespace Eigen;
-
-
-template <class T>
-void matlab_print(const string name, const T & X)
-{
-  cout<<name<<"=["<<endl<<X<<endl<<"];"<<endl;
-}
-
-int main(int argc, char * argv[])
-{
-  Eigen::MatrixXd A(3,4);
-  A << 
-    3,5,4,5,
-    1,2,4,2,
-    1,1,2,5;
-  matlab_print("A",A);
-  Eigen::MatrixXd B(3,4);
-  B << 
-    13,15,14,15,
-    11,12,14,12,
-    11,11,12,15;
-  matlab_print("B",B);
-  Eigen::MatrixXd C;
-  C = cat(1,A,B);
-  matlab_print("cat(1,A,B)",C);
-  C = cat(2,A,B);
-  matlab_print("cat(2,A,B)",C);
-}