<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Design with random values]]></title><description><![CDATA[<p dir="auto">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) ?</p>
<p dir="auto">The script is here : <a href="https://openjscad.org/#https://raw.githubusercontent.com/gilboonet/designs/master/laby_rond.jscad" rel="nofollow ugc">https://openjscad.org/#https://raw.githubusercontent.com/gilboonet/designs/master/laby_rond.jscad</a></p>
]]></description><link>https://openjscad.nodebb.com/topic/107/design-with-random-values</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 03:28:40 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/107.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Aug 2019 07:40:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Design with random values on Thu, 29 Aug 2019 07:23:46 GMT]]></title><description><![CDATA[<p dir="auto">Thank you. I will try something similar, it just needs to add a parameter to choose a design number, if the table of random values doesn't have values for this number they are randomly feeded, else they are used for the rendering. Such "mechanism" could be handy for designs using both random values and more than one viewing mode.</p>
]]></description><link>https://openjscad.nodebb.com/post/180</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/180</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Thu, 29 Aug 2019 07:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to Design with random values on Thu, 29 Aug 2019 02:13:04 GMT]]></title><description><![CDATA[<p dir="auto">Maybe you could build a table of randon values while in 3D mode, then save those for use by the 2D mode.</p>
]]></description><link>https://openjscad.nodebb.com/post/179</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/179</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Thu, 29 Aug 2019 02:13:04 GMT</pubDate></item></channel></rss>