SVG failure

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SVG failure

khackbarth
The raised shape in the following image is based on an SVG file:


When the model is rendered (on several computers) I see this:

Everything but the raised image is rendered.  Sometimes OpenSCAD will just close.

It appears that the failure is associated with the technique I use to simulate a chamfer around the top edge of the shape:


I add a couple of "offset" layers to the top of the shape with this code:
module graphic(){
        if (path_and_filename != ""){
                scale_factor = (graphic_scale_factor == 1) ? 0.122 : 0.036;
       
                translate([0,slide_Bliss_graphic_vertically,sd/2])
                scale([scale_factor,scale_factor,1])
                union(){
                        translate([0,0,-1])
                        linear_extrude(height=graphic_height+1)
                        offset(delta = 2)
                        import(file = path_and_filename,center=true);
                       
                        translate([0,0,graphic_height])
                        linear_extrude(height=.1)
                        offset(delta = 1)
                        import(file = path_and_filename,center=true);
                       
                        translate([0,0,graphic_height+.1])
                        linear_extrude(height=.1)
                        offset(delta = .005)
                        import(file = path_and_filename,center=true);
                }
        }
}

When 3D printed, this method is indistinguishable from a modeled chamfer.

If I comment the last two chunks in the union(), the model renders quickly and completely.  Note that I see the following in the console window (on this machine - I can't remember if I saw something similar on the other PCs):
console.pdf

Any thoughts on why this is occurring?  Any alternatives for chamfering the top edge of a raised SVG image?

It seems to be a function of the size and complexity of the SVG file.  I use PowerPoint to modify the original SVG file so that it will 3D print well.  I didn't have any problem until a couple of weeks ago when PowerPoint started producing SVG images that were huge and I needed to scale them smaller in the code.
 I use Office 360 so there may have been an update to PowerPoint's SVG production at that time.  I've tried post processing the image with Inkscape but the render still fails.

Thanks,
Ken