<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>CGAL error</title>
        <description> Hi,
How do I solve this error?

ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: pe_prev-&amp;gt;is_border() || !internal::Plane_constructor::get_plane(pe_prev-&amp;gt;facet(),pe_prev-&amp;gt;facet()-&amp;gt;plane()).is_degenerate() File: /opt/mxe/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_3/polyhedron_3_to_nef_3.h Line: 251 

This is the code (Wheel_Guide.stl is attached)

difference(){
    union(){
    translate([12.5,7.7,4.4]) cube([40,2,20.6]);
    translate([52.55,24,15]) rotate([0,90,0]) cylinder(h=4.8,r=3,$fn=60);    
    import(&quot;Wheel_Guide.stl&quot;,convexity=10);
    }
    translate([11.6,13,4.8]) cube([41,1.1,22]);
    translate([52,23,15]) rotate([0,90,0]) cylinder(h=6,r=2.65,$fn=60);
    translate([40,32,-0.1]) cube([20,2,30]);
}</description>
        <link>https://reprap.org/forum/read.php?313,705715,705715#msg-705715</link>
        <lastBuildDate>Tue, 19 May 2026 03:38:51 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?313,705715,706485#msg-706485</guid>
            <title>Re: CGAL error</title>
            <link>https://reprap.org/forum/read.php?313,705715,706485#msg-706485</link>
            <description><![CDATA[ Thank you Dave,<br />
I came to the same conclusion and have designed the part using the original as a guide.<br />
I did try and repair the modified stl but every program I tried did not find any errors.... strange.<br />
It would have been interesting to discover the reason for the error so perhaps I could avoid whatever it is in the future.<br />
<br />
Paul]]></description>
            <dc:creator>appjaws1</dc:creator>
            <category>OpenSCAD</category>
            <pubDate>Sat, 10 Sep 2016 10:08:24 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?313,705715,705800#msg-705800</guid>
            <title>Re: CGAL error</title>
            <link>https://reprap.org/forum/read.php?313,705715,705800#msg-705800</link>
            <description><![CDATA[ OpenScad doesn't like to edit some STLs.  I see that your code renders OK with F5, but fails with F6.  You could try repairing the STL (e.g. with [<a href="https://netfabb.azurewebsites.net/" target="_blank"  rel="nofollow">netfabb.azurewebsites.net</a>] which currently seems to hang so I could not try it).  I have a feeling that there is something amiss with that STL, because if I load it into Slic3r and then export as an STL (which will repair some STLs), Silc3r creates an invalid STL.<br />
<br />
However the STL shape seems to be fairly simple, so my next step would be to model the entire thing with OpenScad.  You can temporarily keep the STL imported to use as a template for your code, rendering with F5 to check dimensions &amp; positions.<br />
<br />
Dave]]></description>
            <dc:creator>dmould</dc:creator>
            <category>OpenSCAD</category>
            <pubDate>Wed, 07 Sep 2016 10:30:19 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?313,705715,705715#msg-705715</guid>
            <title>CGAL error</title>
            <link>https://reprap.org/forum/read.php?313,705715,705715#msg-705715</link>
            <description><![CDATA[ Hi,<br />
How do I solve this error?<br />
<br />
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: pe_prev-&gt;is_border() || !internal::Plane_constructor::get_plane(pe_prev-&gt;facet(),pe_prev-&gt;facet()-&gt;plane()).is_degenerate() File: /opt/mxe/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_3/polyhedron_3_to_nef_3.h Line: 251 <br />
<br />
This is the code (Wheel_Guide.stl is attached)<br />
<br />
difference(){<br />
    union(){<br />
    translate([12.5,7.7,4.4]) cube([40,2,20.6]);<br />
    translate([52.55,24,15]) rotate([0,90,0]) cylinder(h=4.8,r=3,$fn=60);    <br />
    import("Wheel_Guide.stl",convexity=10);<br />
    }<br />
    translate([11.6,13,4.8]) cube([41,1.1,22]);<br />
    translate([52,23,15]) rotate([0,90,0]) cylinder(h=6,r=2.65,$fn=60);<br />
    translate([40,32,-0.1]) cube([20,2,30]);<br />
}]]></description>
            <dc:creator>appjaws1</dc:creator>
            <category>OpenSCAD</category>
            <pubDate>Wed, 07 Sep 2016 04:25:19 -0400</pubDate>
        </item>
    </channel>
</rss>
