add thin type 3 test
This commit is contained in:
parent
382e0cd5d7
commit
91ad27f540
5 changed files with 69 additions and 3 deletions
|
|
@ -348,7 +348,7 @@ function subtract(setA, setB, outA, outB, z, minArea, opt = {}) {
|
|||
let min = numOrDefault(minArea, 0.1),
|
||||
out = [];
|
||||
|
||||
function filter(from, to = []) {
|
||||
function filter(from, to = []) {
|
||||
from.forEach(function(poly) {
|
||||
if (poly.area() >= min) {
|
||||
to.push(poly);
|
||||
|
|
@ -541,7 +541,7 @@ function diff(setA, setB, z) {
|
|||
/**
|
||||
* Slice.doProjectedFills()
|
||||
*
|
||||
* @param {Polygon[]} setA source set
|
||||
* @param {Polygon[]} setA target set
|
||||
* @param {Polygon[]} setB mask set
|
||||
* @returns {Polygon[]}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue