0

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?

Broken Mesh

Expected Mesh

Rahul
  • 1
  • Possibly something in your code that triggers undefined behavior? https://docs.blender.org/api/current/info_gotcha.html#help-my-script-crashes-blender – Robert Gützkow Dec 05 '19 at 17:56
  • 1
    Are you using any bpy.ops commands? Some are context sensitive, require certain windows or react to e.g. the mouse position.# – Leander Dec 05 '19 at 18:26
  • @RobertGützkow -- yes I think bpy.ops is the cause. – Rahul Dec 11 '19 at 21:33
  • @Leander I am using bpy.ops. I think that might be the cause for the inconsistency. I have found this post and I will correct this and get back. – Rahul Dec 11 '19 at 21:35

0 Answers0