Hmm, I wonder what python raylib is like, that might be the ticket.
Hmm, I wonder what python raylib is like, that might be the ticket.
Being able to just plot something and see the algorithm on-screen has been an incredible benison.
I'm hopeful OpenPythonSCAD will be merged into OpenSCAD presently.
I have a python workflow for my laser cutter, I can make a drawing with drawsvg and then cut it with lightburn.
I have used build123d to make 3d models in python but not yet found a way to generate toolpaths for my milling machine.
Give the code a try!
https://github.com/WillAdams/gcodepreview
If you can describe a simple part I can work it up for you and add it to the examples.
EDIT: Alternately, try pyCAM, or Kiri:Moto w/ an STL?
For example you might say "generate an interactive react app that implements a simple pathfinder that uses A* with a penalty for going near edges". You can also just drop in a paper or pseudo code of an algorithm you're ideating on.
Here's an example how we use react cosmos for our autorouter[2]
[1] https://reactcosmos.org/docs [2] https://unraveller.vercel.app/?fixtureId=%7B%22path%22%3A%22...
Though admittedly animations are quite arduous.