summaryrefslogtreecommitdiff
path: root/stl.go
diff options
context:
space:
mode:
Diffstat (limited to 'stl.go')
-rw-r--r--stl.go8
1 files changed, 4 insertions, 4 deletions
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]