nicklockwood / Euclid

A Swift library for creating and manipulating 3D geometry
MIT License
644 stars 53 forks source link

Add 'vertex' in front of each vertex vectors in STL export #104

Closed mortenbekditlevsen closed 1 year ago

mortenbekditlevsen commented 1 year ago

I tried importing an STL file exported using Euclid into Fusion 360 and it failed. I looked briefly at the documentation https://en.wikipedia.org/wiki/STL_(file_format) and it appears that the string 'vertex' in front of each vertex coordinates is missing.

nicklockwood commented 1 year ago

Gosh, that's embarrassing - thanks for catching it. I need to fix the tests as well but I'll merge this anyway so you get credit in the git history.

mortenbekditlevsen commented 1 year ago

Thanks, and apologies for neglecting the tests. I'll make sure to include those for any future contributions.

I made an experimental implementation of binary STL export that I thought might be a relevant addition. What do you think?