enspiral-cherubi / three-stl-loader

@aleeper's THREE.STLLoader repackaged as a node module
https://www.npmjs.com/package/three-stl-loader
MIT License
13 stars 13 forks source link

Fixed uppercase solid validation #7

Closed bohdanbirdie closed 1 year ago

bohdanbirdie commented 6 years ago

There was an issue when we use STL models exported from Unity So the first line is Solid Unity Mesh, this causes an error Offset is outside the bounds of the DataView. This is because we use ASCII representation of letters, so s !== S

Added additional validation for uppercase. Values will be set to lowercase automatically.