diff options
Diffstat (limited to 'stl.go')
-rw-r--r-- | stl.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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] |