summaryrefslogtreecommitdiff
path: root/clip.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-26 15:22:02 +0000
committerrodri <rgl@antares-labs.eu>2024-09-26 15:22:02 +0000
commit3155c6737832c54310c70ecaaf8667d0362de5e8 (patch)
tree5046974fdbaef855fb29d19671a9b80a9deb41f2 /clip.c
parenta8c789be9ab0fec65004118b7df373e84900cb1a (diff)
downloadlibgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.tar.gz
libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.tar.bz2
libgraphics-3155c6737832c54310c70ecaaf8667d0362de5e8.zip
implement a parser for a model(6). get rid of the libobj dependency.
Diffstat (limited to 'clip.c')
-rw-r--r--clip.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/clip.c b/clip.c
index 7548b36..14fdc7f 100644
--- a/clip.c
+++ b/clip.c
@@ -4,7 +4,6 @@
#include <draw.h>
#include <memdraw.h>
#include <geometry.h>
-#include "libobj/obj.h"
#include "graphics.h"
#include "internal.h"
@@ -52,12 +51,6 @@ fprintpoly(int fd, Polygon *p)
fprint(fd, "%d/%lud p %V\n", i, p->n, p->v[i].p);
}
-static int
-eqpt3(Point3 a, Point3 b)
-{
- return vec3len(subpt3(a, b)) < 1e-6;
-}
-
/*
* references:
* - “Clipping Using Homogeneous Coordinates”, James F. Blinn, Martin E. Newell, SIGGRAPH '78, pp. 245-251