-
Notifications
You must be signed in to change notification settings - Fork 9
Importing STL files shows all sorts of artifacts #7
Comments
I am aware of artifacting bug(s) somewhere in the That said there may be an issue in how you import the triangles. Modify the for loop block to do the following
Let me know if this helps. Keep in mind it might not fix all of the artifacts, or any at all if stl triangles were already oriented well. |
Thanks! Yeah it didn't help much. I'm sick ATM so it won't be for a while before I can look at this again. Thanks for taking a look. |
Alright, good to know others are experiencing this bug. I've been wanting to fix it for some time now but I'm quite swamped with university work. If all goes well I'll be graduating this year and so be free to put in some more time to |
Hey there! I'm not sure what the plan is with this but I ended up writing my own SDF for meshes a while ago that seems fairly stable. I think the issue is that the kd-tree that's being used doesn't always give the proper closest triangle. I ended up writing my own boundary interval hierarchy implementation of it, which worked well for a few meshes I tried, although sharp edges tended to disappear (not sure if it's because of some bug in my SDF or because of how the mesh generation process works in general) I ended up switching approaches in my project so it won't be developed further, but I could try to work it into this repo if you're interested, here's a link to it: https://gist.github.com/cactorium/91ac2d917a6d9378a43d70ef881aea44 |
Thank you so much for your suggestion! That looks awesome and I'd love to see how it stacks up against the current buggy implementation! If you have time to incorporate it into the |
I'll try to work on it this weekend! |
Moving development to https://github.com/soypat/gsdf. Closing all issues here. |
Importing the HeartGears2-3.stl file from here:
https://www.thingiverse.com/thing:243278/files
using this code, has lots of artifacts, and holes in the outputed stl file.
The text was updated successfully, but these errors were encountered: