]> granicus.if.org Git - poly2tri-c/commitdiff
Move the code of the library itself inside it's own folder (poly2tri-c)
authorBarak Itkin <lightningismyname@gmail.com>
Sat, 2 Jun 2012 09:33:37 +0000 (12:33 +0300)
committerBarak Itkin <lightningismyname@gmail.com>
Sat, 2 Jun 2012 09:33:37 +0000 (12:33 +0300)
61 files changed:
Makefile.am
bin/Makefile.am
bin/main.c
configure.ac
poly2tri-c/Makefile.am [new file with mode: 0644]
poly2tri-c/p2t/Makefile.am [moved from p2t/Makefile.am with 100% similarity]
poly2tri-c/p2t/common/Makefile.am [moved from p2t/common/Makefile.am with 100% similarity]
poly2tri-c/p2t/common/cutils.h [moved from p2t/common/cutils.h with 100% similarity]
poly2tri-c/p2t/common/poly2tri-private.h [moved from p2t/common/poly2tri-private.h with 100% similarity]
poly2tri-c/p2t/common/shapes.c [moved from p2t/common/shapes.c with 100% similarity]
poly2tri-c/p2t/common/shapes.h [moved from p2t/common/shapes.h with 100% similarity]
poly2tri-c/p2t/common/utils.c [moved from p2t/common/utils.c with 100% similarity]
poly2tri-c/p2t/common/utils.h [moved from p2t/common/utils.h with 100% similarity]
poly2tri-c/p2t/poly2tri.h [moved from p2t/poly2tri.h with 100% similarity]
poly2tri-c/p2t/sweep/Makefile.am [moved from p2t/sweep/Makefile.am with 100% similarity]
poly2tri-c/p2t/sweep/advancing_front.c [moved from p2t/sweep/advancing_front.c with 100% similarity]
poly2tri-c/p2t/sweep/advancing_front.h [moved from p2t/sweep/advancing_front.h with 100% similarity]
poly2tri-c/p2t/sweep/cdt.c [moved from p2t/sweep/cdt.c with 100% similarity]
poly2tri-c/p2t/sweep/cdt.h [moved from p2t/sweep/cdt.h with 100% similarity]
poly2tri-c/p2t/sweep/sweep.c [moved from p2t/sweep/sweep.c with 100% similarity]
poly2tri-c/p2t/sweep/sweep.h [moved from p2t/sweep/sweep.h with 100% similarity]
poly2tri-c/p2t/sweep/sweep_context.c [moved from p2t/sweep/sweep_context.c with 100% similarity]
poly2tri-c/p2t/sweep/sweep_context.h [moved from p2t/sweep/sweep_context.h with 100% similarity]
poly2tri-c/refine/Makefile.am [moved from refine/Makefile.am with 100% similarity]
poly2tri-c/refine/bounded-line.c [moved from refine/bounded-line.c with 100% similarity]
poly2tri-c/refine/bounded-line.h [moved from refine/bounded-line.h with 100% similarity]
poly2tri-c/refine/cdt.c [moved from refine/cdt.c with 100% similarity]
poly2tri-c/refine/cdt.h [moved from refine/cdt.h with 99% similarity]
poly2tri-c/refine/circle.c [moved from refine/circle.c with 100% similarity]
poly2tri-c/refine/circle.h [moved from refine/circle.h with 100% similarity]
poly2tri-c/refine/cluster.c [moved from refine/cluster.c with 100% similarity]
poly2tri-c/refine/cluster.h [moved from refine/cluster.h with 100% similarity]
poly2tri-c/refine/delaunay-terminator.c [moved from refine/delaunay-terminator.c with 100% similarity]
poly2tri-c/refine/delaunay-terminator.h [moved from refine/delaunay-terminator.h with 100% similarity]
poly2tri-c/refine/edge.c [moved from refine/edge.c with 100% similarity]
poly2tri-c/refine/edge.h [moved from refine/edge.h with 100% similarity]
poly2tri-c/refine/line.c [moved from refine/line.c with 100% similarity]
poly2tri-c/refine/line.h [moved from refine/line.h with 100% similarity]
poly2tri-c/refine/mesh.c [moved from refine/mesh.c with 100% similarity]
poly2tri-c/refine/mesh.h [moved from refine/mesh.h with 100% similarity]
poly2tri-c/refine/point.c [moved from refine/point.c with 100% similarity]
poly2tri-c/refine/point.h [moved from refine/point.h with 100% similarity]
poly2tri-c/refine/pslg.c [moved from refine/pslg.c with 100% similarity]
poly2tri-c/refine/pslg.h [moved from refine/pslg.h with 100% similarity]
poly2tri-c/refine/refine.h [moved from refine/refine.h with 100% similarity]
poly2tri-c/refine/rmath.c [moved from refine/rmath.c with 100% similarity]
poly2tri-c/refine/rmath.h [moved from refine/rmath.h with 100% similarity]
poly2tri-c/refine/triangle.c [moved from refine/triangle.c with 100% similarity]
poly2tri-c/refine/triangle.h [moved from refine/triangle.h with 100% similarity]
poly2tri-c/refine/triangulation.h [moved from refine/triangulation.h with 100% similarity]
poly2tri-c/refine/utils.c [moved from refine/utils.c with 100% similarity]
poly2tri-c/refine/utils.h [moved from refine/utils.h with 100% similarity]
poly2tri-c/refine/vector2.c [moved from refine/vector2.c with 100% similarity]
poly2tri-c/refine/vector2.h [moved from refine/vector2.h with 100% similarity]
poly2tri-c/refine/visibility.c [moved from refine/visibility.c with 100% similarity]
poly2tri-c/refine/visibility.h [moved from refine/visibility.h with 100% similarity]
poly2tri-c/render/Makefile.am [moved from render/Makefile.am with 100% similarity]
poly2tri-c/render/mesh-render.c [moved from render/mesh-render.c with 99% similarity]
poly2tri-c/render/mesh-render.h [moved from render/mesh-render.h with 100% similarity]
poly2tri-c/render/svg-plot.c [moved from render/svg-plot.c with 99% similarity]
poly2tri-c/render/svg-plot.h [moved from render/svg-plot.h with 98% similarity]

