nicklockwood/Euclid

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?

@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

@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.

@iwoj can you try with the latest develop branch? I'm not seeing an assertion.