MoI embedded inside CPython 3.91?

 From:  bemfarmer
10134.10 In reply to 10134.9 
_SavePointNetwork.js script, by Brian E. McMillin, February 2021

This script outputs a CSV style text file containing four fields,
[x, y, z, curveIndex], with "comma" or other delimiter. (No []).
Each row contains the point coordinates for one point on the associated indexed parent curve.
The parent curve entries are also in order.
The values of x, y, and z are real numbers, and iCrv = crvIndex is a positive integer, which could include 0.

Input to the _SavePointNetwork script is a set of curves.
The curves could be in a network representing a surface.
For each sequential curve, a startpoint is arrayed on the curve,
to create numPts number of points, in order, for that curve.

Credits:
Michael's scripts Lineweb, SavePointFile (non-ActiveX version). (Grafted together)

Several hours were spent on an incomplete node version.
This script turned out to be fairly easy and simple, after much effort extracting and comparing parts of the credit scripts.

Yet to be done:
A companion script would be ImportPointNetwork, which does the reverse.
ImportPointFile + Karstens Import/ CSV_File node.

Testing has been very limited...

Python import CSV, Bonnet transformation, and export CSV.

Also attached is the network of curves which is the integration domain.
(This networks represents the Complex number plane, and the points complex numbers.)
The network density could be increased or decreased.
It is associated with bonnet angle in radians of 0.66348297051143481, which is an angle of about 38.0147...~ degrees.

- Brian

To utilize the script, place the .js and .htm files in the command folder of MoI. In my case this is the "additional non-stock script" command folder in AppData.
The _ prefix can be removed, or left in for usage with CustomUI.