nannou-org / nannou

A Creative Coding Framework for Rust.
https://nannou.cc/
5.97k stars 304 forks source link

Nannou for Computational Geometry ? #685

Open co-ord opened 3 years ago

co-ord commented 3 years ago

Hi !

I have absolutely no experience with Rust but would really like to give Nannou a try. Before taking the plunge would you mind telling me if Nannou has built-in tools or packages/libraries dedicated to computational geometry ?

I'm thinking about things like:

MacTuitui commented 3 years ago

Nothing at all related to computational geometry.

Now it is my belief that nannou was designed on the shoulder of giants, so a lot of crates are doing the heavy lifting. lyon is doing the tesselation for example, and might have polygon clipping, and might be accessible as such (I don't think so though, but I've not looked actively for that feature).

(I've implemented for my projects a lot of simple algorithms that fall into the lines of what you are asking, but it's sadly at a very poor level that even I can't reuse the code properly...)

You might get lucky with the bindings for cgal though they seem to be in a limbo state...