Turning off assertions
Closed this issue · 5 comments
iwoj commented
I'm having trouble debugging my code because Euclid runs its assertions when I use a Debug scheme configuration. Is there a way to suppress these without using a Release configuration?
nicklockwood commented
@iwoj the simplest thing would be to comment out or delete the assertions.
But Euclid isn't supposed to assert with valid data, so if you can tell me how to reproduce the assertions you're hitting, I'll try to fix them.
iwoj commented
I’m trying to import a mesh from an STL file and I hit an assertion that the mesh must be convex.
Here’s the file.
https://www.dropbox.com/s/uwjynw7u9wdon2c/fox2.stl?dl=0
… On Jul 6, 2021, at 1:14 PM, Nick Lockwood ***@***.***> wrote:
@iwoj the simplest thing would be to comment out or delete the assertions.
But Euclid isn't supposed to assert with valid data, so if you can tell me how to reproduce the assertions you're hitting, I'll try to fix them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
nicklockwood commented
@iwoj I'm not hitting this assertion when I try it. Can you share the code you are using to load the STL file?
iwoj commented
Looks like it happens when I try to run mesh.detesselate()
on the imported mesh.
nicklockwood commented
@iwoj can you try with the latest develop branch? I'm not seeing an assertion.