summaryrefslogtreecommitdiff
path: root/lib/gfxpoly/test.c
diff options
context:
space:
mode:
authorMatthias Kramm <kramm@quiss.org>2009-05-03 02:58:49 +0200
committerMatthias Kramm <kramm@quiss.org>2009-05-03 02:58:49 +0200
commitde3641737991ed13571eb947068472cf73001032 (patch)
tree7293da558f4b408e1dacd9baddf5d2106fb3cb80 /lib/gfxpoly/test.c
parentae7c92fe5721f97e786a8bbe9153eadbf292460d (diff)
more bugfixes in new polygon intersector
Diffstat (limited to 'lib/gfxpoly/test.c')
-rw-r--r--lib/gfxpoly/test.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/gfxpoly/test.c b/lib/gfxpoly/test.c
index aff9208e..4ab1004b 100644
--- a/lib/gfxpoly/test.c
+++ b/lib/gfxpoly/test.c
@@ -1,6 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
-#include <assert.h>
#include <memory.h>
#include <math.h>
#include "../gfxtools.h"
@@ -53,13 +52,13 @@ gfxline_t* mkchessboard()
unsigned int r = 0;
int spacing = 20;
- //int num_caros = 40;
- //int l = 5;
- //char do_centerpiece=1;
+ int num_caros = 40;
+ int l = 5;
+ char do_centerpiece=1;
- int num_caros = 4;
- int l=1;
- char do_centerpiece=0;
+ //int num_caros = 4;
+ //int l=1;
+ //char do_centerpiece=0;
for(x=-l;x<=l;x++)
for(y=-l;y<=l;y++) {
@@ -251,7 +250,6 @@ void test3()
m.m11 = cos(t*M_PI/180.0);
m.tx = RANGE*1.41/2;
m.ty = RANGE*1.41/2;
- printf("%d\n", t);
gfxline_t*l = gfxline_clone(line);
gfxline_transform(l, &m);
@@ -337,7 +335,7 @@ void test4()
char* filename = allocprintf("%s/%s", dir, file->d_name);
windrule_t*rule = &windrule_evenodd;
- gfxpoly_t*poly = gfxpoly_from_file(filename, 0.01);
+ gfxpoly_t*poly = gfxpoly_from_file(filename, 1.0);//0.01);
free(filename);
double zoom = 1.0;
@@ -487,5 +485,5 @@ void test5()
int main()
{
- test0();
+ test3();
}