brepjs 18.5.3 → 18.6.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/blueprintOffset.d.ts.map +1 -1
- package/dist/2d/blueprints/intersectionSegments.d.ts.map +1 -1
- package/dist/2d/blueprints/segmentAssembly.d.ts.map +1 -1
- package/dist/2d/lib/curve2D.d.ts.map +1 -1
- package/dist/2d/lib/customCorners.d.ts.map +1 -1
- package/dist/2d/lib/stitching.d.ts.map +1 -1
- package/dist/2d/lib/svgPath.d.ts.map +1 -1
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-BKo2Z5P_.cjs → blueprint-C5LxqHCa.cjs} +16 -15
- package/dist/{blueprint-DXNeal2M.js → blueprint-CBairprN.js} +16 -15
- package/dist/{blueprintFns-DLmNAtH4.cjs → blueprintFns-CwbDuLxf.cjs} +3 -3
- package/dist/{blueprintFns-DwKTTALX.js → blueprintFns-D8ST0Cf4.js} +3 -3
- package/dist/{boolean2D-C8DlibdA.js → boolean2D-A5u9tJYl.js} +26 -24
- package/dist/{boolean2D-CvirfeVA.cjs → boolean2D-DxZ3Kwlq.cjs} +26 -24
- package/dist/{booleanFns-BTmOI2IT.cjs → booleanFns-DWQMtFDN.cjs} +9 -9
- package/dist/{booleanFns-BvRK1Oi2.js → booleanFns-DjZF4MJ5.js} +9 -9
- package/dist/brepjs.cjs +51 -41
- package/dist/brepjs.js +51 -41
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core.cjs +6 -6
- package/dist/core.js +6 -6
- package/dist/{cornerFinder-D3eGMa24.cjs → cornerFinder-B2CpcVV9.cjs} +3 -3
- package/dist/{cornerFinder-BwE0co98.js → cornerFinder-DGvOt2ab.js} +3 -3
- package/dist/{curveFns-CkhBj1Ot.cjs → curveFns-B8KJKr8-.cjs} +2 -2
- package/dist/{curveFns-DOtvwQN1.js → curveFns-DZYE3BGO.js} +2 -2
- package/dist/{drawFns-ChZrX59C.js → drawFns-Bl865kUL.js} +21 -20
- package/dist/{drawFns-CFqr2BFZ.cjs → drawFns-h8gJBx-H.cjs} +21 -20
- package/dist/{errors-DboJwVCf.js → errors-0fYW_YnO.js} +2 -1
- package/dist/{errors-CXRNVCec.cjs → errors-Dv6pfNct.cjs} +2 -1
- package/dist/{extrudeFns-sFXnQ0GR.cjs → extrudeFns-BlJKAnW8.cjs} +3 -3
- package/dist/{extrudeFns-9m-r4epC.js → extrudeFns-O2s-SFf-.js} +3 -3
- package/dist/{faceFns-9yuvhlzD.cjs → faceFns-B1H43mZ_.cjs} +3 -3
- package/dist/{faceFns-CoVqCTcx.js → faceFns-acz86gqR.js} +3 -3
- package/dist/{helpers-BPqm4AyF.cjs → helpers-C3smxDtp.cjs} +8 -8
- package/dist/{helpers-thCB-5I7.js → helpers-DL1f3xp0.js} +8 -8
- package/dist/{historyFns-DlyOFijD.js → historyFns-CD9qXw5j.js} +6 -6
- package/dist/{historyFns-C8RKuoZR.cjs → historyFns-DBdWeo7Y.cjs} +6 -6
- package/dist/{importFns-C9KoV6Q2.cjs → importFns-5tcN3-fK.cjs} +11 -19
- package/dist/{importFns-TsXZed73.js → importFns-B1p3FiGS.js} +11 -19
- package/dist/io/gltfExportFns.d.ts.map +1 -1
- package/dist/io/objExportFns.d.ts.map +1 -1
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/booleanOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/constructionOps.d.ts +3 -2
- package/dist/kernel/brepkit/constructionOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/evolutionOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/geometryOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/helpers.d.ts.map +1 -1
- package/dist/kernel/brepkit/internalOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/ioOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/kernel2dOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/measureOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/meshOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/modifierOps.d.ts.map +1 -1
- package/dist/kernel/brepkit/topologyOps.d.ts.map +1 -1
- package/dist/kernel/occt/advancedOps.d.ts.map +1 -1
- package/dist/kernel/occt/booleanOps.d.ts.map +1 -1
- package/dist/kernel/occt/extendedConstructorOps.d.ts.map +1 -1
- package/dist/kernel/occt/kernel2dOps.d.ts.map +1 -1
- package/dist/kernel/occtWasm/adapterShims.d.ts +5 -0
- package/dist/kernel/occtWasm/adapterShims.d.ts.map +1 -0
- package/dist/kernel/occtWasm/booleanOps.d.ts +12 -0
- package/dist/kernel/occtWasm/booleanOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/constructionOps.d.ts +37 -0
- package/dist/kernel/occtWasm/constructionOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/curveOps.d.ts +24 -0
- package/dist/kernel/occtWasm/curveOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/evolutionOps.d.ts +18 -0
- package/dist/kernel/occtWasm/evolutionOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/helpers.d.ts +32 -0
- package/dist/kernel/occtWasm/helpers.d.ts.map +1 -0
- package/dist/kernel/occtWasm/hullOps.d.ts +13 -0
- package/dist/kernel/occtWasm/hullOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/ioOps.d.ts +53 -0
- package/dist/kernel/occtWasm/ioOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/kernel2dOps.d.ts +91 -0
- package/dist/kernel/occtWasm/kernel2dOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/measureOps.d.ts +32 -0
- package/dist/kernel/occtWasm/measureOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/meshOps.d.ts +7 -0
- package/dist/kernel/occtWasm/meshOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/modifierOps.d.ts +15 -0
- package/dist/kernel/occtWasm/modifierOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +30 -30
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/primitiveOps.d.ts +11 -0
- package/dist/kernel/occtWasm/primitiveOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/repairOps.d.ts +11 -0
- package/dist/kernel/occtWasm/repairOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/surfaceOps.d.ts +29 -0
- package/dist/kernel/occtWasm/surfaceOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/sweepOps.d.ts +39 -0
- package/dist/kernel/occtWasm/sweepOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/topologyOps.d.ts +15 -0
- package/dist/kernel/occtWasm/topologyOps.d.ts.map +1 -0
- package/dist/kernel/occtWasm/transformOps.d.ts +28 -0
- package/dist/kernel/occtWasm/transformOps.d.ts.map +1 -0
- package/dist/{measureFns-DXLTUwTN.cjs → measureFns-CHmy_Inq.cjs} +3 -3
- package/dist/{measureFns-CkhDfqzu.js → measureFns-CJi8erDL.js} +3 -3
- package/dist/measurement/interferenceFns.d.ts.map +1 -1
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CAUI3r1d.js → meshFns-BkY1RAoC.js} +3 -3
- package/dist/{meshFns-DzGr_wxJ.cjs → meshFns-t2lR4BDS.cjs} +3 -3
- package/dist/occtWasmAdapter--TZGP9DX.js +4606 -0
- package/dist/occtWasmAdapter-C2VW-uYg.cjs +4719 -0
- package/dist/operations/compoundOpsFns.d.ts.map +1 -1
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{planeOps-sTrM3dcQ.js → planeOps-4i2qEraD.js} +4 -4
- package/dist/{planeOps-BJOIbn4K.cjs → planeOps-CH4ruLuj.cjs} +4 -4
- package/dist/{primitiveFns-ClBrBsj6.cjs → primitiveFns-DwhN--zB.cjs} +7 -7
- package/dist/{primitiveFns-DEIibX8G.js → primitiveFns-Emvge_71.js} +7 -7
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/result.cjs +1 -1
- package/dist/result.js +1 -1
- package/dist/{shapeFns-c2eak2sT.cjs → shapeFns-CObBAJoQ.cjs} +4 -4
- package/dist/{shapeFns-Cwt0CMNm.js → shapeFns-DThjHtJI.js} +4 -4
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-D-JLpn7D.cjs → shapeRefFns-I0MHjRAq.cjs} +5 -4
- package/dist/{shapeRefFns-Cx61pDhQ.js → shapeRefFns-WMhIFuGW.js} +5 -4
- package/dist/{shapeTypes-Xnk670Cd.cjs → shapeTypes-8vB31RfA.cjs} +290 -418
- package/dist/{shapeTypes-uibK1QHY.js → shapeTypes-AyL8vv_O.js} +290 -418
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{solidBuilders-BnTtq4g1.js → solidBuilders-C7Xp_ikW.js} +3 -3
- package/dist/{solidBuilders-23LDxzEn.cjs → solidBuilders-Djwgx2mj.cjs} +3 -3
- package/dist/{surfaceBuilders-CUn-cmah.cjs → surfaceBuilders-BEnsewN9.cjs} +3 -3
- package/dist/{surfaceBuilders-DeNnAJb3.js → surfaceBuilders-Con0IpLf.js} +3 -3
- package/dist/topology/minkowskiFns.d.ts.map +1 -1
- package/dist/topology/shapeRef/shapeRefFns.d.ts.map +1 -1
- package/dist/topology/wrapperFns.d.ts.map +1 -1
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/dist/utils/vec3.d.ts +32 -0
- package/dist/utils/vec3.d.ts.map +1 -0
- package/dist/vec3-BRj3eI54.js +25 -0
- package/dist/vec3-S4Oh59IX.cjs +36 -0
- package/dist/vectors.cjs +4 -4
- package/dist/vectors.js +4 -4
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +1 -1
- package/package.json +2 -2
- package/dist/occtWasmAdapter-CuZRRioz.cjs +0 -3947
- package/dist/occtWasmAdapter-DIhUXubY.js +0 -3834
- /package/dist/{arrayAccess-tCIbjLs5.js → arrayAccess-2G0pRoaC.js} +0 -0
- /package/dist/{arrayAccess-DsnQpdSD.cjs → arrayAccess-Br-m2PP7.cjs} +0 -0
- /package/dist/{constants-csSEYddm.js → constants-Ci5CA3aZ.js} +0 -0
- /package/dist/{constants-BNP_xnBN.cjs → constants-DTorLmes.cjs} +0 -0
- /package/dist/{types--GD-LVc6.js → types-BIdk_GJY.js} +0 -0
- /package/dist/{types-gLi9wL0N.cjs → types-CDkxah-M.cjs} +0 -0
- /package/dist/{vecOps-CODplJp3.cjs → vecOps-D7xplSx8.cjs} +0 -0
- /package/dist/{vecOps-B-PCHgyB.js → vecOps-DVROrqTV.js} +0 -0
- /package/dist/{workerHandler-Dm0_0F8Z.js → workerHandler-BndMJVx6.js} +0 -0
- /package/dist/{workerHandler-C-3cFcsQ.cjs → workerHandler-sCf818XJ.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprintOffset.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintOffset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blueprintOffset.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintOffset.ts"],"names":[],"mappings":"AAMA,OAAO,EAIL,OAAO,EAQR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAGvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAiO9C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,cAAmB,GAChC,OAAO,EAAE,CAgGX;AAOD,8CAA8C;AAC9C,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;CAC5C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,cAAmB,GAChC,OAAO,CA4DT;AAUD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAC5B,EAAE,EAAE,OAAO,EACX,cAAc,EAAE,MAAM,EACtB,YAAY,GAAE,cAAmB,GAChC,OAAO,CAeT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersectionSegments.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/intersectionSegments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"intersectionSegments.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/intersectionSegments.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,mBAAmB,CAAC;AAG1D,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAY5C,OAAO,KAAK,EAAW,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAsLxE;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,oBAAoB,EAAE,OAAO,EAAE,EAAE,EACjC,YAAY,EAAE,OAAO,EACrB,UAAU,EAAE,OAAO,GAClB,OAAO,CAQT;AAMD;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,SAAS,GAChB,mBAAmB,EAAE,GAAG,IAAI,CAsF9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmentAssembly.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/segmentAssembly.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"segmentAssembly.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/segmentAssembly.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAgE9C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,CA6BzD;AAMD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC;AAED,UAAU,eAAe;IACvB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B;AAED,MAAM,MAAM,sBAAsB,GAC9B,SAAS,GACT,UAAU,GACV,IAAI,GACJ,eAAe,GACf,oBAAoB,CAAC;AAMzB,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC1C;AAmGD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,sBAAsB,GAC7B,sBAAsB,CAmExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curve2D.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/curve2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"curve2D.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/curve2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,kBAAkB,CAAC;AAOhE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMhD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAS;IACzB,YAAY,EAAE,IAAI,GAAG,aAAa,CAAC;IACnC,OAAO,CAAC,WAAW,CAAwB;IAC3C,OAAO,CAAC,UAAU,CAAwB;IAC1C,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,cAAc,CAAuB;gBAEjC,MAAM,EAAE,UAAU;IAW9B,IAAI,OAAO,IAAI,UAAU,CAGxB;IAED,MAAM,IAAI,IAAI;IAUd,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIxB,6DAA6D;IAC7D,IAAI,WAAW,kBAOd;IAED,yEAAyE;IACzE,IAAI,IAAI,WAEP;IAED,6FAA6F;IAC7F,SAAS,IAAI,MAAM;IAInB,yEAAyE;IACzE,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAIjC,8EAA8E;IAC9E,IAAI,UAAU,IAAI,OAAO,CAKxB;IAED,4EAA4E;IAC5E,IAAI,SAAS,IAAI,OAAO,CAKvB;IAED,wFAAwF;IACxF,IAAI,cAAc,IAAI,MAAM,CAK3B;IAED,sFAAsF;IACtF,IAAI,aAAa,IAAI,MAAM,CAK1B;IAED,wFAAwF;IACxF,IAAI,QAAQ,IAAI,SAAS,CAExB;IAED,qDAAqD;IACrD,KAAK,IAAI,OAAO;IAUhB,sDAAsD;IACtD,OAAO,IAAI,IAAI;IAUf,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,iBAAiB;IAyBzB,gFAAgF;IAChF,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM;IAQhD,8EAA8E;IAC9E,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAIlC;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,SAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IAsC3D;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO;IAe3C;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,SAAS,SAAO,GAAG,OAAO,EAAE;CA6BnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customCorners.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/customCorners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"customCorners.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/customCorners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAwDvC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aASrF;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAStF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAgD5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stitching.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/stitching.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"stitching.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/stitching.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,EAAE,EAAE,kBAAgB,KAAG,OAAO,EAAE,EAkE3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svgPath.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/svgPath.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"svgPath.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/svgPath.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,EAAE,WAAW,OAAO,KAAG,MA8D3E,CAAC"}
|
package/dist/2d.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
3
|
-
const require_errors = require("./errors-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_boolean2D = require("./boolean2D-
|
|
6
|
-
const require_blueprint = require("./blueprint-
|
|
7
|
-
const require_blueprintFns = require("./blueprintFns-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-8vB31RfA.cjs");
|
|
3
|
+
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-B1H43mZ_.cjs");
|
|
5
|
+
const require_boolean2D = require("./boolean2D-DxZ3Kwlq.cjs");
|
|
6
|
+
const require_blueprint = require("./blueprint-C5LxqHCa.cjs");
|
|
7
|
+
const require_blueprintFns = require("./blueprintFns-CwbDuLxf.cjs");
|
|
8
8
|
//#region src/core/curve2dHandle.ts
|
|
9
9
|
/**
|
|
10
10
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
package/dist/2d.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-
|
|
2
|
-
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-
|
|
3
|
-
import { z as kernelCallRaw } from "./faceFns-
|
|
4
|
-
import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-
|
|
5
|
-
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-
|
|
6
|
-
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-
|
|
1
|
+
import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-AyL8vv_O.js";
|
|
2
|
+
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
|
|
3
|
+
import { z as kernelCallRaw } from "./faceFns-acz86gqR.js";
|
|
4
|
+
import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-A5u9tJYl.js";
|
|
5
|
+
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-CBairprN.js";
|
|
6
|
+
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-D8ST0Cf4.js";
|
|
7
7
|
//#region src/core/curve2dHandle.ts
|
|
8
8
|
/**
|
|
9
9
|
* Wrap a raw kernel 2D curve handle with brand + disposal tracking.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-8vB31RfA.cjs");
|
|
2
|
+
const require_vec3 = require("./vec3-S4Oh59IX.cjs");
|
|
3
|
+
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-B1H43mZ_.cjs");
|
|
5
|
+
const require_constants = require("./constants-DTorLmes.cjs");
|
|
6
|
+
const require_types = require("./types-CDkxah-M.cjs");
|
|
7
|
+
const require_planeOps = require("./planeOps-CH4ruLuj.cjs");
|
|
8
|
+
const require_curveFns = require("./curveFns-B8KJKr8-.cjs");
|
|
9
|
+
const require_arrayAccess = require("./arrayAccess-Br-m2PP7.cjs");
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BEnsewN9.cjs");
|
|
11
|
+
const require_helpers = require("./helpers-C3smxDtp.cjs");
|
|
11
12
|
//#region src/2d/lib/definitions.ts
|
|
12
13
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
13
14
|
function isPoint2D(point) {
|
|
@@ -319,9 +320,9 @@ var Curve2D = class Curve2D {
|
|
|
319
320
|
const firstParam = this.firstParameter;
|
|
320
321
|
const lastParam = this.lastParameter;
|
|
321
322
|
if (firstParam > lastParam) parameters.reverse();
|
|
322
|
-
if (Math.abs(parameters
|
|
323
|
+
if (Math.abs(require_vec3.wasmIndex(parameters, 0) - firstParam) < precision * 100) parameters = parameters.slice(1);
|
|
323
324
|
if (!parameters.length) return [this];
|
|
324
|
-
if (Math.abs(parameters
|
|
325
|
+
if (Math.abs(require_vec3.wasmIndex(parameters, parameters.length - 1) - lastParam) < precision * 100) parameters = parameters.slice(0, -1);
|
|
325
326
|
if (!parameters.length) return [this];
|
|
326
327
|
return require_shapeTypes.getKernel().splitCurve2d(this.wrapped, parameters).map((h) => new Curve2D(h));
|
|
327
328
|
}
|
|
@@ -525,12 +526,12 @@ var adaptedCurveToPathElem = (curve, lastPoint) => {
|
|
|
525
526
|
const deg = poles.length - 1;
|
|
526
527
|
if (deg === 1) return `L ${endpoint}`;
|
|
527
528
|
if (deg === 2) {
|
|
528
|
-
const [px, py] = poles
|
|
529
|
+
const [px, py] = require_vec3.wasmIndex(poles, 1);
|
|
529
530
|
return `Q ${round2(px)} ${round2(py)} ${endpoint}`;
|
|
530
531
|
}
|
|
531
532
|
if (deg === 3) {
|
|
532
|
-
const [p1x, p1y] = poles
|
|
533
|
-
const [p2x, p2y] = poles
|
|
533
|
+
const [p1x, p1y] = require_vec3.wasmIndex(poles, 1);
|
|
534
|
+
const [p2x, p2y] = require_vec3.wasmIndex(poles, 2);
|
|
534
535
|
return `C ${round2(p1x)} ${round2(p1y)} ${round2(p2x)} ${round2(p2y)} ${endpoint}`;
|
|
535
536
|
}
|
|
536
537
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import { r as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { r as
|
|
10
|
-
import {
|
|
1
|
+
import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-AyL8vv_O.js";
|
|
2
|
+
import { n as wasmIndex } from "./vec3-BRj3eI54.js";
|
|
3
|
+
import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-0fYW_YnO.js";
|
|
4
|
+
import { M as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-acz86gqR.js";
|
|
5
|
+
import { r as RAD2DEG, t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
|
|
6
|
+
import { r as toVec3 } from "./types-BIdk_GJY.js";
|
|
7
|
+
import { r as makePlane } from "./planeOps-4i2qEraD.js";
|
|
8
|
+
import { f as getOrientation } from "./curveFns-DZYE3BGO.js";
|
|
9
|
+
import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-2G0pRoaC.js";
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders-Con0IpLf.js";
|
|
11
|
+
import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-DL1f3xp0.js";
|
|
11
12
|
//#region src/2d/lib/definitions.ts
|
|
12
13
|
/** Type guard that checks whether a value is a `Point2D`. */
|
|
13
14
|
function isPoint2D(point) {
|
|
@@ -319,9 +320,9 @@ var Curve2D = class Curve2D {
|
|
|
319
320
|
const firstParam = this.firstParameter;
|
|
320
321
|
const lastParam = this.lastParameter;
|
|
321
322
|
if (firstParam > lastParam) parameters.reverse();
|
|
322
|
-
if (Math.abs(parameters
|
|
323
|
+
if (Math.abs(wasmIndex(parameters, 0) - firstParam) < precision * 100) parameters = parameters.slice(1);
|
|
323
324
|
if (!parameters.length) return [this];
|
|
324
|
-
if (Math.abs(parameters
|
|
325
|
+
if (Math.abs(wasmIndex(parameters, parameters.length - 1) - lastParam) < precision * 100) parameters = parameters.slice(0, -1);
|
|
325
326
|
if (!parameters.length) return [this];
|
|
326
327
|
return getKernel().splitCurve2d(this.wrapped, parameters).map((h) => new Curve2D(h));
|
|
327
328
|
}
|
|
@@ -525,12 +526,12 @@ var adaptedCurveToPathElem = (curve, lastPoint) => {
|
|
|
525
526
|
const deg = poles.length - 1;
|
|
526
527
|
if (deg === 1) return `L ${endpoint}`;
|
|
527
528
|
if (deg === 2) {
|
|
528
|
-
const [px, py] = poles
|
|
529
|
+
const [px, py] = wasmIndex(poles, 1);
|
|
529
530
|
return `Q ${round2(px)} ${round2(py)} ${endpoint}`;
|
|
530
531
|
}
|
|
531
532
|
if (deg === 3) {
|
|
532
|
-
const [p1x, p1y] = poles
|
|
533
|
-
const [p2x, p2y] = poles
|
|
533
|
+
const [p1x, p1y] = wasmIndex(poles, 1);
|
|
534
|
+
const [p2x, p2y] = wasmIndex(poles, 2);
|
|
534
535
|
return `C ${round2(p1x)} ${round2(p1y)} ${round2(p2x)} ${round2(p2y)} ${endpoint}`;
|
|
535
536
|
}
|
|
536
537
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_errors = require("./errors-
|
|
2
|
-
const require_boolean2D = require("./boolean2D-
|
|
3
|
-
const require_blueprint = require("./blueprint-
|
|
1
|
+
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
2
|
+
const require_boolean2D = require("./boolean2D-DxZ3Kwlq.cjs");
|
|
3
|
+
const require_blueprint = require("./blueprint-C5LxqHCa.cjs");
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-
|
|
2
|
-
import { g as CompoundBlueprint } from "./boolean2D-
|
|
3
|
-
import { t as Blueprint } from "./blueprint-
|
|
1
|
+
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
|
|
2
|
+
import { g as CompoundBlueprint } from "./boolean2D-A5u9tJYl.js";
|
|
3
|
+
import { t as Blueprint } from "./blueprint-CBairprN.js";
|
|
4
4
|
//#region src/2d/lib/curve2dFns.ts
|
|
5
5
|
/**
|
|
6
6
|
* Return a reversed copy of the curve (non-mutating).
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { R as DisposalScope, X as getKernel, Y as _usingCtx, Z as getKernel2D, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { c as
|
|
1
|
+
import { R as DisposalScope, X as getKernel, Y as _usingCtx, Z as getKernel2D, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-AyL8vv_O.js";
|
|
2
|
+
import { n as wasmIndex } from "./vec3-BRj3eI54.js";
|
|
3
|
+
import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, n as computationError, s as safeIndex } from "./errors-0fYW_YnO.js";
|
|
4
|
+
import { N as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-acz86gqR.js";
|
|
5
|
+
import { r as RAD2DEG, t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
|
|
6
|
+
import { r as toVec3 } from "./types-BIdk_GJY.js";
|
|
7
|
+
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-DVROrqTV.js";
|
|
8
|
+
import { n as createPlane } from "./planeOps-4i2qEraD.js";
|
|
9
|
+
import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-DZYE3BGO.js";
|
|
10
|
+
import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-2G0pRoaC.js";
|
|
11
|
+
import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-Con0IpLf.js";
|
|
12
|
+
import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-DL1f3xp0.js";
|
|
13
|
+
import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-CBairprN.js";
|
|
14
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-O2s-SFf-.js";
|
|
14
15
|
//#region node_modules/flatqueue/index.js
|
|
15
16
|
/** @template T */
|
|
16
17
|
var FlatQueue = class {
|
|
@@ -526,7 +527,7 @@ var selfIntersections = (curve, precision = 1e-9) => {
|
|
|
526
527
|
var offsetEndPoints = (firstPoint, lastPoint, offset) => {
|
|
527
528
|
const tangent = normalize2d(subtract2d(lastPoint, firstPoint));
|
|
528
529
|
const normal = [tangent[1], -tangent[0]];
|
|
529
|
-
const offsetVec = [normal
|
|
530
|
+
const offsetVec = [wasmIndex(normal, 0) * offset, wasmIndex(normal, 1) * offset];
|
|
530
531
|
return {
|
|
531
532
|
firstPoint: add2d(firstPoint, offsetVec),
|
|
532
533
|
lastPoint: add2d(lastPoint, offsetVec)
|
|
@@ -623,11 +624,11 @@ function removeCorner(firstCurve, secondCurve, radius) {
|
|
|
623
624
|
const splitParam = unwrap(curve.parameter(splitPoint, 1e-6));
|
|
624
625
|
return curve.splitAt([splitParam]);
|
|
625
626
|
};
|
|
626
|
-
const
|
|
627
|
-
const
|
|
627
|
+
const firstSplit = splitForFillet(firstCurve, firstOffset);
|
|
628
|
+
const secondSplit = splitForFillet(secondCurve, secondOffset);
|
|
628
629
|
return {
|
|
629
|
-
first,
|
|
630
|
-
second,
|
|
630
|
+
first: wasmIndex(firstSplit, 0),
|
|
631
|
+
second: wasmIndex(secondSplit, 1),
|
|
631
632
|
center
|
|
632
633
|
};
|
|
633
634
|
}
|
|
@@ -692,8 +693,10 @@ function dogboneFilletCurves(firstCurve, secondCurve, radius) {
|
|
|
692
693
|
const firstInt = unwrap(intersectCurves(firstCurve, circle)).intersections[0];
|
|
693
694
|
const secondInt = unwrap(intersectCurves(secondCurve, circle)).intersections.at(-1);
|
|
694
695
|
if (!firstInt || !secondInt) return [firstCurve, secondCurve];
|
|
695
|
-
const
|
|
696
|
-
const
|
|
696
|
+
const firstSplit = firstCurve.splitAt([firstInt]);
|
|
697
|
+
const secondSplit = secondCurve.splitAt([secondInt]);
|
|
698
|
+
const firstPart = wasmIndex(firstSplit, 0);
|
|
699
|
+
const secondPart = wasmIndex(secondSplit, secondSplit.length - 1);
|
|
697
700
|
try {
|
|
698
701
|
return [
|
|
699
702
|
firstPart,
|
|
@@ -2122,8 +2125,7 @@ function findAllIntersections(first, second) {
|
|
|
2122
2125
|
const [[xMin, yMin], [xMax, yMax]] = thisCurve.boundingBox.bounds;
|
|
2123
2126
|
const candidates = secondIndex.search(xMin, yMin, xMax, yMax);
|
|
2124
2127
|
for (const secondIdx of candidates) {
|
|
2125
|
-
const
|
|
2126
|
-
const { intersections, commonSegments, commonSegmentsPoints } = unwrap(intersectCurves(thisCurve, otherCurve, PRECISION_INTERSECTION / 100));
|
|
2128
|
+
const { intersections, commonSegments, commonSegmentsPoints } = unwrap(intersectCurves(thisCurve, wasmIndex(second.curves, secondIdx), PRECISION_INTERSECTION / 100));
|
|
2127
2129
|
allIntersections.push(...intersections);
|
|
2128
2130
|
firstCurvePoints[firstIdx]?.push(...intersections);
|
|
2129
2131
|
secondCurvePoints[secondIdx]?.push(...intersections);
|
|
@@ -2227,7 +2229,7 @@ function mergeCollinearSegments(curves) {
|
|
|
2227
2229
|
const result = [];
|
|
2228
2230
|
let i = 0;
|
|
2229
2231
|
while (i < curves.length) {
|
|
2230
|
-
const current = curves
|
|
2232
|
+
const current = wasmIndex(curves, i);
|
|
2231
2233
|
if (current.geomType !== "LINE") {
|
|
2232
2234
|
result.push(current);
|
|
2233
2235
|
i++;
|
|
@@ -2236,7 +2238,7 @@ function mergeCollinearSegments(curves) {
|
|
|
2236
2238
|
let endPoint = current.lastPoint;
|
|
2237
2239
|
let j = i + 1;
|
|
2238
2240
|
while (j < curves.length) {
|
|
2239
|
-
const next = curves
|
|
2241
|
+
const next = wasmIndex(curves, j);
|
|
2240
2242
|
if (next.geomType !== "LINE") break;
|
|
2241
2243
|
if (!samePoint(endPoint, next.firstPoint)) break;
|
|
2242
2244
|
const dir1 = subtract2d(endPoint, current.firstPoint);
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-8vB31RfA.cjs");
|
|
2
|
+
const require_vec3 = require("./vec3-S4Oh59IX.cjs");
|
|
3
|
+
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-B1H43mZ_.cjs");
|
|
5
|
+
const require_constants = require("./constants-DTorLmes.cjs");
|
|
6
|
+
const require_types = require("./types-CDkxah-M.cjs");
|
|
7
|
+
const require_vecOps = require("./vecOps-D7xplSx8.cjs");
|
|
8
|
+
const require_planeOps = require("./planeOps-CH4ruLuj.cjs");
|
|
9
|
+
const require_curveFns = require("./curveFns-B8KJKr8-.cjs");
|
|
10
|
+
const require_arrayAccess = require("./arrayAccess-Br-m2PP7.cjs");
|
|
11
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BEnsewN9.cjs");
|
|
12
|
+
const require_helpers = require("./helpers-C3smxDtp.cjs");
|
|
13
|
+
const require_blueprint = require("./blueprint-C5LxqHCa.cjs");
|
|
14
|
+
const require_extrudeFns = require("./extrudeFns-BlJKAnW8.cjs");
|
|
14
15
|
//#region node_modules/flatqueue/index.js
|
|
15
16
|
/** @template T */
|
|
16
17
|
var FlatQueue = class {
|
|
@@ -526,7 +527,7 @@ var selfIntersections = (curve, precision = 1e-9) => {
|
|
|
526
527
|
var offsetEndPoints = (firstPoint, lastPoint, offset) => {
|
|
527
528
|
const tangent = require_helpers.normalize2d(require_helpers.subtract2d(lastPoint, firstPoint));
|
|
528
529
|
const normal = [tangent[1], -tangent[0]];
|
|
529
|
-
const offsetVec = [normal
|
|
530
|
+
const offsetVec = [require_vec3.wasmIndex(normal, 0) * offset, require_vec3.wasmIndex(normal, 1) * offset];
|
|
530
531
|
return {
|
|
531
532
|
firstPoint: require_helpers.add2d(firstPoint, offsetVec),
|
|
532
533
|
lastPoint: require_helpers.add2d(lastPoint, offsetVec)
|
|
@@ -623,11 +624,11 @@ function removeCorner(firstCurve, secondCurve, radius) {
|
|
|
623
624
|
const splitParam = require_errors.unwrap(curve.parameter(splitPoint, 1e-6));
|
|
624
625
|
return curve.splitAt([splitParam]);
|
|
625
626
|
};
|
|
626
|
-
const
|
|
627
|
-
const
|
|
627
|
+
const firstSplit = splitForFillet(firstCurve, firstOffset);
|
|
628
|
+
const secondSplit = splitForFillet(secondCurve, secondOffset);
|
|
628
629
|
return {
|
|
629
|
-
first,
|
|
630
|
-
second,
|
|
630
|
+
first: require_vec3.wasmIndex(firstSplit, 0),
|
|
631
|
+
second: require_vec3.wasmIndex(secondSplit, 1),
|
|
631
632
|
center
|
|
632
633
|
};
|
|
633
634
|
}
|
|
@@ -692,8 +693,10 @@ function dogboneFilletCurves(firstCurve, secondCurve, radius) {
|
|
|
692
693
|
const firstInt = require_errors.unwrap(intersectCurves(firstCurve, circle)).intersections[0];
|
|
693
694
|
const secondInt = require_errors.unwrap(intersectCurves(secondCurve, circle)).intersections.at(-1);
|
|
694
695
|
if (!firstInt || !secondInt) return [firstCurve, secondCurve];
|
|
695
|
-
const
|
|
696
|
-
const
|
|
696
|
+
const firstSplit = firstCurve.splitAt([firstInt]);
|
|
697
|
+
const secondSplit = secondCurve.splitAt([secondInt]);
|
|
698
|
+
const firstPart = require_vec3.wasmIndex(firstSplit, 0);
|
|
699
|
+
const secondPart = require_vec3.wasmIndex(secondSplit, secondSplit.length - 1);
|
|
697
700
|
try {
|
|
698
701
|
return [
|
|
699
702
|
firstPart,
|
|
@@ -2122,8 +2125,7 @@ function findAllIntersections(first, second) {
|
|
|
2122
2125
|
const [[xMin, yMin], [xMax, yMax]] = thisCurve.boundingBox.bounds;
|
|
2123
2126
|
const candidates = secondIndex.search(xMin, yMin, xMax, yMax);
|
|
2124
2127
|
for (const secondIdx of candidates) {
|
|
2125
|
-
const
|
|
2126
|
-
const { intersections, commonSegments, commonSegmentsPoints } = require_errors.unwrap(intersectCurves(thisCurve, otherCurve, require_helpers.PRECISION_INTERSECTION / 100));
|
|
2128
|
+
const { intersections, commonSegments, commonSegmentsPoints } = require_errors.unwrap(intersectCurves(thisCurve, require_vec3.wasmIndex(second.curves, secondIdx), require_helpers.PRECISION_INTERSECTION / 100));
|
|
2127
2129
|
allIntersections.push(...intersections);
|
|
2128
2130
|
firstCurvePoints[firstIdx]?.push(...intersections);
|
|
2129
2131
|
secondCurvePoints[secondIdx]?.push(...intersections);
|
|
@@ -2227,7 +2229,7 @@ function mergeCollinearSegments(curves) {
|
|
|
2227
2229
|
const result = [];
|
|
2228
2230
|
let i = 0;
|
|
2229
2231
|
while (i < curves.length) {
|
|
2230
|
-
const current = curves
|
|
2232
|
+
const current = require_vec3.wasmIndex(curves, i);
|
|
2231
2233
|
if (current.geomType !== "LINE") {
|
|
2232
2234
|
result.push(current);
|
|
2233
2235
|
i++;
|
|
@@ -2236,7 +2238,7 @@ function mergeCollinearSegments(curves) {
|
|
|
2236
2238
|
let endPoint = current.lastPoint;
|
|
2237
2239
|
let j = i + 1;
|
|
2238
2240
|
while (j < curves.length) {
|
|
2239
|
-
const next = curves
|
|
2241
|
+
const next = require_vec3.wasmIndex(curves, j);
|
|
2240
2242
|
if (next.geomType !== "LINE") break;
|
|
2241
2243
|
if (!samePoint(endPoint, next.firstPoint)) break;
|
|
2242
2244
|
const dir1 = require_helpers.subtract2d(endPoint, current.firstPoint);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_constants = require("./constants-
|
|
5
|
-
const require_vecOps = require("./vecOps-
|
|
6
|
-
const require_planeOps = require("./planeOps-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_arrayAccess = require("./arrayAccess-
|
|
9
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-8vB31RfA.cjs");
|
|
2
|
+
const require_errors = require("./errors-Dv6pfNct.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-B1H43mZ_.cjs");
|
|
4
|
+
const require_constants = require("./constants-DTorLmes.cjs");
|
|
5
|
+
const require_vecOps = require("./vecOps-D7xplSx8.cjs");
|
|
6
|
+
const require_planeOps = require("./planeOps-CH4ruLuj.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-CObBAJoQ.cjs");
|
|
8
|
+
const require_arrayAccess = require("./arrayAccess-Br-m2PP7.cjs");
|
|
9
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BEnsewN9.cjs");
|
|
10
10
|
//#region src/topology/booleanFns.ts
|
|
11
11
|
/**
|
|
12
12
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-
|
|
2
|
-
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-
|
|
3
|
-
import { C as getVertices, b as getEdges, w as getWires } from "./faceFns-
|
|
4
|
-
import { n as HASH_CODE_MAX } from "./constants-
|
|
5
|
-
import { h as vecScale, t as vecAdd } from "./vecOps-
|
|
6
|
-
import { o as resolvePlane } from "./planeOps-
|
|
7
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-
|
|
8
|
-
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-
|
|
9
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
1
|
+
import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-AyL8vv_O.js";
|
|
2
|
+
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-0fYW_YnO.js";
|
|
3
|
+
import { C as getVertices, b as getEdges, w as getWires } from "./faceFns-acz86gqR.js";
|
|
4
|
+
import { n as HASH_CODE_MAX } from "./constants-Ci5CA3aZ.js";
|
|
5
|
+
import { h as vecScale, t as vecAdd } from "./vecOps-DVROrqTV.js";
|
|
6
|
+
import { o as resolvePlane } from "./planeOps-4i2qEraD.js";
|
|
7
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-DThjHtJI.js";
|
|
8
|
+
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-2G0pRoaC.js";
|
|
9
|
+
import { r as makeFace } from "./surfaceBuilders-Con0IpLf.js";
|
|
10
10
|
//#region src/topology/booleanFns.ts
|
|
11
11
|
/**
|
|
12
12
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|