Trimming these simple curves results in 700+ duplicate curves, why?

This is a very simple script for removing tight corners for CNC routing using line bisectors. These are forms for bending aluminum so I need sharp interior corners. Something to do with these closed curves (23 letters) is screwing everything up, a simple trim operation results in 700+ duplicate curves somehow.

If these are just bad curves, is there a way to clean them up before trimming them? Internalized them in the script.

The red circle indicates what I’m trying to achieve but done through Trim in Rhino with no issues.

round (31.3 KB)

Flatten trims R input.

1 Like