This script will let you remove any discontinuity from a closed curve, rebuilding that points with periodic conditions.
It works both for planar and non planar curves.
To add this user object, go to Files > Special Folder > User Object Folder & paste the .ghuser file into the folder. You can find the component under CalNic in the Grasshopper Plugins Tabs.
For feedback and suggestions please text to : firstname.lastname@example.org