discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

SVG Problem

RW
Raymond West
Mon, May 22, 2023 8:09 PM

Not sure why you want the frame the same thickness as the centre, a
simpler solution is

//////////////////////////////////////////////

$fn=100;

LB=127;
linear_extrude(1){

      difference(){
          square(LB);
          translate([7.5,7.5])square(LB-15);
      }
          translate([0.3,0.3,0])
          import("P:/Docs/openscad/wallpaper2.svg");
   }

/////////////////////////////////////////////////

which renders with no errors under OpenSCAD version 2022.11.18.ci12805
(git 1746d5a83)

Your version produces warnings wrt holes, but still renders OK.

If you want a thicker frame, then may be best to superimpose it on the
version above.

On 21/05/2023 18:11, Karl Exler wrote:

$fn=100;

path="wallpaper2.svg";

LB=127;

difference()

{

cube([LB,LB,1]);

translate([7,7,-0.1])

cube([LB-15,LB-15,1.2]);

};

translate([0.3,0.3,0])

//scale([0.056,0.056,1])

linear_extrude(1)

import(path);

Not sure why you want the frame the same thickness as the centre, a simpler solution is ////////////////////////////////////////////// $fn=100; LB=127; linear_extrude(1){       difference(){           square(LB);           translate([7.5,7.5])square(LB-15);       }           translate([0.3,0.3,0])           import("P:/Docs/openscad/wallpaper2.svg");    } ///////////////////////////////////////////////// which renders with no errors under OpenSCAD version 2022.11.18.ci12805 (git 1746d5a83) Your version produces warnings wrt holes, but still renders OK. If you want a thicker frame, then may be best to superimpose it on the version above. On 21/05/2023 18:11, Karl Exler wrote: > > $fn=100; > > path="wallpaper2.svg"; > > LB=127; > > > difference() > > { > > cube([LB,LB,1]); > > translate([7,7,-0.1]) > > cube([LB-15,LB-15,1.2]); > > }; > > translate([0.3,0.3,0]) > > //scale([0.056,0.056,1]) > > linear_extrude(1) > > import(path); >