polygon-clipping:将布尔多边形裁剪操作(联合,交集,差,异或)应用于“多边形”和“多多边形”

时间:2024-05-18 12:59:37
【文件属性】:

文件名称:polygon-clipping:将布尔多边形裁剪操作(联合,交集,差,异或)应用于“多边形”和“多多边形”

文件大小:2.3MB

文件格式:ZIP

更新时间:2024-05-18 12:59:37

polygon union intersection polygon-clipping difference

多边形裁剪 对您的Polygons&MultiPolygons应用boolean Polygon裁剪操作( intersection , union , difference , xor )。 快速开始 const polygonClipping = require ( 'polygon-clipping' ) const poly1 = [ [ [ 0 , 0 ] , [ 2 , 0 ] , [ 0 , 2 ] , [ 0 , 0 ] ] ] const poly2 = [ [ [ - 1 , 0 ] , [ 1 , 0 ] , [ 0 , 1 ] , [ - 1 , 0 ] ] ] polygonClipping . union ( poly1 , poly2 /* , poly3, ... */ ) polygonClipping . intersection ( pol


网友评论