summaryrefslogtreecommitdiff
path: root/stl.go
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-05-21 14:37:02 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-05-21 14:37:02 +0200
commit10679867f1742121f5e953247406cfb83f3b3e65 (patch)
tree4b0021e5c04b147830ba3367b4f351ccf18cb332 /stl.go
parentfeff22144689df9da5ddb8e9693326b77feb7949 (diff)
downloadstlscope-10679867f1742121f5e953247406cfb83f3b3e65.tar
stlscope-10679867f1742121f5e953247406cfb83f3b3e65.tar.zst
stlscope-10679867f1742121f5e953247406cfb83f3b3e65.zip
First successful homogenous Transformation on GPU
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]