From aad26e524922d144fd4ed023dc0d60fadb62f253 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 21 May 2021 15:11:50 +0200 Subject: First Rendering of an STL Model --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') 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() -- cgit v1.2.3-70-g09d2