summaryrefslogtreecommitdiff
path: root/meme/plane.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2014-09-12 22:03:30 (GMT)
committerWerner Almesberger <werner@almesberger.net>2014-09-12 22:03:30 (GMT)
commit2cff1edad1a3ff6e4379ec90602c276a1a27dd51 (patch)
treed1fe37a9105cbcb9a35ef4798cf6c2d718a06436 /meme/plane.h
parent7b7435012f7e510e08662463b0865327824e2ab9 (diff)
downloadmisc-2cff1edad1a3ff6e4379ec90602c276a1a27dd51.zip
misc-2cff1edad1a3ff6e4379ec90602c276a1a27dd51.tar.gz
misc-2cff1edad1a3ff6e4379ec90602c276a1a27dd51.tar.bz2
meme/: show intersection with XZ plane (WIP)
Doesn't look quite right yet. Also, there are rendering errors.
Diffstat (limited to 'meme/plane.h')
-rw-r--r--meme/plane.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/meme/plane.h b/meme/plane.h
new file mode 100644
index 0000000..2389504
--- /dev/null
+++ b/meme/plane.h
@@ -0,0 +1,27 @@
+/*
+ * plane.h - Intersect mesh with planes
+ *
+ * Written 2014 by Werner Almesberger
+ * Copyright 2014 by Werner Almesberger
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+
+#ifndef PLANE_H
+#define PLANE_H
+
+#include "mesh.h"
+
+
+struct point {
+ int x, y;
+};
+
+
+struct point *plane_xz(int y, unsigned *n);
+
+#endif /* !PLANE_H */