ryanmaguire / Mathematics-and-Physics

Various notes on mathematics and physics organized in several volumes.
GNU General Public License v3.0
9 stars 2 forks source link

Link on github pages is wrong #3

Closed neozhaoliang closed 3 years ago

neozhaoliang commented 3 years ago

Hi: Thanks for these beautiful illustrations.

The link on github pages is wrong, I assume it should jump to this source code repository, not the gallery page itself?

ryanmaguire commented 3 years ago

Hello,

Sorry, it's been a while since I've worked on this. Currently working on a vector graphics library in C so I can continue with this project.

Could you clarify what you're asking?

neozhaoliang commented 3 years ago

2021-06-28 13-25-26屏幕截图

I mean, the button above does not lead to the source code: https://ryanmaguire.github.io/asymptote/

ryanmaguire commented 3 years ago

Ohhh! Thank you for bringing that to my attention. I have been greatly reorganizing this repo and trying to clean up the asymptote code and tikz code. I'll fix that once the reorganization is complete.

Thanks!

neozhaoliang commented 3 years ago

BTW, if you are interested in drawing hyperbolic/euclidean figures, maybe you can have a look at my project here:

https://github.com/neozhaoliang/pywonderland/blob/master/src/uniform-tilings

Also the way you draw fractals in python can be made much faster.

ryanmaguire commented 3 years ago

Hi again,

Sorry for the delayed response, I need to learn to check the issues section more often. I am actually trying to algorithmically produce hyperbolic tilings. Specifically the (8,3) tiling to represent embeddings of graphs on genus 2 surfaces. Unfortunately the link you left gave me a 404 error.

In my email there was a question about my C library that seems to have disappeared. It does not (unfortunately) support latex embeddings, but does support 3D drawings. 2D images are rendered as SVG, which I could not for the life of me figure out how to embed LaTeX into.

The reason I started it was to draw very large random walks on 2D manifolds. Particularly a random walk with 500,000 steps on a torus. Asymptote unfortunately crashes if you try to draw that many elements. Here's the preliminary code to make such a figure. https://github.com/ryanmaguire/libtmpl/blob/master/extras/random_walk/tmpl_random_walk_on_a_torus_to_svg.c

neozhaoliang commented 3 years ago

Oh my mistake. The code for that project has been moved to the released code here: https://github.com/neozhaoliang/pywonderland/releases/tag/0.1.0

The documentation is online:
https://pywonderland.com/uniform-tilings/

I understand making svg/eps figures contain lots of elements can result in very large file, not suitable for embedding into pdf. Better to convert to png. Asymptote may has a limit on the size of its output buffer? I don't know ...

The (8, 3) tiling produced by the program I mentioned above:

8-2-3

I'm also planning more projects on hyperbolic space visualizations, after I finished some euclidean tiling programs at hand.