index 44f3a1e1fccd79f8aa8c33af35fc28709bf87e48..c6f694e91e115f23036fe78247f89fa165682c03 100644 (file)
@@ -1,17 +1,6 @@
-SUBDIRS = p2t refine render bin
+SUBDIRS = poly2tri-c bin
 
 ACLOCAL_AMFLAGS = -I m4
 
-AM_LDFLAGS = -version-info $(P2TC_LIBRARY_VERSION)
-
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = poly2tri-c.pc
-
-P2TC_publicdir = $(includedir)/poly2tri-c-$(P2TC_API_VERSION)/poly2tri-c
-export P2TC_publicdir
-P2TC_public_HEADERS =
-
-lib_LTLIBRARIES = libpoly2tri-c-@P2TC_API_VERSION@.la
-
-libpoly2tri_c_@P2TC_API_VERSION@_la_LIBADD = p2t/libp2tc.la refine/libp2tc-refine.la render/libp2tc-render.la
-libpoly2tri_c_@P2TC_API_VERSION@_la_SOURCES =
index e580fc64c354ce346b522977b2f6ea829ce6d218..a192cfb3820663a7a997832649e16d5e7220c0f3 100644 (file)
@@ -1,3 +1,3 @@
 bin_PROGRAMS = p2tc-test
 p2tc_test_SOURCES = main.c
-p2tc_test_LDADD = ../p2t/libp2tc.la ../refine/libp2tc-refine.la ../render/libp2tc-render.la
+p2tc_test_LDADD = ../poly2tri-c/libpoly2tri-c-$(P2TC_API_VERSION).la
index 7b20cb844556c274d011990868e63926be5ed12f..ca02a3edf7a4d7c0aaa3b4b69740f23433b0dc0e 100644 (file)
 #include <stdio.h>
 #include <glib.h>
 
-#include <p2t/poly2tri.h>
+#include <poly2tri-c/p2t/poly2tri.h>
 
-#include <refine/refine.h>
-#include <render/svg-plot.h>
-#include <render/mesh-render.h>
+#include <poly2tri-c/refine/refine.h>
+#include <poly2tri-c/render/svg-plot.h>
+#include <poly2tri-c/render/mesh-render.h>
 
 #include <string.h>
 
index bb949c1f0b6984f5e6598ca351b0d8ea88c44bca..de82bee704620e904f0c10a7932341c8a19f3024 100644 (file)
@@ -104,14 +104,15 @@ AC_CONFIG_HEADERS([config.h])
 
 # Output these files
 AC_CONFIG_FILES([
-       poly2tri-c.pc           \
-       bin/Makefile            \
-       p2t/sweep/Makefile      \
-       p2t/common/Makefile     \
-       p2t/Makefile            \
-       render/Makefile         \
-       refine/Makefile         \
-       Makefile                \
+       poly2tri-c.pc                   \
+       bin/Makefile                    \
+       poly2tri-c/Makefile             \
+       poly2tri-c/p2t/sweep/Makefile   \
+       poly2tri-c/p2t/common/Makefile  \
+       poly2tri-c/p2t/Makefile         \
+       poly2tri-c/render/Makefile      \
+       poly2tri-c/refine/Makefile      \
+       Makefile                        \
        ])
 
 # Now really output
