<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>OpenSCAD Help</title>
        <description> Hi guys,

I&#039;m pretty new to the world of RepRap and literally just venturing into 3D designs. I&#039;m currently playing around with OpenSCAD, which seems pretty easy for simple designs (with use of the online instructions), though when venturing into the more complex side of things, safe to say I get a bit lost!  :S

After browsing the internet extensively I&#039;ve not managed to find any good forums to post OpenSCAD questions on, so I thought here would be a good place to try!</description>
        <link>https://reprap.org/forum/read.php?1,111389,111389#msg-111389</link>
        <lastBuildDate>Mon, 07 Sep 2026 01:42:42 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111744#msg-111744</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111744#msg-111744</link>
            <description><![CDATA[ Not sure if this might help, but it looks quite useful and is quite easy to use.<br />
<br />
[<a href="https://github.com/daid/OpenSCAD-polygon-editor" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
Geoff]]></description>
            <dc:creator>geoffd</dc:creator>
            <category>General</category>
            <pubDate>Sat, 31 Dec 2011 05:03:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111481#msg-111481</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111481#msg-111481</link>
            <description><![CDATA[ You're welcome :)<br />
<br />
I learned the linear extrude and polygon in the documentation here: [<a href="http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/2D_to_3D_Extrusion#Extruding_a_Polygon" target="_blank"  rel="nofollow">en.wikibooks.org</a>]<br />
<br />
And here's the rest of the manual: [<a href="http://en.wikibooks.org/wiki/OpenSCAD_User_Manual" target="_blank"  rel="nofollow">en.wikibooks.org</a>]<br />
<br />
The code I wrote is less complicated than yours actually, mine just uses a few variables to make it somewhat parametric. I absolutely love openscad, I'm no expert at it, but it should be added I've used POV-Ray for 10+ years, so I'm used to the concept. ;)]]></description>
            <dc:creator>Nudel</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 18:48:09 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111418#msg-111418</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111418#msg-111418</link>
            <description><![CDATA[ Right, I think I get it now! Though have to say Nudel, that code you wrote is well above my level at the moment! lol Thanks for it though! Is there any documentation I can read to learn how you worked that out?]]></description>
            <dc:creator>indieflow</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 12:42:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111407#msg-111407</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111407#msg-111407</link>
            <description><![CDATA[ The message is "ERROR: Illegal polygonal object - make sure all polygons are defined with the same winding order. Skipping affected object.".<br />
<br />
The issue with triangle meshes is the computer doesn't know what side of it is supposed to be the inside, and it bases the calculations (at least that's my guess/understanding) on the so called winding order.<br />
<br />
If you define the corners of a trignale like this (with A being the first point, and so on):<br />
<br />
AB<br />
C<br />
<br />
And another next to it (or on top of it which might be the case in your example), like this:<br />
<br />
AC<br />
B<br />
<br />
The normals would be the opposite direction, and Openscad is unable to calculate if it's supposed to be the inside or the outside of the object.<br />
<br />
Also, openscad doesn't like overlapping faces very much, so the problem could come from that as well, yes.<br />
<br />
<br />
On an unrelated note, and not saying it's not an excellent exercise to hand code a mesh from time to time; this is how I'd make your object, which may be totally useless depending on what you were going to achieve. ;)<br />
<br />
p1 = 5;<br />
p2 = 10;<br />
t = 3;<br />
rotate([90,0,0]) linear_extrude(height=2) polygon([[0,0],[p1,-p2],[p1+t,-p2],[t/2,t],[-t/2,t],[-p1-t,-p2],[-p1,-p2]]);]]></description>
            <dc:creator>Nudel</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 10:50:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111406#msg-111406</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111406#msg-111406</link>
            <description><![CDATA[ You need to produce a simple, manifold, hull. No more than two faces can share the same line. No holes. No overlapping polygons.]]></description>
            <dc:creator>Andrew Smith</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 10:49:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111402#msg-111402</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111402#msg-111402</link>
            <description><![CDATA[ Andrew Smith Wrote:<br />
-------------------------------------------------------<br />
&gt; It compiles, but CGAL complains about an illegal<br />
&gt; polygonal object. There seem to be a lot of extra<br />
&gt; triangles on the front and back faces, try getting<br />
&gt; rid of those.<br />
&gt; <br />
&gt; EDIT]<br />
&gt; <br />
&gt; Yup, that seems to work. <br />
&gt;<br />
<br />
Wow, thanks Andrew (tu) So just to confirm, as I'm crap at figuring out how to fill a space with the minimum amount of triangles, the computer doesn't like it? lol Or is it that you can't have over lapping triangles on a face?]]></description>
            <dc:creator>indieflow</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 10:11:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111400#msg-111400</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111400#msg-111400</link>
            <description><![CDATA[ davidgoodenough Wrote:<br />
-------------------------------------------------------<br />
&gt; If you go to the openscad.org web site, there is a<br />
&gt; mailing list which is where most of the discussion<br />
&gt; happens.<br />
&gt; <br />
&gt; David<br />
<br />
Ah right, thanks David (tu)]]></description>
            <dc:creator>indieflow</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 10:08:09 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111392#msg-111392</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111392#msg-111392</link>
            <description><![CDATA[ It compiles, but CGAL complains about an illegal polygonal object. There seem to be a lot of extra triangles on the front and back faces, try getting rid of those.<br />
<br />
EDIT]<br />
<br />
Yup, that seems to work. <br />
<br />
<pre class="bbcode">
polyhedron
(points=[
[-7.5,0,-3],[-5,0,-3],[5,0,-3],[7.5,0,-3],[0,0,7],[1,0,10],[-1,0,10],
[-7.5,2,-3],[-5,2,-3],[5,2,-3],[7.5,2,-3],[0,2,7],[1,2,10],[-1,2,10]
], 
triangles=[
[4,1,0],[0,6,4],[4,3,2],[3,4,5],[6,5,4],
[7,8,11],[11,13,7],[9,10,11],[12,11,10],[11,12,13],
[5,10,3],[5,12,10],[7,6,0],[13,6,7],[4,8,1],[11,8,4],[9,4,2],[9,11,4],
[5,6,13],[13,12,5],[0,1,7],[1,8,7],[2,3,9],[3,10,9]
]
);
</pre>]]></description>
            <dc:creator>Andrew Smith</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 08:54:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111391#msg-111391</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111391#msg-111391</link>
            <description><![CDATA[ If you go to the openscad.org web site, there is a mailing list which is where most of the discussion happens.<br />
<br />
David]]></description>
            <dc:creator>davidgoodenough</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 08:54:11 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111390#msg-111390</guid>
            <title>Re: OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111390#msg-111390</link>
            <description><![CDATA[ I've been trying to make a polyhedron, though can anyone explain why I can compile (F5) the code below (looks all good, no pink triangles!), though when I try and render (F6), I get the warning: No top level geometry to render? Have I missed something? <br />
<br />
<pre class="bbcode">
polyhedron
(points=[
[-7.5,0,-3],[-5,0,-3],[5,0,-3],[7.5,0,-3],[0,0,7],[1,0,10],[-1,0,10],
[-7.5,2,-3],[-5,2,-3],[5,2,-3],[7.5,2,-3],[0,2,7],[1,2,10],[-1,2,10]
], 
triangles=[
[6,1,0],[4,1,0],[6,5,0],[0,6,4],[5,3,2],[4,3,2],[3,6,5],[3,4,5],[6,5,4],
[7,8,13],[7,8,11],[7,12,13],[11,13,7],[9,10,12],[9,10,11],[12,13,10],[12,11,10],[11,12,13],
[5,10,3],[5,12,10],[7,6,0],[13,6,7],[4,8,1],[11,8,4],[9,4,2],[9,11,4],
[5,6,13],[13,12,5],[0,1,7],[1,8,7],[2,3,9],[3,10,9]
]
);</pre>
<br />
Thanks for any help (:D]]></description>
            <dc:creator>indieflow</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 08:36:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?1,111389,111389#msg-111389</guid>
            <title>OpenSCAD Help</title>
            <link>https://reprap.org/forum/read.php?1,111389,111389#msg-111389</link>
            <description><![CDATA[ Hi guys,<br />
<br />
I'm pretty new to the world of RepRap and literally just venturing into 3D designs. I'm currently playing around with OpenSCAD, which seems pretty easy for simple designs (with use of the online instructions), though when venturing into the more complex side of things, safe to say I get a bit lost!  :S<br />
<br />
After browsing the internet extensively I've not managed to find any good forums to post OpenSCAD questions on, so I thought here would be a good place to try!]]></description>
            <dc:creator>indieflow</dc:creator>
            <category>General</category>
            <pubDate>Wed, 28 Dec 2011 08:35:39 -0500</pubDate>
        </item>
    </channel>
</rss>
