After considerable study and play, a hexagon grid was conformally mapped to the surface of a torus. Kagome grid was mapped also.
Also I've written my first nodeeditor node called conformalMapT, where T stands for the Torus. The new node is included as a fourth node in Transform2MOD.js.
Just copy the Transform2MOD.js file to nodeeditor/nodes/extensions. (This duplicates the old 3 nodes.) Amazingly, somehow the node gets included in Transform2 menu. HOW or WHY is unknown.
(The Transform2 node should be replaced with the new .js, with the same name.)
The conformal mapping preserves angles locally, whereas nonconformal map shrinks and stretched curves.
The new conformalMapT node is really just a modification of Karsten's stereoProject node, which is itself a conformal mapping from the plane, to the sphere. It is actually an inverse of the regular stereoprojection from the sphere to the plane. (So it turned out to not be very much work, just swapping out a few parameters and equations.) I would like to ask Karsten where he got his lambda equations? I did change the mode to 1, which is likely "Short".
References and credits, and considerable documentation is included in the attached PDF.
The mapped hexagon sides can be easily Joined by MoI, and a 3 point (to be swept) circle easily created on the torus, as well as the sweep circle, to create the surface of the torus.
The torus surface may be trimmed by selecting all of the joined mapped hexes, in MoI. (Should be possible too in nodeeditor?)
A nonconformal hex mapping would only require changing a few equations.
Also, it should be possible to map other planar curves and points onto a torus. Also triangle grids, and small rectangular grids.
I do not know how FLOW works, or if it is conformal...
- Brian
Edit, see post 18 for upgraded files...
