<?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[Simple 2d parametric design]]></title><description><![CDATA[<p dir="auto">Hello, is it possible to use JSCAD to make a parametric 2d design ? I made a basic frame pattern from a 20x20x5 3d model, and unfolded its pattern that is made of 4x the same piece. I figured that this pattern can be used to make frames of any length only by changing the distance between the top and the bottom. Do you have hints to do such design ? Could I make it with 2 different kinds of line (the solid red is for cuts and the dotted maroon is for mountain folds) ?</p>
<p dir="auto"><img src="/assets/uploads/files/1624439530190-capture-d-%C3%A9cran-de-2021-06-23-11-07-11.png" alt="Capture d’écran de 2021-06-23 11-07-11.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/topic/268/simple-2d-parametric-design</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 05:39:55 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/268.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Jun 2021 09:25:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Simple 2d parametric design on Sat, 26 Jun 2021 15:29:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/1">@z3dev</a> Thanks a lot, it is always helpful to understand the reason of specific behaviors. My design has one path for the outline that will be cut, and lines for the folds. To remove the black fill I can try to turn the path to a polygon.</p>
]]></description><link>https://openjscad.nodebb.com/post/832</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/832</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Sat, 26 Jun 2021 15:29:17 GMT</pubDate></item><item><title><![CDATA[Reply to Simple 2d parametric design on Sat, 26 Jun 2021 15:20:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> nice progress!</p>
<p dir="auto">A few pointers on colors…</p>
<ul>
<li>paths (path2) are exported with a stroke color</li>
<li>2D geometry (geom2) are exported with a fill color</li>
</ul>
<p dir="auto">There are default colors set, which follow the SVG specifications.</p>
<p dir="auto"><a href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingFillPaint" rel="nofollow ugc">https://www.w3.org/TR/SVG2/painting.html#SpecifyingFillPaint</a></p>
<p dir="auto">So, if you really want stroke colors then your design should return paths.</p>
<p dir="auto">Hope,that helps.</p>
]]></description><link>https://openjscad.nodebb.com/post/830</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/830</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Sat, 26 Jun 2021 15:20:51 GMT</pubDate></item><item><title><![CDATA[Reply to Simple 2d parametric design on Sat, 26 Jun 2021 14:02:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello, I now made the parametric version, <a href="https://openjscad.xyz/#https://raw.githubusercontent.com/gilboonet/designs/master/2021/cadreCarreEnBiseau.js" rel="nofollow ugc">here</a>. The only parameter is width (largeur) that is the outer width of the frame obtained when 4 pieces are assembled together. I needed to juggle with cm and inches to make it right.</p>
<p dir="auto">Here is a screenshot of what I have. When I view the generated svg into my browser (Firefox, bottom right), I have red and blue lines, even if there is a black fill that is certainly default because I didn't use black on the jscad script.<br />
The other screenshot if from my laptop on win10 that I need to use my blade cutter software. I imported the svg and was able to prepare it for cut.<br />
The only drawback for the moment is that the svg imported on Inkscape (top right of first screenshot) loses the red and blue lines, but editing the svg won't be needed for such a simple design.</p>
<p dir="auto"><img src="/assets/uploads/files/1624713996801-capture-d-%C3%A9cran-de-2021-06-26-15-26-05.png" alt="Capture d’écran de 2021-06-26 15-26-05.png" class=" img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1624714603045-capture-d-%C3%A9cran-2021-06-26-153319.png" alt="Capture d’écran 2021-06-26 153319.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/829</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/829</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Sat, 26 Jun 2021 14:02:48 GMT</pubDate></item><item><title><![CDATA[Reply to Simple 2d parametric design on Fri, 25 Jun 2021 09:39:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/152">@hrgdavor</a> Thank you for your reply. I'm giving it a try.<br />
<img src="/assets/uploads/files/1624613319003-capture-d-%C3%A9cran-de-2021-06-25-11-26-29.png" alt="Capture d’écran de 2021-06-25 11-26-29.png" class=" img-responsive img-markdown" /><br />
On top left the svg that my unfolder generated<br />
On bottom left the svg generated by JSCAD, I needed to edit it by hand to add colors. I think the parametric part won't be hard, I just need to translate the second path (poly2). I'm still need to know what unit is used (I suspect it is inches) because the final scale is not the same as the original one.</p>
]]></description><link>https://openjscad.nodebb.com/post/827</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/827</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 25 Jun 2021 09:39:24 GMT</pubDate></item><item><title><![CDATA[Reply to Simple 2d parametric design on Thu, 24 Jun 2021 11:14:53 GMT]]></title><description><![CDATA[<p dir="auto">it shoud be no problem, as you can generate 2d as well as 3d shapes.</p>
<p dir="auto">You could have different colors, but I think right now, you have no option for line type.</p>
]]></description><link>https://openjscad.nodebb.com/post/826</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/826</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Thu, 24 Jun 2021 11:14:53 GMT</pubDate></item></channel></rss>