I am generating some shape using python in Blender. Most of the times, when I run the code I get what I expect. But sometimes I see the broken mesh as I have shown in the figure.
As far as code's functionality is concerned, I am not using any random function/ number. Code is expected to give out deterministic result every time I run it.
Any suggestions on what might be causing this inconsistent behavior?