fix sla open top/base. alert cnc when stock too small

This commit is contained in:
Stewart Allen 2020-04-17 09:43:25 -04:00
commit f38929b181
4 changed files with 46 additions and 18 deletions

View file

@ -812,6 +812,18 @@ var gs_kiri_cam = exports;
shellFinish,
facePolys;
if (settings.stock.x < bounds.max.x - bounds.min.x) {
return ondone('stock too small for part. disable or use offset stock');
}
if (settings.stock.y < bounds.max.y - bounds.min.y) {
return ondone('stock too small for part. disable or use offset stock');
}
if (settings.stock.z < bounds.max.z - bounds.min.z) {
return ondone('stock too small for part. disable or use offset stock');
}
if (sliceDepth <= 0.05) {
return ondone(`invalid slice depth (${sliceDepth.toFixed(2)} ${unitsName})`);
}