Skip to content

Commit

Permalink
Merge pull request #580 from MaslowCNC/Try-rotating-before-generating…
Browse files Browse the repository at this point in the history
…-svg-thumbnails

Rotate for svg generation
  • Loading branch information
BarbourSmith authored Aug 4, 2021
2 parents c1a5a13 + 857558e commit d877732
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/maslowWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,9 @@ const agent = async ({
break;
case "svg":
const geometryToSvg = await maslowRead(message.readPath);

const svgString = await toSvg(geometryToSvg.toKeptGeometry());
const svgShapeHeight = geometryToSvg.size().height;
const rotatedShapeSVG = geometryToSvg.rotateY(-.625).rotateZ(.25).move(0, svgShapeHeight/-3, 2*svgShapeHeight);
const svgString = await toSvg(rotatedShapeSVG.toKeptGeometry());
return svgString;
break;
case "outline":
Expand Down

0 comments on commit d877732

Please sign in to comment.