<?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[Newbie Here. (yet another) 3d to 2d question]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I wrote a little SCAD script to help those battling with Elephant's Foot. It allows a user to import their STL, and it slices the bottom (n) layers, offsets those layers by user selected amount and, when rendered, creates a new model with basically a custom chamfer along the bottom. Elephants Foot Compensation <a href="https://www.thingiverse.com/thing:4800868" rel="nofollow ugc">https://www.thingiverse.com/thing:4800868</a></p>
<p dir="auto">Now I am trying to do the same thing in openJSCAD</p>
<p dir="auto">openSCAD uses a "projection" tool that seems to create a 2d path where the model intersects with the Z=0 plane. The path has both external vertices (the outside of the model) and internal vertices (if their are holes).</p>
<p dir="auto">openSCAD also has an offset tool. This allows one to offset the aforementioned path. If one offsets in the positive, then it will expand the external vertices along the path pushing out along normals AND it would "shrink" internal vertices, pushing normally inward along the path.</p>
<p dir="auto">Those paths can then be re-extruded to recreate the modified model. Anyway, those are the tools I used in openSCAD to make the tool.</p>
<p dir="auto">As a newb to JSCAD, I'm not really understanding the overall difference between V1 and V2.</p>
<p dir="auto">For slicing, I have tried this</p>
<p dir="auto">var cag = obj.projectToOrthoNormalBasis(z0basis);<br />
return cag;</p>
<p dir="auto">And it seems to be a path, but then I can't seem to offset it or extrude it.</p>
<p dir="auto">Extrusion:</p>
<p dir="auto">When I try this as an example</p>
<p dir="auto">var z0basis = CSG.OrthoNormalBasis.Z0Plane();<br />
var cag = obj.projectToOrthoNormalBasis(z0basis);<br />
var NewCag = cag.extrude([0,0,25]);<br />
return NewCag;</p>
<p dir="auto">There is a slight extrusion. But no matter what value I put in for the Z val, the slight extrusion appears to be the same.</p>
<p dir="auto">Offset:</p>
<p dir="auto">I read that there is no offset in V1 but there is in V2.</p>
<p dir="auto">After that long intro...</p>
<ol>
<li>Is there a JSCAD equivalent to SCAD projection that can yield a 2d path</li>
<li>is there a JSCAD equivalent to SCAD offset that can offset that 2d path</li>
<li>can that path then be extruded back into a 3d solid</li>
</ol>
<p dir="auto">Thank you in advance</p>
<p dir="auto">Steve</p>
]]></description><link>https://openjscad.nodebb.com/topic/238/newbie-here-yet-another-3d-to-2d-question</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 15:37:27 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/238.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Mar 2021 14:31:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Newbie Here. (yet another) 3d to 2d question on Thu, 25 Mar 2021 14:30:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z3dev" aria-label="Profile: z3dev">@<bdi>z3dev</bdi></a> Apparently the temporary v2 website doesn't handle links like those of examples, it may be easier to wait for the original website to be online.</p>
]]></description><link>https://openjscad.nodebb.com/post/718</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/718</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Thu, 25 Mar 2021 14:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Here. (yet another) 3d to 2d question on Thu, 25 Mar 2021 13:16:17 GMT]]></title><description><![CDATA[<p dir="auto">We have a really strong group of users now. I think others will reply with some examples. <img src="https://openjscad.nodebb.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=552b9a4dc0c" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://openjscad.nodebb.com/post/716</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/716</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Thu, 25 Mar 2021 13:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Here. (yet another) 3d to 2d question on Thu, 25 Mar 2021 12:54:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/z3dev" aria-label="Profile: z3dev">@<bdi>z3dev</bdi></a> Thank you for taking the time to reply. I looked at that (and will go back and study) that discussion, as well as the link to "fromFakePolygons".</p>
<p dir="auto">When one is accustomed to a particular set of tools, one tries to tackle a problem using those tools. But when presented with a new set of tools, sometimes one will still try to use a wrench as a hammer. To me, JSCAD is the new set of tools. Now I need to learn how to use them.</p>
<p dir="auto">Thanks again for doing so much work.</p>
<p dir="auto">All the best</p>
<p dir="auto">Steve</p>
]]></description><link>https://openjscad.nodebb.com/post/715</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/715</guid><dc:creator><![CDATA[retroglyph]]></dc:creator><pubDate>Thu, 25 Mar 2021 12:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie Here. (yet another) 3d to 2d question on Thu, 25 Mar 2021 06:41:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/retroglyph" aria-label="Profile: retroglyph">@<bdi>retroglyph</bdi></a> welcome!</p>
<p dir="auto">Ah... converting 3D slices to 2D... there was a similar question in the Development Discussions. Please see “2D slice from extruded polygon after substraction”</p>
<p dir="auto">If that doesn’t help then let us know. There are several ways to get the outline of slices.</p>
]]></description><link>https://openjscad.nodebb.com/post/714</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/714</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Thu, 25 Mar 2021 06:41:46 GMT</pubDate></item></channel></rss>