public static SimplifiedGeometryShape Combine(SimplifiedGeometryShape shape1, SimplifiedGeometryShape shape2, CombineMode combineMode) { PolyTree tree; List <List <Vector2> > polygons = ClipperHelper.Combine(shape1.polygons, shape2.polygons, FillMode.Alternate, FillMode.Alternate, combineMode, out tree); return(new SimplifiedGeometryShape(polygons, tree)); }
public void AddShape(SimplifiedGeometryShape shape, CombineMode combineMode) { polygons = ClipperHelper.Combine(polygons, shape.polygons, FillMode.Alternate, FillMode.Alternate, combineMode, out tree); }
public void AddShape(SimplifiedGeometryShape shape, CombineMode combineMode) { polygons = ClipperHelper.Combine(polygons, shape.polygons, FillMode.Alternate, FillMode.Alternate, combineMode, out tree); }
public static SimplifiedGeometryShape Combine(SimplifiedGeometryShape shape1, SimplifiedGeometryShape shape2, CombineMode combineMode) { PolyTree tree; List<List<Vector2>> polygons = ClipperHelper.Combine(shape1.polygons, shape2.polygons, FillMode.Alternate, FillMode.Alternate, combineMode, out tree); return new SimplifiedGeometryShape(polygons, tree); }