more SVG problems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

more SVG problems

khackbarth
Here's my simple code.  I.e., put a lion shape on a block:

filename="lion.svg";
fudge=0.05;

union(){
              translate([0,0,.25-fudge])
              resize([15,10,1])
              linear_extrude(height=1)
              import(file = filename,center=true);
             
               cube([20,15,.5],center=true);
}

This code previews perfectly but when rendered produces the error:
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e->incident_sface() != SFace_const_handle() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_S2/SM_const_decora
tor.h Line: 329

Comment out the cube and it renders fine.

Thoughts?
Ken


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: more SVG problems

nophead
Looks like the svg has self intersections in its outline. Try offsetting it by a tiny amount. That passes it through clipper, which is good at sorting out self-intersections.

On Sun, 11 Oct 2020 at 16:02, <[hidden email]> wrote:
Here's my simple code.  I.e., put a lion shape on a block:

filename="lion.svg";
fudge=0.05;

union(){
              translate([0,0,.25-fudge])
              resize([15,10,1])
              linear_extrude(height=1)
              import(file = filename,center=true);

               cube([20,15,.5],center=true);
}

This code previews perfectly but when rendered produces the error:
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e->incident_sface() != SFace_const_handle() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_S2/SM_const_decora
tor.h Line: 329

Comment out the cube and it renders fine.

Thoughts?
Ken


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: more SVG problems

khackbarth

That worked! Thanks.

 

From: nop head <[hidden email]>
Sent: Sunday, October 11, 2020 10:31 AM
To: OpenSCAD general discussion <[hidden email]>
Subject: Re: [OpenSCAD] more SVG problems

 

Looks like the svg has self intersections in its outline. Try offsetting it by a tiny amount. That passes it through clipper, which is good at sorting out self-intersections.

 

On Sun, 11 Oct 2020 at 16:02, <[hidden email]> wrote:

Here's my simple code.  I.e., put a lion shape on a block:

filename="lion.svg";
fudge=0.05;

union(){
              translate([0,0,.25-fudge])
              resize([15,10,1])
              linear_extrude(height=1)
              import(file = filename,center=true);

               cube([20,15,.5],center=true);
}

This code previews perfectly but when rendered produces the error:
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e->incident_sface() != SFace_const_handle() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_S2/SM_const_decora
tor.h Line: 329

Comment out the cube and it renders fine.

Thoughts?
Ken


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org