brepjs 10.0.0 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d/blueprints/Blueprint.d.ts.map +1 -1
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-B6UDSVJN.cjs → Blueprint-BbgdNjMG.cjs} +5 -5
- package/dist/{Blueprint-QlgNyzP7.js → Blueprint-SMLvu1pH.js} +5 -5
- package/dist/{boolean2D-Gr-OYFsO.js → boolean2D-BGxBWwCm.js} +10 -9
- package/dist/{boolean2D-DZxTrl9x.cjs → boolean2D-DiHJyuu4.cjs} +10 -9
- package/dist/{booleanFns-CR6vk8qv.cjs → booleanFns-BaMEij5u.cjs} +7 -4
- package/dist/{booleanFns-BEIrQNUH.js → booleanFns-Bl8hInM_.js} +7 -4
- package/dist/brepjs.cjs +109 -229
- package/dist/brepjs.js +392 -513
- package/dist/core/shapeTypes.d.ts +106 -0
- package/dist/core/shapeTypes.d.ts.map +1 -1
- package/dist/core.cjs +11 -1
- package/dist/core.d.ts +2 -2
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +26 -16
- package/dist/{cornerFinder-DlwI0iHu.cjs → cornerFinder-CDkc5qfD.cjs} +1 -1
- package/dist/{cornerFinder-Bh_jsF_w.js → cornerFinder-C_rN-yag.js} +1 -1
- package/dist/{curveFns-CNkC51il.js → curveFns-DeYQQ18o.js} +1 -1
- package/dist/{curveFns-jnEgxP5N.cjs → curveFns-Dtaf2CvG.cjs} +1 -1
- package/dist/{drawFns-Ex_DyuI1.js → drawFns-CkFd3lT4.js} +11 -10
- package/dist/{drawFns-D0Wg1cy7.cjs → drawFns-NsqGSBEK.cjs} +18 -17
- package/dist/{faceFns-B10DQksf.cjs → faceFns-DVo4NiOl.cjs} +1 -1
- package/dist/{faceFns-DKkW12_x.js → faceFns-DZU8VAlq.js} +1 -1
- package/dist/{helpers-4kc7odPn.cjs → helpers-BOPjTzbq.cjs} +4 -4
- package/dist/{helpers-BPzEhlP8.js → helpers-D8jYqufG.js} +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +3 -3
- package/dist/io.js +3 -3
- package/dist/{loft-CfNUe13X.js → loft-BmO0VYht.js} +12 -73
- package/dist/{loft-ByirrIHz.cjs → loft-BpScchbu.cjs} +6 -67
- package/dist/{measurement-BMfzcJ2H.js → measurement-CZzV1bmg.js} +2 -2
- package/dist/{measurement-CpWygrRd.cjs → measurement-Crexq3aQ.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CbuZpQmE.js → meshFns-DE8uUdKS.js} +2 -2
- package/dist/{meshFns-DRZcKqgZ.cjs → meshFns-d6Ta_uov.cjs} +2 -2
- package/dist/operations/api.d.ts +3 -3
- package/dist/operations/api.d.ts.map +1 -1
- package/dist/operations/extrude.d.ts +4 -4
- package/dist/operations/extrude.d.ts.map +1 -1
- package/dist/operations/extrudeFns.d.ts +3 -3
- package/dist/operations/extrudeFns.d.ts.map +1 -1
- package/dist/{operations-DAt3B8iS.cjs → operations-CGbdoQvO.cjs} +5 -5
- package/dist/{operations-DBJ9dkjD.js → operations-Qr5m0lUU.js} +5 -5
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +4 -4
- package/dist/query.js +5 -5
- package/dist/{shapeFns-BrfVnd9Q.js → shapeFns-BmOzkjTF.js} +5 -5
- package/dist/{shapeFns-vPR93KGT.cjs → shapeFns-vrqpeRIf.cjs} +2 -2
- package/dist/{shapeTypes-C1z8HWJf.js → shapeTypes-CGYrwYIi.js} +82 -34
- package/dist/{shapeTypes-BxAzFSfl.cjs → shapeTypes-CHvr4HNj.cjs} +48 -0
- package/dist/sketching/CompoundSketch.d.ts +2 -2
- package/dist/sketching/CompoundSketch.d.ts.map +1 -1
- package/dist/sketching/Sketch.d.ts.map +1 -1
- package/dist/sketching/draw.d.ts.map +1 -1
- package/dist/sketching/sketchFns.d.ts +3 -3
- package/dist/sketching/sketchFns.d.ts.map +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/solidBuilders-Bo8N2UV1.cjs +70 -0
- package/dist/solidBuilders-CDzxISP2.js +71 -0
- package/dist/{surfaceBuilders-B-yoDL2e.js → surfaceBuilders-CIEQ9j7C.js} +8 -6
- package/dist/{surfaceBuilders-BkTPbZFl.cjs → surfaceBuilders-DIPPckQg.cjs} +5 -3
- package/dist/topology/adjacencyFns.d.ts +3 -2
- package/dist/topology/adjacencyFns.d.ts.map +1 -1
- package/dist/topology/booleanFns.d.ts +2 -2
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology/compoundOpsFns.d.ts.map +1 -1
- package/dist/topology/faceFns.d.ts +5 -5
- package/dist/topology/faceFns.d.ts.map +1 -1
- package/dist/topology/healingFns.d.ts +2 -2
- package/dist/topology/healingFns.d.ts.map +1 -1
- package/dist/topology/primitiveFns.d.ts +32 -13
- package/dist/topology/primitiveFns.d.ts.map +1 -1
- package/dist/topology/shapeFns.d.ts +6 -1
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/topology/solidBuilders.d.ts +8 -8
- package/dist/topology/solidBuilders.d.ts.map +1 -1
- package/dist/topology/surfaceBuilders.d.ts +7 -7
- package/dist/topology/surfaceBuilders.d.ts.map +1 -1
- package/dist/topology/surfaceFns.d.ts +1 -1
- package/dist/topology/wrapperFns.d.ts.map +1 -1
- package/dist/{topology-Bt4qS8pS.js → topology-9-u8A3nq.js} +217 -41
- package/dist/{topology-CBZcJ5pS.cjs → topology-DiWPQ0YS.cjs} +202 -26
- package/dist/topology.cjs +35 -8
- package/dist/topology.d.ts +1 -0
- package/dist/topology.d.ts.map +1 -1
- package/dist/topology.js +57 -30
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blueprint.d.ts","sourceRoot":"","sources":["../../../src/2d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AG,IAAI,CAAC;QAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;KAChB;IAgBR,iEAAiE;IACjE,UAAU;IAcV,2DAA2D;IAC3D,SAAS;IAIT;;;;OAIG;IACH,YAAY,CAAC,MAAM,SAAI;IAIvB,sEAAsE;IACtE,UAAU;IAIV;;;;OAIG;IACH,KAAK,CAAC,MAAM,SAAI;IAIhB,8CAA8C;IAC9C,IAAI,UAAU,IAAI,OAAO,CAGxB;IAED,2CAA2C;IAC3C,IAAI,SAAS,IAAI,OAAO,CAGvB;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAmBjC,gFAAgF;IAChF,QAAQ;IAIR;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS;CAc5B"}
|
package/dist/2d.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Blueprint = require("./Blueprint-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const Blueprint = require("./Blueprint-BbgdNjMG.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-DiHJyuu4.cjs");
|
|
5
5
|
function reverseCurve(curve) {
|
|
6
6
|
const cloned = curve.clone();
|
|
7
7
|
cloned.reverse();
|
package/dist/2d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as Blueprint } from "./Blueprint-
|
|
2
|
-
import { d, C } from "./Blueprint-
|
|
3
|
-
import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-
|
|
1
|
+
import { B as Blueprint } from "./Blueprint-SMLvu1pH.js";
|
|
2
|
+
import { d, C } from "./Blueprint-SMLvu1pH.js";
|
|
3
|
+
import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-BGxBWwCm.js";
|
|
4
4
|
function reverseCurve(curve) {
|
|
5
5
|
const cloned = curve.clone();
|
|
6
6
|
cloned.reverse();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
3
3
|
const types = require("./types-CA_xrgDq.cjs");
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
4
|
+
const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-DVo4NiOl.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-Dtaf2CvG.cjs");
|
|
7
7
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
8
|
-
const helpers = require("./helpers-
|
|
8
|
+
const helpers = require("./helpers-BOPjTzbq.cjs");
|
|
9
9
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
10
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const surfaceBuilders = require("./surfaceBuilders-DIPPckQg.cjs");
|
|
11
11
|
const result = require("./result.cjs");
|
|
12
12
|
function makePlane(plane, origin) {
|
|
13
13
|
if (plane && typeof plane !== "string") {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as resolvePlane } from "./vectors-B8RRTytu.js";
|
|
2
2
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-
|
|
5
|
-
import { g as getOrientation } from "./curveFns-
|
|
3
|
+
import { B as getKernel, J as getKernel2D, K as registerForCleanup, L as unregisterFromCleanup, H as createEdge, G as createWire } from "./shapeTypes-CGYrwYIi.js";
|
|
4
|
+
import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-DZU8VAlq.js";
|
|
5
|
+
import { g as getOrientation } from "./curveFns-DeYQQ18o.js";
|
|
6
6
|
import { o as ok, e as err, b as computationError, u as unwrap, x as validationError } from "./errors-lBwyc8YG.js";
|
|
7
|
-
import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-
|
|
7
|
+
import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-D8jYqufG.js";
|
|
8
8
|
import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
9
|
-
import { m as makeFace } from "./surfaceBuilders-
|
|
9
|
+
import { m as makeFace } from "./surfaceBuilders-CIEQ9j7C.js";
|
|
10
10
|
import { bug } from "./result.js";
|
|
11
11
|
function makePlane(plane, origin) {
|
|
12
12
|
if (plane && typeof plane !== "string") {
|
|
@@ -45,16 +45,16 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
45
45
|
};
|
|
46
46
|
import { a as createPlane } from "./vectors-B8RRTytu.js";
|
|
47
47
|
import { o as ok, e as err, b as computationError, u as unwrap, g as isOk } from "./errors-lBwyc8YG.js";
|
|
48
|
-
import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-
|
|
48
|
+
import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-DZU8VAlq.js";
|
|
49
49
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
50
50
|
import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
|
|
51
|
-
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-
|
|
52
|
-
import {
|
|
53
|
-
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-
|
|
54
|
-
import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-
|
|
51
|
+
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-BmO0VYht.js";
|
|
52
|
+
import { J as getKernel2D, I as createFace, G as createWire, B as getKernel, H as createEdge, D as DisposalScope } from "./shapeTypes-CGYrwYIi.js";
|
|
53
|
+
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-DeYQQ18o.js";
|
|
54
|
+
import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-CIEQ9j7C.js";
|
|
55
55
|
import { bug } from "./result.js";
|
|
56
|
-
import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-
|
|
57
|
-
import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as removeDuplicatePoints } from "./Blueprint-
|
|
56
|
+
import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-D8jYqufG.js";
|
|
57
|
+
import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as removeDuplicatePoints } from "./Blueprint-SMLvu1pH.js";
|
|
58
58
|
const intersectCurves = (first, second, precision = 1e-9) => {
|
|
59
59
|
if (first.boundingBox.isOut(second.boundingBox))
|
|
60
60
|
return ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
|
|
@@ -1009,10 +1009,11 @@ class Sketch {
|
|
|
1009
1009
|
*/
|
|
1010
1010
|
face() {
|
|
1011
1011
|
let face;
|
|
1012
|
+
const closedWire = this.wire;
|
|
1012
1013
|
if (!this.baseFace) {
|
|
1013
|
-
face = unwrap(makeFace(
|
|
1014
|
+
face = unwrap(makeFace(closedWire));
|
|
1014
1015
|
} else {
|
|
1015
|
-
face = makeNewFaceWithinFace(this.baseFace,
|
|
1016
|
+
face = makeNewFaceWithinFace(this.baseFace, closedWire);
|
|
1016
1017
|
}
|
|
1017
1018
|
return face;
|
|
1018
1019
|
}
|
|
@@ -46,16 +46,16 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
46
46
|
};
|
|
47
47
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
48
48
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
49
|
-
const faceFns = require("./faceFns-
|
|
49
|
+
const faceFns = require("./faceFns-DVo4NiOl.cjs");
|
|
50
50
|
const types = require("./types-CA_xrgDq.cjs");
|
|
51
51
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
52
|
-
const loft = require("./loft-
|
|
53
|
-
const shapeTypes = require("./shapeTypes-
|
|
54
|
-
const curveFns = require("./curveFns-
|
|
55
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
52
|
+
const loft = require("./loft-BpScchbu.cjs");
|
|
53
|
+
const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
|
|
54
|
+
const curveFns = require("./curveFns-Dtaf2CvG.cjs");
|
|
55
|
+
const surfaceBuilders = require("./surfaceBuilders-DIPPckQg.cjs");
|
|
56
56
|
const result = require("./result.cjs");
|
|
57
|
-
const helpers = require("./helpers-
|
|
58
|
-
const Blueprint = require("./Blueprint-
|
|
57
|
+
const helpers = require("./helpers-BOPjTzbq.cjs");
|
|
58
|
+
const Blueprint = require("./Blueprint-BbgdNjMG.cjs");
|
|
59
59
|
const intersectCurves = (first, second, precision = 1e-9) => {
|
|
60
60
|
if (first.boundingBox.isOut(second.boundingBox))
|
|
61
61
|
return errors.ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
|
|
@@ -1010,10 +1010,11 @@ class Sketch {
|
|
|
1010
1010
|
*/
|
|
1011
1011
|
face() {
|
|
1012
1012
|
let face;
|
|
1013
|
+
const closedWire = this.wire;
|
|
1013
1014
|
if (!this.baseFace) {
|
|
1014
|
-
face = errors.unwrap(surfaceBuilders.makeFace(
|
|
1015
|
+
face = errors.unwrap(surfaceBuilders.makeFace(closedWire));
|
|
1015
1016
|
} else {
|
|
1016
|
-
face = surfaceBuilders.makeNewFaceWithinFace(this.baseFace,
|
|
1017
|
+
face = surfaceBuilders.makeNewFaceWithinFace(this.baseFace, closedWire);
|
|
1017
1018
|
}
|
|
1018
1019
|
return face;
|
|
1019
1020
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
|
|
3
3
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
4
4
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
5
5
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
6
|
-
const shapeFns = require("./shapeFns-
|
|
7
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
+
const shapeFns = require("./shapeFns-vrqpeRIf.cjs");
|
|
7
|
+
const surfaceBuilders = require("./surfaceBuilders-DIPPckQg.cjs");
|
|
8
8
|
const shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
const tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function hasFaceTags(shape) {
|
|
@@ -551,7 +551,10 @@ function sectionToFace(shape, plane, options = {}) {
|
|
|
551
551
|
}
|
|
552
552
|
const outer = wires[outerIdx];
|
|
553
553
|
const holes = wires.filter((_, i) => i !== outerIdx);
|
|
554
|
-
return surfaceBuilders.makeFace(
|
|
554
|
+
return surfaceBuilders.makeFace(
|
|
555
|
+
outer,
|
|
556
|
+
holes.length > 0 ? holes : void 0
|
|
557
|
+
);
|
|
555
558
|
}
|
|
556
559
|
function split(shape, tools) {
|
|
557
560
|
if (tools.length === 0) return errors.ok(shape);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as getKernel, c as castShape, p as isShape3D } from "./shapeTypes-CGYrwYIi.js";
|
|
2
2
|
import { o as ok, d as isErr, e as err, x as validationError, B as BrepErrorCode, p as typeCastError, k as kernelError } from "./errors-lBwyc8YG.js";
|
|
3
3
|
import { r as resolvePlane } from "./vectors-B8RRTytu.js";
|
|
4
4
|
import { H as HASH_CODE_MAX, n as vecScale, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
|
|
5
|
-
import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-
|
|
6
|
-
import { m as makeFace } from "./surfaceBuilders-
|
|
5
|
+
import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-BmOzkjTF.js";
|
|
6
|
+
import { m as makeFace } from "./surfaceBuilders-CIEQ9j7C.js";
|
|
7
7
|
const shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
const tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
function hasFaceTags(shape) {
|
|
@@ -550,7 +550,10 @@ function sectionToFace(shape, plane, options = {}) {
|
|
|
550
550
|
}
|
|
551
551
|
const outer = wires[outerIdx];
|
|
552
552
|
const holes = wires.filter((_, i) => i !== outerIdx);
|
|
553
|
-
return makeFace(
|
|
553
|
+
return makeFace(
|
|
554
|
+
outer,
|
|
555
|
+
holes.length > 0 ? holes : void 0
|
|
556
|
+
);
|
|
554
557
|
}
|
|
555
558
|
function split(shape, tools) {
|
|
556
559
|
if (tools.length === 0) return ok(shape);
|