less aggressive poly cleanup. clearer stock warning
This commit is contained in:
parent
9fef4c3d19
commit
dd397ee16d
3 changed files with 8 additions and 7 deletions
|
|
@ -367,7 +367,7 @@ var gs_base = exports;
|
|||
// clipper multiplier
|
||||
clipper : 100000,
|
||||
// clipper poly clean
|
||||
clipperClean : 1000
|
||||
clipperClean : 50
|
||||
};
|
||||
|
||||
BASE.util = {
|
||||
|
|
|
|||
|
|
@ -814,16 +814,16 @@ 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.x + 0.00001 < bounds.max.x - bounds.min.x) {
|
||||
return ondone('stock X 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.y + 0.00001 < bounds.max.y - bounds.min.y) {
|
||||
return ondone('stock Y 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 (settings.stock.z + 0.00001 < bounds.max.z - bounds.min.z) {
|
||||
return ondone('stock Z too small for part. disable or use offset stock');
|
||||
}
|
||||
|
||||
if (sliceDepth <= 0.05) {
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ let gs_kiri_layer = exports;
|
|||
} else {
|
||||
poly = POLY.flatten([poly], [], true);
|
||||
}
|
||||
if (!poly.length) return;
|
||||
poly = poly.map(p => p.clone());
|
||||
let exp = [];
|
||||
let z = poly[0].getZ();
|
||||
|
|
|
|||
Loading…
Reference in a new issue