summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-05-21 15:11:50 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-05-21 15:11:50 +0200
commitaad26e524922d144fd4ed023dc0d60fadb62f253 (patch)
tree862d5b1b813128f7912504f0261b11cc8eda9941 /main.go
parent78a83df3572c7a91dbcbca21d74d8d11170d947c (diff)
downloadstlscope-aad26e524922d144fd4ed023dc0d60fadb62f253.tar
stlscope-aad26e524922d144fd4ed023dc0d60fadb62f253.tar.zst
stlscope-aad26e524922d144fd4ed023dc0d60fadb62f253.zip
First Rendering of an STL Model
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 8f2afcc..6444871 100644
--- a/main.go
+++ b/main.go
@@ -21,10 +21,11 @@ func main() {
parseFlags(&stlFilePath)
// parse STL file
- _, err := ReadBinaryStlFile(stlFilePath)
+ stl, err := ReadBinaryStlFile(stlFilePath)
if err != nil {
log.Fatal(err)
}
+ vertices = stl.toVertices()
// initialize application (includes GLFW/window)
var app App = newApp()