reduce flat threshold detection
This commit is contained in:
parent
86bbcdf3fb
commit
a4f88cd662
2 changed files with 2 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ var gs_kiri_slicer = exports;
|
||||||
}
|
}
|
||||||
for (key in zFlat) {
|
for (key in zFlat) {
|
||||||
// todo make threshold for flat detection configurable
|
// todo make threshold for flat detection configurable
|
||||||
if (!zFlat.hasOwnProperty(key) || zFlat[key] < 100) continue;
|
if (!zFlat.hasOwnProperty(key) || zFlat[key] < 10) continue;
|
||||||
if (!zIndexes.contains(key) && key >= zMin) zIndexes.push(parseFloat(key));
|
if (!zIndexes.contains(key) && key >= zMin) zIndexes.push(parseFloat(key));
|
||||||
}
|
}
|
||||||
// sort top down
|
// sort top down
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
var exports = {
|
var exports = {
|
||||||
COPYRIGHT:"Copyright (C) 2014-2018 Stewart Allen <sa@grid.space> - All Rights Reserved",
|
COPYRIGHT:"Copyright (C) 2014-2018 Stewart Allen <sa@grid.space> - All Rights Reserved",
|
||||||
LICENSE:"See the license.md file included with the source distribution",
|
LICENSE:"See the license.md file included with the source distribution",
|
||||||
VERSION:"1.2.4d"
|
VERSION:"1.2.4e"
|
||||||
};
|
};
|
||||||
if (!module) var module = {};
|
if (!module) var module = {};
|
||||||
module.exports = exports;
|
module.exports = exports;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue