discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

more SVG problems

K
ken@volksswitch.org
Sun, Oct 11, 2020 3:01 PM

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

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
NH
nop head
Sun, Oct 11, 2020 4:31 PM

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, ken@volksswitch.org 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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, <ken@volksswitch.org> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
K
ken@volksswitch.org
Tue, Oct 13, 2020 1:46 AM

That worked! Thanks.

From: nop head nop.head@gmail.com
Sent: Sunday, October 11, 2020 10:31 AM
To: OpenSCAD general discussion discuss@lists.openscad.org
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, <ken@volksswitch.org mailto:ken@volksswitch.org > 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
Discuss@lists.openscad.org mailto:Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

That worked! Thanks. From: nop head <nop.head@gmail.com> Sent: Sunday, October 11, 2020 10:31 AM To: OpenSCAD general discussion <discuss@lists.openscad.org> 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, <ken@volksswitch.org <mailto:ken@volksswitch.org> > 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 Discuss@lists.openscad.org <mailto:Discuss@lists.openscad.org> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org