While processing many curves every now and than I kept having a hard crash no crash report nothing. Finally I’ve tracked down a reproducible example.
I know the curve is far from origin, I know it has stacked controlpoints and is rather odd.
What I do not know is how to prevent Rhino from hard crashing like this.
Is there any testing I can do before passing the curve to CreatePipe?
Run the below python script on the attached file.
Hi @Willem, it also crashes using the _Pipe command. If the curve is exploded and _SelShortCrv is used, 2 segments are found smaller than tolerance. After removing them and joining the remaining curves, _Pipe creates something ugly without crashing.
You might add a check for the boolean value returned from:
Thanks for the testing. Meanwhile I indeed made a method to sanitize the curve input one of the actions is culling short segments. Good to pointout the RemoveShortSegments method as I was duplicating segments and joining them back. I did not realize RemoveShortSegments being available for other that polylines
However I’d expect Piping to not crash this hard regardless of the input and as such consider this a bug.