discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

CGAL error when trying to manipulate imported stl file

RT
Richard Thomas
Wed, Jun 12, 2024 10:38 AM

Hi,

I get error "ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR:
assertion violation! Expr: e_below != SHalfedge_handle() File:
/mxe/usr/x86_64-w64-mingw32" at the render stage when using the scad file
shown at the bottom on this email.

OpenSCAD version: 2021.01
OS: Windows 10
Location stl file downloadable from :
https://github.com/OpenScan-org/OpenScan-Design/blob/main/OS-Mini/V1/05d-Object%20holder%20-%2010cm.stl

If I take out the translate cube line, it renders fine.

Any ideas please?

Thanks.

slot_thickness=2.5;

difference(){

translate([0,-142,-15]) import("05d-Object holder - 10cm.stl",

convexity=3);

translate([0,0,5]) cube([slot_thickness,50,10],center=true);

}

Hi, I get error "ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e_below != SHalfedge_handle() File: /mxe/usr/x86_64-w64-mingw32" at the render stage when using the scad file shown at the bottom on this email. OpenSCAD version: 2021.01 OS: Windows 10 Location stl file downloadable from : https://github.com/OpenScan-org/OpenScan-Design/blob/main/OS-Mini/V1/05d-Object%20holder%20-%2010cm.stl If I take out the translate cube line, it renders fine. Any ideas please? Thanks. slot_thickness=2.5; difference(){ translate([0,-142,-15]) import("05d-Object holder - 10cm.stl", convexity=3); translate([0,0,5]) cube([slot_thickness,50,10],center=true); }
RW
Raymond West
Wed, Jun 12, 2024 2:07 PM

if the stl file is faulty, you get a problem when adding in other
shapes. try repairing it. https://www.formware.co/onlinestlrepair may help

On 12/06/2024 11:38, Richard Thomas via Discuss wrote:

Hi,

I get error "ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR:
assertion violation! Expr: e_below != SHalfedge_handle() File:
/mxe/usr/x86_64-w64-mingw32" at the render stage when using the scad
file shown at the bottom on this email.

OpenSCAD version: 2021.01
OS: Windows 10
Location stl file downloadable from :
https://github.com/OpenScan-org/OpenScan-Design/blob/main/OS-Mini/V1/05d-Object%20holder%20-%2010cm.stl

If I take out the translate cube line, it renders fine.

Any ideas please?

Thanks.

slot_thickness=2.5;

difference(){

    translate([0,-142,-15]) import("05d-Object holder - 10cm.stl",
convexity=3);

    translate([0,0,5]) cube([slot_thickness,50,10],center=true);

}


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

if the stl file is faulty, you get a problem when adding in other shapes. try repairing it. https://www.formware.co/onlinestlrepair may help On 12/06/2024 11:38, Richard Thomas via Discuss wrote: > Hi, > > I get error "ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: > assertion violation! Expr: e_below != SHalfedge_handle() File: > /mxe/usr/x86_64-w64-mingw32" at the render stage when using the scad > file shown at the bottom on this email. > > OpenSCAD version: 2021.01 > OS: Windows 10 > Location stl file downloadable from : > https://github.com/OpenScan-org/OpenScan-Design/blob/main/OS-Mini/V1/05d-Object%20holder%20-%2010cm.stl > > If I take out the translate cube line, it renders fine. > > Any ideas please? > > Thanks. > > > > slot_thickness=2.5; > > difference(){ > >     translate([0,-142,-15]) import("05d-Object holder - 10cm.stl", > convexity=3); > >     translate([0,0,5]) cube([slot_thickness,50,10],center=true); > > } > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
RT
Richard Thomas
Wed, Jun 12, 2024 3:00 PM

Brilliant, thank you.

I didn't realise the STL was broke, but having ran it through that fixing
site, it all works!

Thank you very much.

Richard.

On Wed, 12 Jun 2024 at 15:08, Raymond West via Discuss <
discuss@lists.openscad.org> wrote:

if the stl file is faulty, you get a problem when adding in other
shapes. try repairing it. https://www.formware.co/onlinestlrepair may help

On 12/06/2024 11:38, Richard Thomas via Discuss wrote:

Hi,

I get error "ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR:
assertion violation! Expr: e_below != SHalfedge_handle() File:
/mxe/usr/x86_64-w64-mingw32" at the render stage when using the scad
file shown at the bottom on this email.

OpenSCAD version: 2021.01
OS: Windows 10
Location stl file downloadable from :

If I take out the translate cube line, it renders fine.

Any ideas please?

Thanks.

slot_thickness=2.5;

difference(){

 translate([0,-142,-15]) import("05d-Object holder - 10cm.stl",

convexity=3);

 translate([0,0,5]) cube([slot_thickness,50,10],center=true);

}


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Brilliant, thank you. I didn't realise the STL was broke, but having ran it through that fixing site, it all works! Thank you very much. Richard. On Wed, 12 Jun 2024 at 15:08, Raymond West via Discuss < discuss@lists.openscad.org> wrote: > if the stl file is faulty, you get a problem when adding in other > shapes. try repairing it. https://www.formware.co/onlinestlrepair may help > > On 12/06/2024 11:38, Richard Thomas via Discuss wrote: > > Hi, > > > > I get error "ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: > > assertion violation! Expr: e_below != SHalfedge_handle() File: > > /mxe/usr/x86_64-w64-mingw32" at the render stage when using the scad > > file shown at the bottom on this email. > > > > OpenSCAD version: 2021.01 > > OS: Windows 10 > > Location stl file downloadable from : > > > https://github.com/OpenScan-org/OpenScan-Design/blob/main/OS-Mini/V1/05d-Object%20holder%20-%2010cm.stl > > > > If I take out the translate cube line, it renders fine. > > > > Any ideas please? > > > > Thanks. > > > > > > > > slot_thickness=2.5; > > > > difference(){ > > > > translate([0,-142,-15]) import("05d-Object holder - 10cm.stl", > > convexity=3); > > > > translate([0,0,5]) cube([slot_thickness,50,10],center=true); > > > > } > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >