diff options
| author | xengineering <mail2xengineering@protonmail.com> | 2021-05-21 14:37:02 +0200 | 
|---|---|---|
| committer | xengineering <mail2xengineering@protonmail.com> | 2021-05-21 14:37:02 +0200 | 
| commit | 10679867f1742121f5e953247406cfb83f3b3e65 (patch) | |
| tree | 4b0021e5c04b147830ba3367b4f351ccf18cb332 /stl.go | |
| parent | feff22144689df9da5ddb8e9693326b77feb7949 (diff) | |
| download | stlscope-10679867f1742121f5e953247406cfb83f3b3e65.tar stlscope-10679867f1742121f5e953247406cfb83f3b3e65.tar.zst stlscope-10679867f1742121f5e953247406cfb83f3b3e65.zip  | |
First successful homogenous Transformation on GPU
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]  | 
