Strange Mesh Display issues while animating in Grasshopper

Hi there,

I’ve been working on an animation using the ‘animate’ feature of a typical slider.
There are a variety of graph mappers that control parameters of my geometry that is then meshed, thickened, then rotated in 2 axies.

For some reason there are a few frames where the mesh becomes invalid where just the wireframe or nothing at all is displayed. For whatever reason there are just some values that breaks the script and I don’t really know why. Some of the values going in result in the script breaking early that are simple to catch and fix. But it doesn’t account of all of the failed frames; it seems like sometimes if fails while trying to extrude the end mesh, or even when rotating it.

Can anyone suggest any changes I can make to mitigate these failed frames?

231106_Parametric_Trash_Bin.gh (41.6 KB)

I’ve learned that some of the rotation issues can be resolved by rounding the rotation angles. Still seems like there are other sources of failed frames that I don’t understand…