diff --git a/poly2tri-c/Makefile.am b/poly2tri-c/Makefile.am
new file mode 100644 (file)
index 0000000..cd4e4a0
--- /dev/null
@@ -0,0 +1,12 @@
+SUBDIRS = p2t refine render
+
+AM_LDFLAGS = -version-info $(P2TC_LIBRARY_VERSION)
+
+P2TC_publicdir = $(includedir)/poly2tri-c-$(P2TC_API_VERSION)
+export P2TC_publicdir
+P2TC_public_HEADERS =
+
+lib_LTLIBRARIES = libpoly2tri-c-@P2TC_API_VERSION@.la
+
+libpoly2tri_c_@P2TC_API_VERSION@_la_LIBADD = p2t/libp2tc.la refine/libp2tc-refine.la render/libp2tc-render.la
+libpoly2tri_c_@P2TC_API_VERSION@_la_SOURCES =
similarity index 100%
rename from p2t/Makefile.am
rename to poly2tri-c/p2t/Makefile.am
similarity index 100%
rename from p2t/poly2tri.h
rename to poly2tri-c/p2t/poly2tri.h
similarity index 100%
rename from p2t/sweep/cdt.c
rename to poly2tri-c/p2t/sweep/cdt.c
similarity index 100%
rename from p2t/sweep/cdt.h
rename to poly2tri-c/p2t/sweep/cdt.h
similarity index 100%
rename from refine/cdt.c
rename to poly2tri-c/refine/cdt.c
similarity index 99%
rename from refine/cdt.h
rename to poly2tri-c/refine/cdt.h
index 8a06ad98f033d1a3270bbc1d636e32cc2538c6a5..1c8b247796d91362d9fe73245785c1eff2248e0a 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef __P2TC_REFINE_CDT_H__
 #define __P2TC_REFINE_CDT_H__
 
-#include <p2t/poly2tri.h>
+#include <poly2tri-c/p2t/poly2tri.h>
 #include "mesh.h"
 #include "pslg.h"
 
similarity index 100%
rename from refine/circle.c
rename to poly2tri-c/refine/circle.c
similarity index 100%
rename from refine/circle.h
rename to poly2tri-c/refine/circle.h
similarity index 100%
rename from refine/cluster.c
rename to poly2tri-c/refine/cluster.c
similarity index 100%
rename from refine/cluster.h
rename to poly2tri-c/refine/cluster.h
similarity index 100%
rename from refine/edge.c
rename to poly2tri-c/refine/edge.c
similarity index 100%
rename from refine/edge.h
rename to poly2tri-c/refine/edge.h
similarity index 100%
rename from refine/line.c
rename to poly2tri-c/refine/line.c
similarity index 100%
rename from refine/line.h
rename to poly2tri-c/refine/line.h
similarity index 100%
rename from refine/mesh.c
rename to poly2tri-c/refine/mesh.c
similarity index 100%
rename from refine/mesh.h
rename to poly2tri-c/refine/mesh.h
similarity index 100%
rename from refine/point.c
rename to poly2tri-c/refine/point.c
similarity index 100%
rename from refine/point.h
rename to poly2tri-c/refine/point.h
similarity index 100%
rename from refine/pslg.c
rename to poly2tri-c/refine/pslg.c
similarity index 100%
rename from refine/pslg.h
rename to poly2tri-c/refine/pslg.h
similarity index 100%
rename from refine/refine.h
rename to poly2tri-c/refine/refine.h
similarity index 100%
rename from refine/rmath.c
rename to poly2tri-c/refine/rmath.c
similarity index 100%
rename from refine/rmath.h
rename to poly2tri-c/refine/rmath.h
similarity index 100%
rename from refine/utils.c
rename to poly2tri-c/refine/utils.c
similarity index 100%
rename from refine/utils.h
rename to poly2tri-c/refine/utils.h
similarity index 100%
rename from refine/vector2.c
rename to poly2tri-c/refine/vector2.c
similarity index 100%
rename from refine/vector2.h
rename to poly2tri-c/refine/vector2.h
similarity index 99%
rename from render/mesh-render.c
rename to poly2tri-c/render/mesh-render.c
index da57c1c635d660191c780af31bb7b063d4815bb3..1e3c2c119d9bf3a65910e0eae4a6b8b4ff930da1 100644 (file)
@@ -33,7 +33,7 @@
 #include <glib.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <refine/refine.h>
+#include <poly2tri-c/refine/refine.h>
 #include "mesh-render.h"
 
 /* Most computations using the Barycentric Coordinates are Based on
similarity index 99%
rename from render/svg-plot.c
rename to poly2tri-c/render/svg-plot.c
index 5829caa42cfcccc5c66d38180d5011a0a3081b45..708a97afeb57f35bfb9812700a40ed70be917c32 100644 (file)
@@ -35,7 +35,7 @@
 #include <math.h>
 #include <glib.h>
 
-#include <refine/triangulation.h>
+#include <poly2tri-c/refine/triangulation.h>
 
 #include "svg-plot.h"
 
similarity index 98%
rename from render/svg-plot.h
rename to poly2tri-c/render/svg-plot.h
index bc9ff1fb270491f42744fc68ef5d6c67572865b4..1f9e0aab05ace47c0c8a83369387e9d5349f6810 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef __P2TC_RENDER_SVG_PLOT_H__
 #define __P2TC_RENDER_SVG_PLOT_H__
 
-#include <refine/refine.h>
+#include <poly2tri-c/refine/refine.h>
 
 #define PLOT_LINE_WIDTH 0.40
 #define ARROW_SIDE_ANGLE (G_PI / 180 * 30)