Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5237

Other programming languages • Re: JavaScript graph library, for embedding and drawing planar graphs in 2D and/or sphere surface

$
0
0
It took a while, and work is not completely done yet.
Newest version does at least for the problematic edge work with latest commit.
So for edge 2 this command ...

Code:

./rjs node.straight_line_drawing.3D.2.js mp7.a 4.8 w 2
... produces this correct grey spherical circle arc edge:
spherical_circle_arc.first_working.png
But for edge 3 the edge is on correct spherial circle, and has correct length, but does not start and end at the vertices:
spherical_circle_arc.still_problem.png

Still quite some stuff to fix, but solution comes closer.
After that will work, I plan to port the created OpenSCAD to generate JSCAD instead.
That will allow to make (currently dummy) new link "spherical projection" here show sphere embedding for current graph:
https://hermann-sw.github.io/planar_graph_playground/

Statistics: Posted by HermannSW — Sun Sep 08, 2024 11:31 pm



Viewing all articles
Browse latest Browse all 5237

Trending Articles