28 Aug 2019, 07:40

Hello, I have a little programming design problem : I made a design that randomly builds a circular labyrinth. It has two modes, one to view the design in 3d as it would be when finished, and one in 2d with the background to lasercut. The idea is to first view 3d mode and update till the random arrangement looks good, then switch to 2d to save the pattern to .svg to cut it. My problem is that as the script uses Math.random(), when you switch from 3d to 2d, the design will change, is there a way to be able to use designs with random values that would not be lost when switching parameters (mode here) ?

The script is here : https://openjscad.org/#https://raw.githubusercontent.com/gilboonet/designs/master/laby_rond.jscad