In order to create an outline image of a ship our plugin duplicates the edgecurves of the breps, including the non-naked edges if the brep was splitted on a kink.
This usually works fine, but one of our testcases has a surface with one singular edge that causes the command to abort silently. While debugging I found that brep.DuplicateEdgeCurves(false) has an AccessViolationException which I cannot catch in the calling code to handle this properly. Which makes sense from a programmer’s point of view.
The surface seems sound to me and also to Rhino 5SR12 (it’s valid, not bad).
I’ve attached the failing surface and a testcommand and screenshots of the exception. RH5SR12 - Brep.DuplicateEdgeCurves.zip (103.2 KB)