From fbd513c7c2531c12fcd7e81bd4ce66c5ec5f6902 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 20 May 2021 12:16:36 +0200 Subject: Implement STL Parsing --- geometry.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 geometry.go (limited to 'geometry.go') 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 +} + -- cgit v1.2.3-70-g09d2