Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO::STL can't read a Blender-produced file #504

Closed
mohawk2 opened this issue Nov 27, 2024 · 2 comments
Closed

IO::STL can't read a Blender-produced file #504

mohawk2 opened this issue Nov 27, 2024 · 2 comments

Comments

@mohawk2
Copy link
Member

mohawk2 commented Nov 27, 2024

Shugo emailed me reporting this. A cut-down file that triggers this:

solid Apple'sFinder and Blender can read
 facet normal 0.84410374399741939 -0.34963905512334476 -0.40649895510566048
  outer loop
   vertex 0.0017237013671547174 0.10291291773319244 -0.0015311292372643948
   vertex 0.0019548346754163504 0.10463636368513107 -0.0025335513055324554
   vertex 0.0024375757202506065 0.10463636368513107 -0.0015311292372643948
  endloop
 endfacet
 facet normal 0.60368325273783552 -0.25005312352273268 -0.75699403285652889
  outer loop
   vertex 0.0013823517365381122 0.10325426608324051 -0.0025335513055324554
   vertex 0.00076726125553250313 0.10386935621500015 -0.0032272490207105875
   vertex 0.0010849653044715524 0.10463636368513107 -0.0032272490207105875
  endloop
 endfacet
 facet normal 0.60368283778508947 -0.25005334258074174 -0.75699429141040397
  outer loop
   vertex 0.0013823517365381122 0.10325426608324051 -0.0025335513055324554
   vertex 0.0010849653044715524 0.10463636368513107 -0.0032272490207105875
   vertex 0.0019548346754163504 0.10463636368513107 -0.0025335513055324554
  endloop
 endfacet
endsolid
@mohawk2
Copy link
Member Author

mohawk2 commented Nov 27, 2024

Another file that causes a different failure:

solid 
 facet normal 0.84410374399741939 -0.34963905512334476 -0.40649895510566048
  outer loop
   vertex 0.0017237013671547174 0.10291291773319244 -0.0015311292372643948
   vertex 0.0019548346754163504 0.10463636368513107 -0.0025335513055324554
   vertex 0.0024375757202506065 0.10463636368513107 -0.0015311292372643948
  endloop
 endfacet
 facet normal 0.60368325273783552 -0.25005312352273268 -0.75699403285652889
  outer loop
   vertex 0.0013823517365381122 0.10325426608324051 -0.0025335513055324554
   vertex 0.00076726125553250313 0.10386935621500015 -0.0032272490207105875
   vertex 0.0010849653044715524 0.10463636368513107 -0.0032272490207105875
  endloop
 endfacet
 facet normal 0.60368283778508947 -0.25005334258074174 -0.75699429141040397
  outer loop
   vertex 0.0013823517365381122 0.10325426608324051 -0.0025335513055324554
   vertex 0.0010849653044715524 0.10463636368513107 -0.0032272490207105875
   vertex 0.0019548346754163504 0.10463636368513107 -0.0025335513055324554
  endloop
 endfacet
endsolid

@mohawk2
Copy link
Member Author

mohawk2 commented Nov 28, 2024

Shugo reports that the second commit fixes Blender-produced ASCII STL files, so I am closing this.

@mohawk2 mohawk2 closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant