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

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

$
0
0
I made a lot of progress with latest commit:
https://github.com/Hermann-SW/planar_gr ... d7d4d7427e

For the polyhedra like planar graphs all is fine:

Code:

./rjs node.straight_line_drawing.3D.2.js graphs/C30.a 6 w
C30.sphere.mapping_no_problem.png
I had to switch for round edges along great circles of sphere for the problem described next.

I created a maximal planar random graph on 7 vertices, with this Tutte embedding:
mp7.png
I had not awaited to see edge crossing on the sphere with the mapping I used without problems sofar ...
(the previous planar graph that is mapped onto the sphere is drawn on plane below sphere as well)
mp7.sphere.mapping_problem.png

P.S:
JSCAD will get animation soon, OpenSCAD has it since quite some time:
Image

Statistics: Posted by HermannSW — Tue Aug 27, 2024 9:48 pm



Viewing all articles
Browse latest Browse all 5359

Trending Articles