diff --git a/Makefile b/Makefile index d42db2e03..061509734 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,17 @@ all: lib examples debug: lib -lib: obj libigl.a +lib: obj lib/libigl.a examples: make -C examples -CPP_FILES=$(wildcard ./*.cpp) +CPP_FILES=$(wildcard include/igl/*.cpp) OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o))) +# include igl headers +INC+=-Iinclude/ + # optimized default settings all: LFLAGS += all: CFLAGS += -O3 -DNDEBUG -Wall @@ -35,14 +38,14 @@ INC+=$(ANTTWEAKBAR_INC) obj: mkdir -p obj -libigl.a: $(OBJ_FILES) +lib/libigl.a: $(OBJ_FILES) rm -f $@ ar cqs $@ $(OBJ_FILES) -obj/%.o: %.cpp %.h +obj/%.o: include/igl/%.cpp include/igl/%.h g++ $(CFLAGS) -c -o $@ $< $(INC) clean: rm -f obj/*.o - rm -f libigl.a + rm -f lib/libigl.a make -C examples clean diff --git a/examples/Core/Makefile b/examples/Core/Makefile index 333c4647d..78f6fb7ba 100644 --- a/examples/Core/Makefile +++ b/examples/Core/Makefile @@ -5,8 +5,8 @@ igl_lib=../../ eigen_lib=/opt/local/include/eigen3/ CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen_lib) -lib=-L$(igl_lib) -ligl +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 diff --git a/examples/Core/example1.cpp b/examples/Core/example1.cpp index 1dce305af..90106fb7d 100644 --- a/examples/Core/example1.cpp +++ b/examples/Core/example1.cpp @@ -8,11 +8,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include using namespace std; diff --git a/examples/Core/example2.cpp b/examples/Core/example2.cpp index a8ec398ff..d56688e52 100644 --- a/examples/Core/example2.cpp +++ b/examples/Core/example2.cpp @@ -12,9 +12,9 @@ #include #include -#include +#include -#include +#include using namespace std; diff --git a/examples/ReAntTweakBar/Makefile b/examples/ReAntTweakBar/Makefile index ca5bea9a9..ea329eb62 100644 --- a/examples/ReAntTweakBar/Makefile +++ b/examples/ReAntTweakBar/Makefile @@ -7,8 +7,8 @@ all: example igl_lib=../../ -lib=-lAntTweakBar -framework AppKit -L$(igl_lib) -ligl -inc=-I$(igl_lib) +lib=-lAntTweakBar -framework AppKit -L$(igl_lib)/lib -ligl +inc=-I$(igl_lib)/include example: example.o g++ $(CFLAGS) -o example example.o -framework OpenGL -framework GLUT $(lib) diff --git a/examples/ReAntTweakBar/example.cpp b/examples/ReAntTweakBar/example.cpp index 0814e4957..92cf85e38 100644 --- a/examples/ReAntTweakBar/example.cpp +++ b/examples/ReAntTweakBar/example.cpp @@ -31,7 +31,7 @@ // --------------------------------------------------------------------------- -#include "ReAntTweakBar.h" +#include using namespace igl; #include diff --git a/examples/affine/Makefile b/examples/affine/Makefile index 26c5695e7..0f0b392ed 100644 --- a/examples/affine/Makefile +++ b/examples/affine/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=/usr/local/include/eigen3 CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include -I$(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/cat/Makefile b/examples/cat/Makefile index 215aa1621..92ec36fe2 100644 --- a/examples/cat/Makefile +++ b/examples/cat/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=/usr/local/include/eigen3/ CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include -I$(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/cat/example.cpp b/examples/cat/example.cpp index 93bcc25ac..bf3786f06 100644 --- a/examples/cat/example.cpp +++ b/examples/cat/example.cpp @@ -1,7 +1,7 @@ // g++ -o main main.cpp -I. -I/usr/local/include/eigen3 #include #include -#include "cat.h" +#include using namespace std; using namespace igl; diff --git a/examples/dmat/Makefile b/examples/dmat/Makefile index 26c5695e7..0f0b392ed 100644 --- a/examples/dmat/Makefile +++ b/examples/dmat/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=/usr/local/include/eigen3 CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include -I$(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/dmat/example.cpp b/examples/dmat/example.cpp index da4fb8e54..b95248f65 100644 --- a/examples/dmat/example.cpp +++ b/examples/dmat/example.cpp @@ -1,6 +1,6 @@ #include -#include "readDMAT.h" -#include "writeDMAT.h" +#include +#include using namespace igl; #include diff --git a/examples/eigen-gotchas/Makefile b/examples/eigen-gotchas/Makefile index 9e56a685a..40b01d897 100644 --- a/examples/eigen-gotchas/Makefile +++ b/examples/eigen-gotchas/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=-I/usr/local/include/eigen3 -I/usr/local/include/eigen3/unsupported CFLAGS=-g -inc=-I$(igl_lib) $(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include $(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/eigen-gotchas/example.cpp b/examples/eigen-gotchas/example.cpp index 6b60d3d75..eafae6197 100644 --- a/examples/eigen-gotchas/example.cpp +++ b/examples/eigen-gotchas/example.cpp @@ -11,7 +11,7 @@ using namespace Eigen; #include using namespace std; -#include "print_ijv.h" +#include using namespace igl; // Eigen fails to notice at compile time that the inneriterator used to loop diff --git a/examples/example_fun/Makefile b/examples/example_fun/Makefile index 8b8996aea..93e49eaf1 100644 --- a/examples/example_fun/Makefile +++ b/examples/example_fun/Makefile @@ -5,9 +5,9 @@ all: example_static example_header_only igl_lib=../../ CFLAGS=-g -inc=-I$(igl_lib) +inc=-I$(igl_lib)/include -STATIC_LIB=-ligl -L../../ +STATIC_LIB=-ligl -L../../lib HEADER_ONLY_DEF=-DIGL_HEADER_ONLY example_static: example_static.o diff --git a/examples/example_fun/example.cpp b/examples/example_fun/example.cpp index ad907b856..6f969bc37 100644 --- a/examples/example_fun/example.cpp +++ b/examples/example_fun/example.cpp @@ -1,4 +1,4 @@ -#include "example_fun.h" +#include using namespace igl; using namespace std; diff --git a/examples/file_contents_as_string/Makefile b/examples/file_contents_as_string/Makefile index f82a8ff2a..c4a5fb510 100644 --- a/examples/file_contents_as_string/Makefile +++ b/examples/file_contents_as_string/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/file_contents_as_string/example.cpp b/examples/file_contents_as_string/example.cpp index e4012425c..12e41023b 100644 --- a/examples/file_contents_as_string/example.cpp +++ b/examples/file_contents_as_string/example.cpp @@ -1,4 +1,4 @@ -#include "file_contents_as_string.h" +#include using namespace igl; #include #include diff --git a/examples/get_seconds/Makefile b/examples/get_seconds/Makefile index 4f9a9ca7f..57884323a 100644 --- a/examples/get_seconds/Makefile +++ b/examples/get_seconds/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -Wall -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/get_seconds/example.cpp b/examples/get_seconds/example.cpp index cf24d2a2e..07e76443f 100644 --- a/examples/get_seconds/example.cpp +++ b/examples/get_seconds/example.cpp @@ -1,6 +1,6 @@ #include -#include "get_seconds.h" +#include using namespace igl; #include using namespace std; diff --git a/examples/glslversion/Makefile b/examples/glslversion/Makefile index 4f89eacb5..13eb5ba73 100644 --- a/examples/glslversion/Makefile +++ b/examples/glslversion/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -inc=-I$(igl_lib) -lib=-framework OpenGL -framework GLUT -L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-framework OpenGL -framework GLUT -L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/glut_speed_test/Makefile b/examples/glut_speed_test/Makefile index 725313d65..79a476b33 100644 --- a/examples/glut_speed_test/Makefile +++ b/examples/glut_speed_test/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -Wall -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o -framework OpenGL -framework GLUT $(lib) diff --git a/examples/glut_speed_test/example.cpp b/examples/glut_speed_test/example.cpp index 022ed0628..6ae36dafc 100644 --- a/examples/glut_speed_test/example.cpp +++ b/examples/glut_speed_test/example.cpp @@ -1,4 +1,4 @@ -#include "get_seconds.h" +#include using namespace igl; #include #include diff --git a/examples/is_dir/Makefile b/examples/is_dir/Makefile index f82a8ff2a..c4a5fb510 100644 --- a/examples/is_dir/Makefile +++ b/examples/is_dir/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/is_dir/example.cpp b/examples/is_dir/example.cpp index e2c01886d..cd8d947bd 100644 --- a/examples/is_dir/example.cpp +++ b/examples/is_dir/example.cpp @@ -1,4 +1,4 @@ -#include "is_dir.h" +#include using namespace igl; #include diff --git a/examples/meshio/Makefile b/examples/meshio/Makefile index acb4cf607..37d919128 100644 --- a/examples/meshio/Makefile +++ b/examples/meshio/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=-I/usr/local/include/eigen3 CFLAGS=-g -inc=-I$(igl_lib) $(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include $(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/meshio/example.cpp b/examples/meshio/example.cpp index 93e6dd703..be40ca231 100644 --- a/examples/meshio/example.cpp +++ b/examples/meshio/example.cpp @@ -1,4 +1,4 @@ -#include "readOBJ.h" +#include #include #include diff --git a/examples/mode/Makefile b/examples/mode/Makefile index 215aa1621..92ec36fe2 100644 --- a/examples/mode/Makefile +++ b/examples/mode/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=/usr/local/include/eigen3/ CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include -I$(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/mode/example.cpp b/examples/mode/example.cpp index 8ca1d39b4..0eba8f441 100644 --- a/examples/mode/example.cpp +++ b/examples/mode/example.cpp @@ -1,7 +1,7 @@ // g++ -o main main.cpp -I. -I/usr/local/include/eigen3 #include #include -#include "mode.h" +#include using namespace std; using namespace igl; diff --git a/examples/path_tests/Makefile b/examples/path_tests/Makefile index f82a8ff2a..c4a5fb510 100644 --- a/examples/path_tests/Makefile +++ b/examples/path_tests/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/path_tests/example.cpp b/examples/path_tests/example.cpp index ee1c77450..6eb8b55d4 100644 --- a/examples/path_tests/example.cpp +++ b/examples/path_tests/example.cpp @@ -1,8 +1,8 @@ -#include "file_exists.h" -#include "is_dir.h" -#include "is_file.h" -#include "is_readable.h" -#include "is_writable.h" +#include +#include +#include +#include +#include using namespace igl; #include diff --git a/examples/pathinfo/Makefile b/examples/pathinfo/Makefile index ea11e040c..ab92c98e7 100644 --- a/examples/pathinfo/Makefile +++ b/examples/pathinfo/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -Wall -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/pathinfo/example.cpp b/examples/pathinfo/example.cpp index 911a5a743..c80f3733b 100644 --- a/examples/pathinfo/example.cpp +++ b/examples/pathinfo/example.cpp @@ -1,5 +1,5 @@ #define VERBOSE -#include "pathinfo.h" +#include using namespace igl; #include #include diff --git a/examples/slice/Makefile b/examples/slice/Makefile index 920c00732..d66917bab 100644 --- a/examples/slice/Makefile +++ b/examples/slice/Makefile @@ -10,8 +10,8 @@ eigen=-I/usr/local/include/eigen3 -I/usr/local/include/eigen3/unsupported #CFLAGS=-g CFLAGS=-Os -DNDEBUG -inc=-I$(igl_lib) $(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include $(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/slice/example.cpp b/examples/slice/example.cpp index 9ec574458..8791f4bff 100644 --- a/examples/slice/example.cpp +++ b/examples/slice/example.cpp @@ -8,9 +8,9 @@ using namespace Eigen; #include using namespace std; -#include "slice.h" -#include "speye.h" -#include "print_ijv.h" +#include +#include +#include using namespace igl; int main(int argc, char * argv[]) diff --git a/examples/sort/Makefile b/examples/sort/Makefile index 215aa1621..92ec36fe2 100644 --- a/examples/sort/Makefile +++ b/examples/sort/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=/usr/local/include/eigen3/ CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include -I$(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/sort/example.cpp b/examples/sort/example.cpp index a8df63f55..6842b632e 100644 --- a/examples/sort/example.cpp +++ b/examples/sort/example.cpp @@ -2,7 +2,7 @@ #include #include using namespace std; -#include "sort.h" +#include using namespace igl; diff --git a/examples/stdin_to_temp/Makefile b/examples/stdin_to_temp/Makefile index f82a8ff2a..c4a5fb510 100644 --- a/examples/stdin_to_temp/Makefile +++ b/examples/stdin_to_temp/Makefile @@ -8,8 +8,8 @@ all: example igl_lib=../../ CFLAGS=-g -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/stdin_to_temp/example.cpp b/examples/stdin_to_temp/example.cpp index 4e6403af5..272e5f125 100644 --- a/examples/stdin_to_temp/example.cpp +++ b/examples/stdin_to_temp/example.cpp @@ -13,7 +13,7 @@ * */ -#include "stdin_to_temp.h" +#include using namespace igl; #include diff --git a/examples/trackball/Makefile b/examples/trackball/Makefile index a2e698471..a2f0371d1 100644 --- a/examples/trackball/Makefile +++ b/examples/trackball/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ CFLAGS=-g -Wall #deps=-MMD -MF depends.txt -inc=-I$(igl_lib) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o -framework OpenGL -framework GLUT $(lib) diff --git a/examples/trackball/example.cpp b/examples/trackball/example.cpp index 2ec94ebf7..62912bf54 100644 --- a/examples/trackball/example.cpp +++ b/examples/trackball/example.cpp @@ -7,10 +7,10 @@ */ // IGL library -#include "quat_to_mat.h" -#include "quat_mult.h" -#include "axis_angle_to_quat.h" -#include "trackball.h" +#include +#include +#include +#include using namespace igl; #include diff --git a/examples/transpose_blocks/Makefile b/examples/transpose_blocks/Makefile index 26c5695e7..0f0b392ed 100644 --- a/examples/transpose_blocks/Makefile +++ b/examples/transpose_blocks/Makefile @@ -9,8 +9,8 @@ igl_lib=../../ eigen=/usr/local/include/eigen3 CFLAGS=-g -inc=-I$(igl_lib) -I$(eigen) -lib=-L$(igl_lib) -ligl +inc=-I$(igl_lib)/include -I$(eigen) +lib=-L$(igl_lib)/lib -ligl example: example.o g++ $(CFLAGS) -o example example.o $(lib) diff --git a/examples/transpose_blocks/example.cpp b/examples/transpose_blocks/example.cpp index 58b10a84e..21227ac38 100644 --- a/examples/transpose_blocks/example.cpp +++ b/examples/transpose_blocks/example.cpp @@ -1,7 +1,7 @@ #include #include using namespace std; -#include "transpose_blocks.h" +#include using namespace igl; int main(int argc,char * argv[]) diff --git a/EPS.cpp b/include/igl/EPS.cpp similarity index 100% rename from EPS.cpp rename to include/igl/EPS.cpp diff --git a/EPS.h b/include/igl/EPS.h similarity index 100% rename from EPS.h rename to include/igl/EPS.h diff --git a/ONE.h b/include/igl/ONE.h similarity index 100% rename from ONE.h rename to include/igl/ONE.h diff --git a/PI.h b/include/igl/PI.h similarity index 100% rename from PI.h rename to include/igl/PI.h diff --git a/ReAntTweakBar.cpp b/include/igl/ReAntTweakBar.cpp similarity index 100% rename from ReAntTweakBar.cpp rename to include/igl/ReAntTweakBar.cpp diff --git a/ReAntTweakBar.h b/include/igl/ReAntTweakBar.h similarity index 100% rename from ReAntTweakBar.h rename to include/igl/ReAntTweakBar.h diff --git a/Timer.h b/include/igl/Timer.h similarity index 100% rename from Timer.h rename to include/igl/Timer.h diff --git a/ZERO.h b/include/igl/ZERO.h similarity index 100% rename from ZERO.h rename to include/igl/ZERO.h diff --git a/adjacency_list.cpp b/include/igl/adjacency_list.cpp similarity index 100% rename from adjacency_list.cpp rename to include/igl/adjacency_list.cpp diff --git a/adjacency_list.h b/include/igl/adjacency_list.h similarity index 100% rename from adjacency_list.h rename to include/igl/adjacency_list.h diff --git a/adjacency_matrix.cpp b/include/igl/adjacency_matrix.cpp similarity index 100% rename from adjacency_matrix.cpp rename to include/igl/adjacency_matrix.cpp diff --git a/adjacency_matrix.h b/include/igl/adjacency_matrix.h similarity index 100% rename from adjacency_matrix.h rename to include/igl/adjacency_matrix.h diff --git a/all_pairs_distances.cpp b/include/igl/all_pairs_distances.cpp similarity index 100% rename from all_pairs_distances.cpp rename to include/igl/all_pairs_distances.cpp diff --git a/all_pairs_distances.h b/include/igl/all_pairs_distances.h similarity index 100% rename from all_pairs_distances.h rename to include/igl/all_pairs_distances.h diff --git a/axis_angle_to_quat.cpp b/include/igl/axis_angle_to_quat.cpp similarity index 100% rename from axis_angle_to_quat.cpp rename to include/igl/axis_angle_to_quat.cpp diff --git a/axis_angle_to_quat.h b/include/igl/axis_angle_to_quat.h similarity index 100% rename from axis_angle_to_quat.h rename to include/igl/axis_angle_to_quat.h diff --git a/basename.cpp b/include/igl/basename.cpp similarity index 100% rename from basename.cpp rename to include/igl/basename.cpp diff --git a/basename.h b/include/igl/basename.h similarity index 100% rename from basename.h rename to include/igl/basename.h diff --git a/boundary_faces.cpp b/include/igl/boundary_faces.cpp similarity index 100% rename from boundary_faces.cpp rename to include/igl/boundary_faces.cpp diff --git a/boundary_faces.h b/include/igl/boundary_faces.h similarity index 100% rename from boundary_faces.h rename to include/igl/boundary_faces.h diff --git a/canonical_quaternions.cpp b/include/igl/canonical_quaternions.cpp similarity index 100% rename from canonical_quaternions.cpp rename to include/igl/canonical_quaternions.cpp diff --git a/canonical_quaternions.h b/include/igl/canonical_quaternions.h similarity index 100% rename from canonical_quaternions.h rename to include/igl/canonical_quaternions.h diff --git a/cat.cpp b/include/igl/cat.cpp similarity index 100% rename from cat.cpp rename to include/igl/cat.cpp diff --git a/cat.h b/include/igl/cat.h similarity index 100% rename from cat.h rename to include/igl/cat.h diff --git a/cocoa_key_to_anttweakbar_key.cpp b/include/igl/cocoa_key_to_anttweakbar_key.cpp similarity index 100% rename from cocoa_key_to_anttweakbar_key.cpp rename to include/igl/cocoa_key_to_anttweakbar_key.cpp diff --git a/cocoa_key_to_anttweakbar_key.h b/include/igl/cocoa_key_to_anttweakbar_key.h similarity index 100% rename from cocoa_key_to_anttweakbar_key.h rename to include/igl/cocoa_key_to_anttweakbar_key.h diff --git a/colon.cpp b/include/igl/colon.cpp similarity index 100% rename from colon.cpp rename to include/igl/colon.cpp diff --git a/colon.h b/include/igl/colon.h similarity index 100% rename from colon.h rename to include/igl/colon.h diff --git a/concat.cpp b/include/igl/concat.cpp similarity index 100% rename from concat.cpp rename to include/igl/concat.cpp diff --git a/concat.h b/include/igl/concat.h similarity index 100% rename from concat.h rename to include/igl/concat.h diff --git a/cotangent.cpp b/include/igl/cotangent.cpp similarity index 100% rename from cotangent.cpp rename to include/igl/cotangent.cpp diff --git a/cotangent.h b/include/igl/cotangent.h similarity index 100% rename from cotangent.h rename to include/igl/cotangent.h diff --git a/cotmatrix.cpp b/include/igl/cotmatrix.cpp similarity index 100% rename from cotmatrix.cpp rename to include/igl/cotmatrix.cpp diff --git a/cotmatrix.h b/include/igl/cotmatrix.h similarity index 100% rename from cotmatrix.h rename to include/igl/cotmatrix.h diff --git a/create_index_vbo.cpp b/include/igl/create_index_vbo.cpp similarity index 100% rename from create_index_vbo.cpp rename to include/igl/create_index_vbo.cpp diff --git a/create_index_vbo.h b/include/igl/create_index_vbo.h similarity index 100% rename from create_index_vbo.h rename to include/igl/create_index_vbo.h diff --git a/create_mesh_vbo.cpp b/include/igl/create_mesh_vbo.cpp similarity index 100% rename from create_mesh_vbo.cpp rename to include/igl/create_mesh_vbo.cpp diff --git a/create_mesh_vbo.h b/include/igl/create_mesh_vbo.h similarity index 100% rename from create_mesh_vbo.h rename to include/igl/create_mesh_vbo.h diff --git a/create_shader_program.cpp b/include/igl/create_shader_program.cpp similarity index 100% rename from create_shader_program.cpp rename to include/igl/create_shader_program.cpp diff --git a/create_shader_program.h b/include/igl/create_shader_program.h similarity index 100% rename from create_shader_program.h rename to include/igl/create_shader_program.h diff --git a/create_vector_vbo.cpp b/include/igl/create_vector_vbo.cpp similarity index 100% rename from create_vector_vbo.cpp rename to include/igl/create_vector_vbo.cpp diff --git a/create_vector_vbo.h b/include/igl/create_vector_vbo.h similarity index 100% rename from create_vector_vbo.h rename to include/igl/create_vector_vbo.h diff --git a/cross.cpp b/include/igl/cross.cpp similarity index 100% rename from cross.cpp rename to include/igl/cross.cpp diff --git a/cross.h b/include/igl/cross.h similarity index 100% rename from cross.h rename to include/igl/cross.h diff --git a/destroy_shader_program.cpp b/include/igl/destroy_shader_program.cpp similarity index 100% rename from destroy_shader_program.cpp rename to include/igl/destroy_shader_program.cpp diff --git a/destroy_shader_program.h b/include/igl/destroy_shader_program.h similarity index 100% rename from destroy_shader_program.h rename to include/igl/destroy_shader_program.h diff --git a/diag.cpp b/include/igl/diag.cpp similarity index 100% rename from diag.cpp rename to include/igl/diag.cpp diff --git a/diag.h b/include/igl/diag.h similarity index 100% rename from diag.h rename to include/igl/diag.h diff --git a/dirname.cpp b/include/igl/dirname.cpp similarity index 100% rename from dirname.cpp rename to include/igl/dirname.cpp diff --git a/dirname.h b/include/igl/dirname.h similarity index 100% rename from dirname.h rename to include/igl/dirname.h diff --git a/dot.cpp b/include/igl/dot.cpp similarity index 100% rename from dot.cpp rename to include/igl/dot.cpp diff --git a/dot.h b/include/igl/dot.h similarity index 100% rename from dot.h rename to include/igl/dot.h diff --git a/edge_lengths.cpp b/include/igl/edge_lengths.cpp similarity index 100% rename from edge_lengths.cpp rename to include/igl/edge_lengths.cpp diff --git a/edge_lengths.h b/include/igl/edge_lengths.h similarity index 100% rename from edge_lengths.h rename to include/igl/edge_lengths.h diff --git a/edges.cpp b/include/igl/edges.cpp similarity index 100% rename from edges.cpp rename to include/igl/edges.cpp diff --git a/edges.h b/include/igl/edges.h similarity index 100% rename from edges.h rename to include/igl/edges.h diff --git a/edgetopology.h b/include/igl/edgetopology.h similarity index 100% rename from edgetopology.h rename to include/igl/edgetopology.h diff --git a/example_fun.cpp b/include/igl/example_fun.cpp similarity index 92% rename from example_fun.cpp rename to include/igl/example_fun.cpp index 78a178cee..18183915a 100644 --- a/example_fun.cpp +++ b/include/igl/example_fun.cpp @@ -1,4 +1,4 @@ -#include "example_fun.h" +#include "igl/example_fun.h" #include template diff --git a/example_fun.h b/include/igl/example_fun.h similarity index 100% rename from example_fun.h rename to include/igl/example_fun.h diff --git a/face_occurences.cpp b/include/igl/face_occurences.cpp similarity index 100% rename from face_occurences.cpp rename to include/igl/face_occurences.cpp diff --git a/face_occurences.h b/include/igl/face_occurences.h similarity index 100% rename from face_occurences.h rename to include/igl/face_occurences.h diff --git a/faces_first.cpp b/include/igl/faces_first.cpp similarity index 100% rename from faces_first.cpp rename to include/igl/faces_first.cpp diff --git a/faces_first.h b/include/igl/faces_first.h similarity index 100% rename from faces_first.h rename to include/igl/faces_first.h diff --git a/file_contents_as_string.cpp b/include/igl/file_contents_as_string.cpp similarity index 100% rename from file_contents_as_string.cpp rename to include/igl/file_contents_as_string.cpp diff --git a/file_contents_as_string.h b/include/igl/file_contents_as_string.h similarity index 100% rename from file_contents_as_string.h rename to include/igl/file_contents_as_string.h diff --git a/file_exists.cpp b/include/igl/file_exists.cpp similarity index 100% rename from file_exists.cpp rename to include/igl/file_exists.cpp diff --git a/file_exists.h b/include/igl/file_exists.h similarity index 100% rename from file_exists.h rename to include/igl/file_exists.h diff --git a/find.cpp b/include/igl/find.cpp similarity index 100% rename from find.cpp rename to include/igl/find.cpp diff --git a/find.h b/include/igl/find.h similarity index 100% rename from find.h rename to include/igl/find.h diff --git a/full.cpp b/include/igl/full.cpp similarity index 100% rename from full.cpp rename to include/igl/full.cpp diff --git a/full.h b/include/igl/full.h similarity index 100% rename from full.h rename to include/igl/full.h diff --git a/get_seconds.cpp b/include/igl/get_seconds.cpp similarity index 100% rename from get_seconds.cpp rename to include/igl/get_seconds.cpp diff --git a/get_seconds.h b/include/igl/get_seconds.h similarity index 100% rename from get_seconds.h rename to include/igl/get_seconds.h diff --git a/get_seconds_hires.cpp b/include/igl/get_seconds_hires.cpp similarity index 100% rename from get_seconds_hires.cpp rename to include/igl/get_seconds_hires.cpp diff --git a/get_seconds_hires.h b/include/igl/get_seconds_hires.h similarity index 100% rename from get_seconds_hires.h rename to include/igl/get_seconds_hires.h diff --git a/gl_type_size.cpp b/include/igl/gl_type_size.cpp similarity index 100% rename from gl_type_size.cpp rename to include/igl/gl_type_size.cpp diff --git a/gl_type_size.h b/include/igl/gl_type_size.h similarity index 100% rename from gl_type_size.h rename to include/igl/gl_type_size.h diff --git a/grad.cpp b/include/igl/grad.cpp similarity index 100% rename from grad.cpp rename to include/igl/grad.cpp diff --git a/grad.h b/include/igl/grad.h similarity index 100% rename from grad.h rename to include/igl/grad.h diff --git a/igl_inline.h b/include/igl/igl_inline.h similarity index 100% rename from igl_inline.h rename to include/igl/igl_inline.h diff --git a/is_border_vertex.cpp b/include/igl/is_border_vertex.cpp similarity index 100% rename from is_border_vertex.cpp rename to include/igl/is_border_vertex.cpp diff --git a/is_border_vertex.h b/include/igl/is_border_vertex.h similarity index 100% rename from is_border_vertex.h rename to include/igl/is_border_vertex.h diff --git a/is_dir.cpp b/include/igl/is_dir.cpp similarity index 100% rename from is_dir.cpp rename to include/igl/is_dir.cpp diff --git a/is_dir.h b/include/igl/is_dir.h similarity index 100% rename from is_dir.h rename to include/igl/is_dir.h diff --git a/is_file.cpp b/include/igl/is_file.cpp similarity index 100% rename from is_file.cpp rename to include/igl/is_file.cpp diff --git a/is_file.h b/include/igl/is_file.h similarity index 100% rename from is_file.h rename to include/igl/is_file.h diff --git a/is_manifold.cpp b/include/igl/is_manifold.cpp similarity index 100% rename from is_manifold.cpp rename to include/igl/is_manifold.cpp diff --git a/is_manifold.h b/include/igl/is_manifold.h similarity index 100% rename from is_manifold.h rename to include/igl/is_manifold.h diff --git a/is_readable.cpp b/include/igl/is_readable.cpp similarity index 100% rename from is_readable.cpp rename to include/igl/is_readable.cpp diff --git a/is_readable.h b/include/igl/is_readable.h similarity index 100% rename from is_readable.h rename to include/igl/is_readable.h diff --git a/is_symmetric.cpp b/include/igl/is_symmetric.cpp similarity index 100% rename from is_symmetric.cpp rename to include/igl/is_symmetric.cpp diff --git a/is_symmetric.h b/include/igl/is_symmetric.h similarity index 100% rename from is_symmetric.h rename to include/igl/is_symmetric.h diff --git a/is_writable.cpp b/include/igl/is_writable.cpp similarity index 100% rename from is_writable.cpp rename to include/igl/is_writable.cpp diff --git a/is_writable.h b/include/igl/is_writable.h similarity index 100% rename from is_writable.h rename to include/igl/is_writable.h diff --git a/limit_faces.cpp b/include/igl/limit_faces.cpp similarity index 100% rename from limit_faces.cpp rename to include/igl/limit_faces.cpp diff --git a/limit_faces.h b/include/igl/limit_faces.h similarity index 100% rename from limit_faces.h rename to include/igl/limit_faces.h diff --git a/list_to_matrix.cpp b/include/igl/list_to_matrix.cpp similarity index 99% rename from list_to_matrix.cpp rename to include/igl/list_to_matrix.cpp index 66a54d673..61cc4edc1 100644 --- a/list_to_matrix.cpp +++ b/include/igl/list_to_matrix.cpp @@ -55,7 +55,6 @@ IGL_INLINE bool igl::list_to_matrix(const std::vector & V,Mat & M) fprintf(stderr,"Error: list_to_matrix() list is empty()\n"); return false; } - assert(n != -1); // Resize output M.resize(m,1); diff --git a/list_to_matrix.h b/include/igl/list_to_matrix.h similarity index 100% rename from list_to_matrix.h rename to include/igl/list_to_matrix.h diff --git a/load_shader.cpp b/include/igl/load_shader.cpp similarity index 100% rename from load_shader.cpp rename to include/igl/load_shader.cpp diff --git a/load_shader.h b/include/igl/load_shader.h similarity index 100% rename from load_shader.h rename to include/igl/load_shader.h diff --git a/lu_lagrange.cpp b/include/igl/lu_lagrange.cpp similarity index 100% rename from lu_lagrange.cpp rename to include/igl/lu_lagrange.cpp diff --git a/lu_lagrange.h b/include/igl/lu_lagrange.h similarity index 100% rename from lu_lagrange.h rename to include/igl/lu_lagrange.h diff --git a/mat_max.cpp b/include/igl/mat_max.cpp similarity index 100% rename from mat_max.cpp rename to include/igl/mat_max.cpp diff --git a/mat_max.h b/include/igl/mat_max.h similarity index 100% rename from mat_max.h rename to include/igl/mat_max.h diff --git a/mat_min.cpp b/include/igl/mat_min.cpp similarity index 100% rename from mat_min.cpp rename to include/igl/mat_min.cpp diff --git a/mat_min.h b/include/igl/mat_min.h similarity index 100% rename from mat_min.h rename to include/igl/mat_min.h diff --git a/material_colors.h b/include/igl/material_colors.h similarity index 100% rename from material_colors.h rename to include/igl/material_colors.h diff --git a/matlab_workspace.cpp b/include/igl/matlab_workspace.cpp similarity index 100% rename from matlab_workspace.cpp rename to include/igl/matlab_workspace.cpp diff --git a/matlab_workspace.h b/include/igl/matlab_workspace.h similarity index 100% rename from matlab_workspace.h rename to include/igl/matlab_workspace.h diff --git a/matlabinterface.h b/include/igl/matlabinterface.h similarity index 100% rename from matlabinterface.h rename to include/igl/matlabinterface.h diff --git a/matrix_to_list.cpp b/include/igl/matrix_to_list.cpp similarity index 100% rename from matrix_to_list.cpp rename to include/igl/matrix_to_list.cpp diff --git a/matrix_to_list.h b/include/igl/matrix_to_list.h similarity index 100% rename from matrix_to_list.h rename to include/igl/matrix_to_list.h diff --git a/max_size.cpp b/include/igl/max_size.cpp similarity index 100% rename from max_size.cpp rename to include/igl/max_size.cpp diff --git a/max_size.h b/include/igl/max_size.h similarity index 100% rename from max_size.h rename to include/igl/max_size.h diff --git a/min_quad_dense.cpp b/include/igl/min_quad_dense.cpp similarity index 100% rename from min_quad_dense.cpp rename to include/igl/min_quad_dense.cpp diff --git a/min_quad_dense.h b/include/igl/min_quad_dense.h similarity index 100% rename from min_quad_dense.h rename to include/igl/min_quad_dense.h diff --git a/min_quad_with_fixed.cpp b/include/igl/min_quad_with_fixed.cpp similarity index 100% rename from min_quad_with_fixed.cpp rename to include/igl/min_quad_with_fixed.cpp diff --git a/min_quad_with_fixed.h b/include/igl/min_quad_with_fixed.h similarity index 100% rename from min_quad_with_fixed.h rename to include/igl/min_quad_with_fixed.h diff --git a/min_size.cpp b/include/igl/min_size.cpp similarity index 100% rename from min_size.cpp rename to include/igl/min_size.cpp diff --git a/min_size.h b/include/igl/min_size.h similarity index 100% rename from min_size.h rename to include/igl/min_size.h diff --git a/mode.cpp b/include/igl/mode.cpp similarity index 100% rename from mode.cpp rename to include/igl/mode.cpp diff --git a/mode.h b/include/igl/mode.h similarity index 100% rename from mode.h rename to include/igl/mode.h diff --git a/moveFV.cpp b/include/igl/moveFV.cpp similarity index 100% rename from moveFV.cpp rename to include/igl/moveFV.cpp diff --git a/moveFV.h b/include/igl/moveFV.h similarity index 100% rename from moveFV.h rename to include/igl/moveFV.h diff --git a/mvc.h b/include/igl/mvc.h similarity index 100% rename from mvc.h rename to include/igl/mvc.h diff --git a/normalize_quat.cpp b/include/igl/normalize_quat.cpp similarity index 100% rename from normalize_quat.cpp rename to include/igl/normalize_quat.cpp diff --git a/normalize_quat.h b/include/igl/normalize_quat.h similarity index 100% rename from normalize_quat.h rename to include/igl/normalize_quat.h diff --git a/normalize_rows.cpp b/include/igl/normalize_rows.cpp similarity index 100% rename from normalize_rows.cpp rename to include/igl/normalize_rows.cpp diff --git a/normalize_rows.h b/include/igl/normalize_rows.h similarity index 100% rename from normalize_rows.h rename to include/igl/normalize_rows.h diff --git a/on_boundary.cpp b/include/igl/on_boundary.cpp similarity index 100% rename from on_boundary.cpp rename to include/igl/on_boundary.cpp diff --git a/on_boundary.h b/include/igl/on_boundary.h similarity index 100% rename from on_boundary.h rename to include/igl/on_boundary.h diff --git a/orth.h b/include/igl/orth.h similarity index 100% rename from orth.h rename to include/igl/orth.h diff --git a/pathinfo.cpp b/include/igl/pathinfo.cpp similarity index 100% rename from pathinfo.cpp rename to include/igl/pathinfo.cpp diff --git a/pathinfo.h b/include/igl/pathinfo.h similarity index 100% rename from pathinfo.h rename to include/igl/pathinfo.h diff --git a/per_corner_normals.cpp b/include/igl/per_corner_normals.cpp similarity index 100% rename from per_corner_normals.cpp rename to include/igl/per_corner_normals.cpp diff --git a/per_corner_normals.h b/include/igl/per_corner_normals.h similarity index 100% rename from per_corner_normals.h rename to include/igl/per_corner_normals.h diff --git a/per_face_normals.cpp b/include/igl/per_face_normals.cpp similarity index 100% rename from per_face_normals.cpp rename to include/igl/per_face_normals.cpp diff --git a/per_face_normals.h b/include/igl/per_face_normals.h similarity index 100% rename from per_face_normals.h rename to include/igl/per_face_normals.h diff --git a/per_vertex_normals.cpp b/include/igl/per_vertex_normals.cpp similarity index 100% rename from per_vertex_normals.cpp rename to include/igl/per_vertex_normals.cpp diff --git a/per_vertex_normals.h b/include/igl/per_vertex_normals.h similarity index 100% rename from per_vertex_normals.h rename to include/igl/per_vertex_normals.h diff --git a/plot_vector.cpp b/include/igl/plot_vector.cpp similarity index 100% rename from plot_vector.cpp rename to include/igl/plot_vector.cpp diff --git a/plot_vector.h b/include/igl/plot_vector.h similarity index 100% rename from plot_vector.h rename to include/igl/plot_vector.h diff --git a/point_in_circle.cpp b/include/igl/point_in_circle.cpp similarity index 100% rename from point_in_circle.cpp rename to include/igl/point_in_circle.cpp diff --git a/point_in_circle.h b/include/igl/point_in_circle.h similarity index 100% rename from point_in_circle.h rename to include/igl/point_in_circle.h diff --git a/pos.h b/include/igl/pos.h similarity index 100% rename from pos.h rename to include/igl/pos.h diff --git a/print_gl_get.cpp b/include/igl/print_gl_get.cpp similarity index 100% rename from print_gl_get.cpp rename to include/igl/print_gl_get.cpp diff --git a/print_gl_get.h b/include/igl/print_gl_get.h similarity index 100% rename from print_gl_get.h rename to include/igl/print_gl_get.h diff --git a/print_ijv.cpp b/include/igl/print_ijv.cpp similarity index 100% rename from print_ijv.cpp rename to include/igl/print_ijv.cpp diff --git a/print_ijv.h b/include/igl/print_ijv.h similarity index 100% rename from print_ijv.h rename to include/igl/print_ijv.h diff --git a/print_program_info_log.cpp b/include/igl/print_program_info_log.cpp similarity index 100% rename from print_program_info_log.cpp rename to include/igl/print_program_info_log.cpp diff --git a/print_program_info_log.h b/include/igl/print_program_info_log.h similarity index 100% rename from print_program_info_log.h rename to include/igl/print_program_info_log.h diff --git a/print_shader_info_log.cpp b/include/igl/print_shader_info_log.cpp similarity index 100% rename from print_shader_info_log.cpp rename to include/igl/print_shader_info_log.cpp diff --git a/print_shader_info_log.h b/include/igl/print_shader_info_log.h similarity index 100% rename from print_shader_info_log.h rename to include/igl/print_shader_info_log.h diff --git a/project.cpp b/include/igl/project.cpp similarity index 100% rename from project.cpp rename to include/igl/project.cpp diff --git a/project.h b/include/igl/project.h similarity index 100% rename from project.h rename to include/igl/project.h diff --git a/quat_conjugate.cpp b/include/igl/quat_conjugate.cpp similarity index 100% rename from quat_conjugate.cpp rename to include/igl/quat_conjugate.cpp diff --git a/quat_conjugate.h b/include/igl/quat_conjugate.h similarity index 100% rename from quat_conjugate.h rename to include/igl/quat_conjugate.h diff --git a/quat_mult.cpp b/include/igl/quat_mult.cpp similarity index 100% rename from quat_mult.cpp rename to include/igl/quat_mult.cpp diff --git a/quat_mult.h b/include/igl/quat_mult.h similarity index 100% rename from quat_mult.h rename to include/igl/quat_mult.h diff --git a/quat_to_mat.cpp b/include/igl/quat_to_mat.cpp similarity index 100% rename from quat_to_mat.cpp rename to include/igl/quat_to_mat.cpp diff --git a/quat_to_mat.h b/include/igl/quat_to_mat.h similarity index 100% rename from quat_to_mat.h rename to include/igl/quat_to_mat.h diff --git a/read.cpp b/include/igl/read.cpp similarity index 100% rename from read.cpp rename to include/igl/read.cpp diff --git a/read.h b/include/igl/read.h similarity index 100% rename from read.h rename to include/igl/read.h diff --git a/readDMAT.cpp b/include/igl/readDMAT.cpp similarity index 100% rename from readDMAT.cpp rename to include/igl/readDMAT.cpp diff --git a/readDMAT.h b/include/igl/readDMAT.h similarity index 100% rename from readDMAT.h rename to include/igl/readDMAT.h diff --git a/readMESH.cpp b/include/igl/readMESH.cpp similarity index 100% rename from readMESH.cpp rename to include/igl/readMESH.cpp diff --git a/readMESH.h b/include/igl/readMESH.h similarity index 100% rename from readMESH.h rename to include/igl/readMESH.h diff --git a/readOBJ.cpp b/include/igl/readOBJ.cpp similarity index 100% rename from readOBJ.cpp rename to include/igl/readOBJ.cpp diff --git a/readOBJ.h b/include/igl/readOBJ.h similarity index 100% rename from readOBJ.h rename to include/igl/readOBJ.h diff --git a/readOFF.cpp b/include/igl/readOFF.cpp similarity index 100% rename from readOFF.cpp rename to include/igl/readOFF.cpp diff --git a/readOFF.h b/include/igl/readOFF.h similarity index 100% rename from readOFF.h rename to include/igl/readOFF.h diff --git a/removeDuplicates.cpp b/include/igl/removeDuplicates.cpp similarity index 100% rename from removeDuplicates.cpp rename to include/igl/removeDuplicates.cpp diff --git a/removeDuplicates.h b/include/igl/removeDuplicates.h similarity index 100% rename from removeDuplicates.h rename to include/igl/removeDuplicates.h diff --git a/removeUnreferenced.cpp b/include/igl/removeUnreferenced.cpp similarity index 100% rename from removeUnreferenced.cpp rename to include/igl/removeUnreferenced.cpp diff --git a/removeUnreferenced.h b/include/igl/removeUnreferenced.h similarity index 100% rename from removeUnreferenced.h rename to include/igl/removeUnreferenced.h diff --git a/reorder.cpp b/include/igl/reorder.cpp similarity index 100% rename from reorder.cpp rename to include/igl/reorder.cpp diff --git a/reorder.h b/include/igl/reorder.h similarity index 100% rename from reorder.h rename to include/igl/reorder.h diff --git a/repdiag.cpp b/include/igl/repdiag.cpp similarity index 100% rename from repdiag.cpp rename to include/igl/repdiag.cpp diff --git a/repdiag.h b/include/igl/repdiag.h similarity index 100% rename from repdiag.h rename to include/igl/repdiag.h diff --git a/repmat.cpp b/include/igl/repmat.cpp similarity index 100% rename from repmat.cpp rename to include/igl/repmat.cpp diff --git a/repmat.h b/include/igl/repmat.h similarity index 100% rename from repmat.h rename to include/igl/repmat.h diff --git a/report_gl_error.cpp b/include/igl/report_gl_error.cpp similarity index 100% rename from report_gl_error.cpp rename to include/igl/report_gl_error.cpp diff --git a/report_gl_error.h b/include/igl/report_gl_error.h similarity index 100% rename from report_gl_error.h rename to include/igl/report_gl_error.h diff --git a/rotate_by_quat.cpp b/include/igl/rotate_by_quat.cpp similarity index 100% rename from rotate_by_quat.cpp rename to include/igl/rotate_by_quat.cpp diff --git a/rotate_by_quat.h b/include/igl/rotate_by_quat.h similarity index 100% rename from rotate_by_quat.h rename to include/igl/rotate_by_quat.h diff --git a/rows_to_matrix.cpp b/include/igl/rows_to_matrix.cpp similarity index 100% rename from rows_to_matrix.cpp rename to include/igl/rows_to_matrix.cpp diff --git a/rows_to_matrix.h b/include/igl/rows_to_matrix.h similarity index 100% rename from rows_to_matrix.h rename to include/igl/rows_to_matrix.h diff --git a/slice.cpp b/include/igl/slice.cpp similarity index 100% rename from slice.cpp rename to include/igl/slice.cpp diff --git a/slice.h b/include/igl/slice.h similarity index 100% rename from slice.h rename to include/igl/slice.h diff --git a/slice_into.cpp b/include/igl/slice_into.cpp similarity index 100% rename from slice_into.cpp rename to include/igl/slice_into.cpp diff --git a/slice_into.h b/include/igl/slice_into.h similarity index 100% rename from slice_into.h rename to include/igl/slice_into.h diff --git a/snap_to_canonical_view_quat.cpp b/include/igl/snap_to_canonical_view_quat.cpp similarity index 100% rename from snap_to_canonical_view_quat.cpp rename to include/igl/snap_to_canonical_view_quat.cpp diff --git a/snap_to_canonical_view_quat.h b/include/igl/snap_to_canonical_view_quat.h similarity index 100% rename from snap_to_canonical_view_quat.h rename to include/igl/snap_to_canonical_view_quat.h diff --git a/sort.cpp b/include/igl/sort.cpp similarity index 100% rename from sort.cpp rename to include/igl/sort.cpp diff --git a/sort.h b/include/igl/sort.h similarity index 100% rename from sort.h rename to include/igl/sort.h diff --git a/sparse.cpp b/include/igl/sparse.cpp similarity index 100% rename from sparse.cpp rename to include/igl/sparse.cpp diff --git a/sparse.h b/include/igl/sparse.h similarity index 100% rename from sparse.h rename to include/igl/sparse.h diff --git a/speye.cpp b/include/igl/speye.cpp similarity index 100% rename from speye.cpp rename to include/igl/speye.cpp diff --git a/speye.h b/include/igl/speye.h similarity index 100% rename from speye.h rename to include/igl/speye.h diff --git a/stdin_to_temp.cpp b/include/igl/stdin_to_temp.cpp similarity index 100% rename from stdin_to_temp.cpp rename to include/igl/stdin_to_temp.cpp diff --git a/stdin_to_temp.h b/include/igl/stdin_to_temp.h similarity index 100% rename from stdin_to_temp.h rename to include/igl/stdin_to_temp.h diff --git a/sum.cpp b/include/igl/sum.cpp similarity index 100% rename from sum.cpp rename to include/igl/sum.cpp diff --git a/sum.h b/include/igl/sum.h similarity index 100% rename from sum.h rename to include/igl/sum.h diff --git a/texture_from_tga.cpp b/include/igl/texture_from_tga.cpp similarity index 100% rename from texture_from_tga.cpp rename to include/igl/texture_from_tga.cpp diff --git a/texture_from_tga.h b/include/igl/texture_from_tga.h similarity index 100% rename from texture_from_tga.h rename to include/igl/texture_from_tga.h diff --git a/tga.cpp b/include/igl/tga.cpp similarity index 100% rename from tga.cpp rename to include/igl/tga.cpp diff --git a/tga.h b/include/igl/tga.h similarity index 100% rename from tga.h rename to include/igl/tga.h diff --git a/trackball.cpp b/include/igl/trackball.cpp similarity index 100% rename from trackball.cpp rename to include/igl/trackball.cpp diff --git a/trackball.h b/include/igl/trackball.h similarity index 100% rename from trackball.h rename to include/igl/trackball.h diff --git a/transpose_blocks.cpp b/include/igl/transpose_blocks.cpp similarity index 100% rename from transpose_blocks.cpp rename to include/igl/transpose_blocks.cpp diff --git a/transpose_blocks.h b/include/igl/transpose_blocks.h similarity index 100% rename from transpose_blocks.h rename to include/igl/transpose_blocks.h diff --git a/tt.cpp b/include/igl/tt.cpp similarity index 100% rename from tt.cpp rename to include/igl/tt.cpp diff --git a/tt.h b/include/igl/tt.h similarity index 100% rename from tt.h rename to include/igl/tt.h diff --git a/uniform_type_to_string.cpp b/include/igl/uniform_type_to_string.cpp similarity index 100% rename from uniform_type_to_string.cpp rename to include/igl/uniform_type_to_string.cpp diff --git a/uniform_type_to_string.h b/include/igl/uniform_type_to_string.h similarity index 100% rename from uniform_type_to_string.h rename to include/igl/uniform_type_to_string.h diff --git a/unproject.cpp b/include/igl/unproject.cpp similarity index 100% rename from unproject.cpp rename to include/igl/unproject.cpp diff --git a/unproject.h b/include/igl/unproject.h similarity index 100% rename from unproject.h rename to include/igl/unproject.h diff --git a/upsample.cpp b/include/igl/upsample.cpp similarity index 100% rename from upsample.cpp rename to include/igl/upsample.cpp diff --git a/upsample.h b/include/igl/upsample.h similarity index 100% rename from upsample.h rename to include/igl/upsample.h diff --git a/verbose.cpp b/include/igl/verbose.cpp similarity index 100% rename from verbose.cpp rename to include/igl/verbose.cpp diff --git a/verbose.h b/include/igl/verbose.h similarity index 100% rename from verbose.h rename to include/igl/verbose.h diff --git a/vf.cpp b/include/igl/vf.cpp similarity index 100% rename from vf.cpp rename to include/igl/vf.cpp diff --git a/vf.h b/include/igl/vf.h similarity index 100% rename from vf.h rename to include/igl/vf.h diff --git a/write.cpp b/include/igl/write.cpp similarity index 100% rename from write.cpp rename to include/igl/write.cpp diff --git a/write.h b/include/igl/write.h similarity index 100% rename from write.h rename to include/igl/write.h diff --git a/writeDMAT.cpp b/include/igl/writeDMAT.cpp similarity index 100% rename from writeDMAT.cpp rename to include/igl/writeDMAT.cpp diff --git a/writeDMAT.h b/include/igl/writeDMAT.h similarity index 100% rename from writeDMAT.h rename to include/igl/writeDMAT.h diff --git a/writeMESH.cpp b/include/igl/writeMESH.cpp similarity index 100% rename from writeMESH.cpp rename to include/igl/writeMESH.cpp diff --git a/writeMESH.h b/include/igl/writeMESH.h similarity index 100% rename from writeMESH.h rename to include/igl/writeMESH.h diff --git a/writeOBJ.cpp b/include/igl/writeOBJ.cpp similarity index 100% rename from writeOBJ.cpp rename to include/igl/writeOBJ.cpp diff --git a/writeOBJ.h b/include/igl/writeOBJ.h similarity index 100% rename from writeOBJ.h rename to include/igl/writeOBJ.h diff --git a/writeOFF.cpp b/include/igl/writeOFF.cpp similarity index 100% rename from writeOFF.cpp rename to include/igl/writeOFF.cpp diff --git a/writeOFF.h b/include/igl/writeOFF.h similarity index 100% rename from writeOFF.h rename to include/igl/writeOFF.h diff --git a/scripts/append_source.sh b/scripts/append_source.sh new file mode 100755 index 000000000..7d86b964f --- /dev/null +++ b/scripts/append_source.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Replace #include "filename.cpp" with #include "../../source/filename.cpp" +for i in $* +do + # Only operate on .h files + filename=$(basename $i) + extension=${filename##*.} + filename=${filename%.*} + FILENAME=`echo $filename | tr '[a-z]' '[A-Z]'` + if [ ! "$extension" = "h" ]; + then + echo "Skipping $i because it is not a .h file" + continue; + fi + new=`cat "$filename.h" | sed -e "s/# *include \"$filename.cpp\"/# include \"..\/..\/source\/$filename.cpp\"/"` + echo "$new" > $i +done + diff --git a/autoexplicit.sh b/scripts/autoexplicit.sh similarity index 100% rename from autoexplicit.sh rename to scripts/autoexplicit.sh diff --git a/h2pair.sh b/scripts/h2pair.sh similarity index 100% rename from h2pair.sh rename to scripts/h2pair.sh