summaryrefslogtreecommitdiff
path: root/geometry.go
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-05-20 12:16:36 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-05-20 12:20:19 +0200
commitfbd513c7c2531c12fcd7e81bd4ce66c5ec5f6902 (patch)
treeb564bbd69ab81e823c2153d57d0bbc40508458d7 /geometry.go
parent904fa404b6e38564d1486b3b698ef1cb3d63ba8b (diff)
downloadstlscope-fbd513c7c2531c12fcd7e81bd4ce66c5ec5f6902.tar
stlscope-fbd513c7c2531c12fcd7e81bd4ce66c5ec5f6902.tar.zst
stlscope-fbd513c7c2531c12fcd7e81bd4ce66c5ec5f6902.zip
Implement STL Parsing
Diffstat (limited to 'geometry.go')
-rw-r--r--geometry.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/geometry.go b/geometry.go
new file mode 100644
index 0000000..c9453a9
--- /dev/null
+++ b/geometry.go
@@ -0,0 +1,20 @@
+// vim: shiftwidth=4 tabstop=4 noexpandtab
+
+package main
+
+type Point struct {
+ x float32
+ y float32
+ z float32
+}
+
+type Triangle struct {
+ a *Point
+ b *Point
+ c *Point
+}
+
+type Surface struct {
+ triangles []*Triangle
+}
+