more elegant fix. opengraph fix

This commit is contained in:
Stewart Allen 2020-04-21 18:20:39 -04:00
commit 6acb4b14d7
2 changed files with 3 additions and 5 deletions

View file

@ -322,10 +322,8 @@ let gs_kiri_slicer = exports;
// ensure no slice through horizontal lines or planes // ensure no slice through horizontal lines or planes
if (zFlat[ik]) onFlat = true; if (zFlat[ik]) onFlat = true;
if (zLines[ik]) onLine = true; if (zLines[ik]) onLine = true;
if (onFlat || onLine) zIndexes[i] -= 0.001; if (onFlat || onLine) {
if ((onFlat || onLine) && options.cam) { zIndexes[i] += options.cam ? 0.001 : -0.001;
// reverse on line compensation for cam mode
zIndexes[i] += 0.002;
} }
// slice next layer and add to slices[] array // slice next layer and add to slices[] array
sliceZ(zIndexes[i], zHeights[i], onFlat, onLine); sliceZ(zIndexes[i], zHeights[i], onFlat, onLine);

View file

@ -9,7 +9,7 @@
<meta property="og:description" content="Kiri:Moto is a unique multi-modal 3D slicer that runs entirely in browser and creates output for your favorite maker tools: 3D Printers, CNC Mills and Laser Cutters."> <meta property="og:description" content="Kiri:Moto is a unique multi-modal 3D slicer that runs entirely in browser and creates output for your favorite maker tools: 3D Printers, CNC Mills and Laser Cutters.">
<meta property="og:title" content="Free 3D Tools for Makers"> <meta property="og:title" content="Free 3D Tools for Makers">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:url" content="https://static.grid.space/kiri"> <meta property="og:url" content="https://grid.space/kiri/">
<meta property="og:image" content="https://static.grid.space/img/logo_km_og.png"> <meta property="og:image" content="https://static.grid.space/img/logo_km_og.png">
<title>Kiri:Moto</title> <title>Kiri:Moto</title>
<link rel="icon" href="/kiri/favicon.ico"> <link rel="icon" href="/kiri/favicon.ico">