I am trying to use the flexible extrude-geometry engine to soften the edges of extruded shapes. In this fiddle, the softening is parameterized with the variable "bevelFrac, with a valid range of 0 ~ 1. The bigger it is, the more dominant the beveling is.
Here’s my problem: When the bevels called for are above some limit (a messy function of the shape’s geometry), the vertices which are created for the bevel are too far indented from their origin edge, and they clip to the opposite side of the final 3d object, creating “Jedi Fighter Wings” artifacts on the object.
I understand that this is an artifact due to invalid inputs, but what I would dearly like is some sort of warning from the extrude-geometry creation engine that would tell me that this clipping has occurred, so I can programmatically shrink the bevel inputs to prevent the disturbing artifacts from occurring.
My question: How can I tell (programmatically) that this clipping is happening?
Thanks to all and best regards, jb