From 10679867f1742121f5e953247406cfb83f3b3e65 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 21 May 2021 14:37:02 +0200 Subject: First successful homogenous Transformation on GPU --- stl.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stl.go') diff --git a/stl.go b/stl.go index f1d0a60..d2a194d 100644 --- a/stl.go +++ b/stl.go @@ -14,21 +14,21 @@ import ( ) // representation of binary STL file content -type BinaryStl struct { +type StlModel struct { header []byte numberOfTriangles uint32 surface Surface } // read and parse a given binary STL file -func ReadBinaryStlFile(filePath string) (BinaryStl, error) { +func ReadBinaryStlFile(filePath string) (StlModel, error) { fileContent, err := ioutil.ReadFile(filePath) if err != nil { - return BinaryStl{}, err + return StlModel{}, err } - model := BinaryStl{} + model := StlModel{} model.surface = Surface{} model.header = fileContent[0:80] -- cgit v1.2.3-70-g09d2