Finally I got the angle calculations and rotations right:
now OpenSCAD "edge3(v,w,c)" draw spherical arc from sphere projection of v to w, with center coordinate c
https://github.com/Hermann-SW/planar_gr ... ng.3D.2.js
Looking at the top mapped edges on sphere (corresponding to planar graph outer face), I first thought something is wrong. But it is not, and no edges intersect by the stereographic projection from north pole. Stereographic projection is angle preserving, which can be seen simplest by mapping of bottom right outer face vertex with biggest angle >270°:
With more vertices it looks more familiar for C20:
now OpenSCAD "edge3(v,w,c)" draw spherical arc from sphere projection of v to w, with center coordinate c
https://github.com/Hermann-SW/planar_gr ... ng.3D.2.js
Looking at the top mapped edges on sphere (corresponding to planar graph outer face), I first thought something is wrong. But it is not, and no edges intersect by the stereographic projection from north pole. Stereographic projection is angle preserving, which can be seen simplest by mapping of bottom right outer face vertex with biggest angle >270°:
Code:
./rjs node.straight_line_drawing.3D.2.js graphs/mp7.a 4 w
With more vertices it looks more familiar for C20:
Code:
./rjs node.straight_line_drawing.3D.2.js graphs/C20.a 4
Statistics: Posted by HermannSW — Thu Sep 12, 2024 8:11 am