brepjs 6.0.0 → 7.1.0

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.
Files changed (63) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +4 -4
  3. package/dist/{Blueprint-Bp2u4V7e.js → Blueprint-9Gdmj67R.js} +8 -8
  4. package/dist/{Blueprint-DV-yKdrQ.cjs → Blueprint-DCoXzdIm.cjs} +1 -1
  5. package/dist/{boolean2D-DShTIA0X.cjs → boolean2D-9E0ZB4yu.cjs} +3 -3
  6. package/dist/{boolean2D-DKFinpPn.js → boolean2D-BfpQtXOQ.js} +10 -10
  7. package/dist/{booleanFns-BXYMeWJJ.js → booleanFns-CZzbd4sX.js} +6 -6
  8. package/dist/brepjs.cjs +284 -118
  9. package/dist/brepjs.js +514 -349
  10. package/dist/{cast-3pDXduc8.js → cast-Bx3PuKsP.js} +2 -2
  11. package/dist/core.js +3 -3
  12. package/dist/{curveFns-nJKh5suT.js → curveFns-DFRn4NzJ.js} +2 -2
  13. package/dist/{drawFns-BWKbpjfT.js → drawFns-CzYsisur.js} +12 -12
  14. package/dist/{drawFns-DC4_4g56.cjs → drawFns-jZkfPayI.cjs} +4 -4
  15. package/dist/{faceFns-DkX5kyA0.js → faceFns-SBxx55zv.js} +3 -3
  16. package/dist/index.d.ts +8 -11
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/io.cjs +1 -1
  19. package/dist/io.js +4 -4
  20. package/dist/{loft-DQH8oG0m.js → loft-BJHEEDu4.js} +4 -4
  21. package/dist/{loft-BcY4iWZf.cjs → loft-Cz36k5dM.cjs} +1 -1
  22. package/dist/{measurement-BqDgy3Wf.js → measurement-DZUawVj4.js} +3 -3
  23. package/dist/measurement.js +1 -1
  24. package/dist/{meshFns-BRU3iPQp.js → meshFns-BanGVcaW.js} +1 -1
  25. package/dist/{occtBoundary-Bo41qJLE.js → occtBoundary-CwegMzqc.js} +4 -4
  26. package/dist/operations/{cleanOpsFns.d.ts → api.d.ts} +3 -2
  27. package/dist/operations/api.d.ts.map +1 -0
  28. package/dist/operations/extrudeFns.d.ts +4 -3
  29. package/dist/operations/extrudeFns.d.ts.map +1 -1
  30. package/dist/operations-C6ry44Xe.js +575 -0
  31. package/dist/operations-IwYUx4V_.cjs +574 -0
  32. package/dist/operations.cjs +31 -586
  33. package/dist/operations.d.ts +2 -3
  34. package/dist/operations.d.ts.map +1 -1
  35. package/dist/operations.js +34 -590
  36. package/dist/{query-BWgSLodB.js → query-CMkm1olv.js} +7 -7
  37. package/dist/query.js +1 -1
  38. package/dist/{shapeFns-CQRwRotS.js → shapeFns-GaYcQL6U.js} +3 -3
  39. package/dist/{shapeHelpers-DJ6shRx4.js → shapeHelpers-DL3Kro2n.js} +5 -16
  40. package/dist/{shapeHelpers-HGNl3W6O.cjs → shapeHelpers-XCWxPN_X.cjs} +0 -11
  41. package/dist/{shapeTypes-C1OUu4VG.js → shapeTypes-BlSElW8z.js} +1 -1
  42. package/dist/sketching.cjs +2 -2
  43. package/dist/sketching.js +2 -2
  44. package/dist/topology/{cleanApi.d.ts → api.d.ts} +1 -1
  45. package/dist/topology/api.d.ts.map +1 -0
  46. package/dist/topology/compoundOpsFns.d.ts.map +1 -1
  47. package/dist/topology/index.d.ts +3 -5
  48. package/dist/topology/index.d.ts.map +1 -1
  49. package/dist/topology/wrapperFns.d.ts +25 -0
  50. package/dist/topology/wrapperFns.d.ts.map +1 -1
  51. package/dist/{topology-DvO7sWFA.cjs → topology-CzVovLTs.cjs} +2 -211
  52. package/dist/{topology-D8QgS_pc.js → topology-q7nA7fzs.js} +21 -230
  53. package/dist/topology.cjs +1 -53
  54. package/dist/topology.d.ts +5 -8
  55. package/dist/topology.d.ts.map +1 -1
  56. package/dist/topology.js +52 -104
  57. package/dist/{vectors-CxYq-oQ7.js → vectors-Bhj7KHrb.js} +1 -1
  58. package/dist/vectors.js +2 -2
  59. package/package.json +1 -1
  60. package/dist/operations/cleanOpsFns.d.ts.map +0 -1
  61. package/dist/topology/cleanApi.d.ts.map +0 -1
  62. package/dist/topology/pipeFns.d.ts +0 -42
  63. package/dist/topology/pipeFns.d.ts.map +0 -1
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-DV-yKdrQ.cjs");
4
- const boolean2D = require("./boolean2D-DShTIA0X.cjs");
3
+ const Blueprint = require("./Blueprint-DCoXzdIm.cjs");
4
+ const boolean2D = require("./boolean2D-9E0ZB4yu.cjs");
5
5
  function reverseCurve(curve) {
6
6
  const cloned = curve.clone();
7
7
  cloned.reverse();
package/dist/2d.js CHANGED
@@ -1,7 +1,7 @@
1
- import { B as Blueprint } from "./Blueprint-Bp2u4V7e.js";
2
- import { a, C, b } from "./Blueprint-Bp2u4V7e.js";
3
- import { c as cut2D, f as fuse2D, i as intersect2D } from "./boolean2D-DKFinpPn.js";
4
- import { b as b2, C as C2, d, e, g, o, p, r } from "./boolean2D-DKFinpPn.js";
1
+ import { B as Blueprint } from "./Blueprint-9Gdmj67R.js";
2
+ import { a, C, b } from "./Blueprint-9Gdmj67R.js";
3
+ import { c as cut2D, f as fuse2D, i as intersect2D } from "./boolean2D-BfpQtXOQ.js";
4
+ import { b as b2, C as C2, d, e, g, o, p, r } from "./boolean2D-BfpQtXOQ.js";
5
5
  function reverseCurve(curve) {
6
6
  const cloned = curve.clone();
7
7
  cloned.reverse();
@@ -1,12 +1,12 @@
1
- import { r as resolvePlane } from "./vectors-CxYq-oQ7.js";
2
- import { g as getKernel, a as toVec3, m as makeOcAx2 } from "./occtBoundary-Bo41qJLE.js";
3
- import { o as localGC, y as registerForCleanup, z as unregisterFromCleanup, n as gcWithScope, t as createEdge, s as createWire } from "./shapeTypes-C1OUu4VG.js";
4
- import { u as uvBounds, a as faceGeomType, f as faceCenter, h as uvCoordinates } from "./faceFns-DkX5kyA0.js";
5
- import { j as findCurveType, m as getOrientation } from "./curveFns-nJKh5suT.js";
1
+ import { r as resolvePlane } from "./vectors-Bhj7KHrb.js";
2
+ import { g as getKernel, a as toVec3, c as makeOcAx2 } from "./occtBoundary-CwegMzqc.js";
3
+ import { o as localGC, y as registerForCleanup, z as unregisterFromCleanup, n as gcWithScope, t as createEdge, s as createWire } from "./shapeTypes-BlSElW8z.js";
4
+ import { u as uvBounds, a as faceGeomType, f as faceCenter, h as uvCoordinates } from "./faceFns-SBxx55zv.js";
5
+ import { j as findCurveType, m as getOrientation } from "./curveFns-DFRn4NzJ.js";
6
6
  import { u as unwrap, l as ok, e as err, b as computationError, x as validationError } from "./errors-EPHOk9hi.js";
7
- import { A as zip, o as makeFace } from "./shapeHelpers-DJ6shRx4.js";
8
- import { i as distance2d, s as samePoint, h as scalarMultiply2d, b as add2d, n as normalize2d, a as subtract2d, g as getSingleFace } from "./query-BWgSLodB.js";
9
- import { c as cast } from "./cast-3pDXduc8.js";
7
+ import { z as zip, o as makeFace } from "./shapeHelpers-DL3Kro2n.js";
8
+ import { i as distance2d, s as samePoint, h as scalarMultiply2d, b as add2d, n as normalize2d, a as subtract2d, g as getSingleFace } from "./query-CMkm1olv.js";
9
+ import { c as cast } from "./cast-Bx3PuKsP.js";
10
10
  import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
11
11
  import { bug } from "./result.js";
12
12
  function makePlane(plane, origin) {
@@ -5,7 +5,7 @@ const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
5
5
  const faceFns = require("./faceFns-BOc1QawY.cjs");
6
6
  const curveFns = require("./curveFns-DqT7DqLQ.cjs");
7
7
  const errors = require("./errors-C7Inmd1n.cjs");
8
- const shapeHelpers = require("./shapeHelpers-HGNl3W6O.cjs");
8
+ const shapeHelpers = require("./shapeHelpers-XCWxPN_X.cjs");
9
9
  const query = require("./query-Dd1h9qFw.cjs");
10
10
  const cast = require("./cast-CQ7SKb6A.cjs");
11
11
  const vecOps = require("./vecOps-CjRL1jau.cjs");
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  const vectors = require("./vectors-CCdx6erh.cjs");
3
- const shapeHelpers = require("./shapeHelpers-HGNl3W6O.cjs");
3
+ const shapeHelpers = require("./shapeHelpers-XCWxPN_X.cjs");
4
4
  const errors = require("./errors-C7Inmd1n.cjs");
5
5
  const cast = require("./cast-CQ7SKb6A.cjs");
6
6
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
7
7
  const vecOps = require("./vecOps-CjRL1jau.cjs");
8
- const loft = require("./loft-BcY4iWZf.cjs");
8
+ const loft = require("./loft-Cz36k5dM.cjs");
9
9
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
10
10
  const curveFns = require("./curveFns-DqT7DqLQ.cjs");
11
11
  const faceFns = require("./faceFns-BOc1QawY.cjs");
12
12
  const result = require("./result.cjs");
13
13
  const query = require("./query-Dd1h9qFw.cjs");
14
- const Blueprint = require("./Blueprint-DV-yKdrQ.cjs");
14
+ const Blueprint = require("./Blueprint-DCoXzdIm.cjs");
15
15
  function* pointsIteration(intersector) {
16
16
  const nPoints = intersector.NbPoints();
17
17
  if (!nPoints) return;
@@ -1,16 +1,16 @@
1
- import { a as createPlane } from "./vectors-CxYq-oQ7.js";
2
- import { o as makeFace, u as makeNewFaceWithinFace, a as assembleWire, A as zip } from "./shapeHelpers-DJ6shRx4.js";
1
+ import { a as createPlane } from "./vectors-Bhj7KHrb.js";
2
+ import { o as makeFace, u as makeNewFaceWithinFace, a as assembleWire, z as zip } from "./shapeHelpers-DL3Kro2n.js";
3
3
  import { l as ok, e as err, b as computationError, u as unwrap, g as isOk } from "./errors-EPHOk9hi.js";
4
- import { d as downcast } from "./cast-3pDXduc8.js";
5
- import { g as getKernel, a as toVec3 } from "./occtBoundary-Bo41qJLE.js";
4
+ import { d as downcast } from "./cast-Bx3PuKsP.js";
5
+ import { g as getKernel, a as toVec3 } from "./occtBoundary-CwegMzqc.js";
6
6
  import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
7
- import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-DQH8oG0m.js";
8
- import { n as gcWithScope, q as createFace, s as createWire, o as localGC, t as createEdge } from "./shapeTypes-C1OUu4VG.js";
9
- import { e as curveStartPoint, a as curveTangentAt, c as curveIsClosed } from "./curveFns-nJKh5suT.js";
10
- import { u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-DkX5kyA0.js";
7
+ import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-BJHEEDu4.js";
8
+ import { n as gcWithScope, q as createFace, s as createWire, o as localGC, t as createEdge } from "./shapeTypes-BlSElW8z.js";
9
+ import { e as curveStartPoint, a as curveTangentAt, c as curveIsClosed } from "./curveFns-DFRn4NzJ.js";
10
+ import { u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-SBxx55zv.js";
11
11
  import { bug } from "./result.js";
12
- import { s as samePoint$1, n as normalize2d, a as subtract2d, b as add2d, d as crossProduct2d, h as scalarMultiply2d, p as polarToCartesian, i as distance2d, r as rotate2d, j as cartesianToPolar, k as polarAngle2d, P as PRECISION_INTERSECTION } from "./query-BWgSLodB.js";
13
- import { C as Curve2D, c as make2dSegmentCurve, d as approximateAsBSpline, i as isPoint2D, e as make2dCircle, f as make2dThreePointArc, g as make2dArcFromCenter, a as BoundingBox2d, v as viewbox, h as asSVG, B as Blueprint, j as make2dTangentArc, k as make2dEllipseArc, l as make2dBezierCurve, b as axis2d, r as removeDuplicatePoints } from "./Blueprint-Bp2u4V7e.js";
12
+ import { s as samePoint$1, n as normalize2d, a as subtract2d, b as add2d, d as crossProduct2d, h as scalarMultiply2d, p as polarToCartesian, i as distance2d, r as rotate2d, j as cartesianToPolar, k as polarAngle2d, P as PRECISION_INTERSECTION } from "./query-CMkm1olv.js";
13
+ import { C as Curve2D, c as make2dSegmentCurve, d as approximateAsBSpline, i as isPoint2D, e as make2dCircle, f as make2dThreePointArc, g as make2dArcFromCenter, a as BoundingBox2d, v as viewbox, h as asSVG, B as Blueprint, j as make2dTangentArc, k as make2dEllipseArc, l as make2dBezierCurve, b as axis2d, r as removeDuplicatePoints } from "./Blueprint-9Gdmj67R.js";
14
14
  function* pointsIteration(intersector) {
15
15
  const nPoints = intersector.NbPoints();
16
16
  if (!nPoints) return;
@@ -1,7 +1,7 @@
1
- import { g as getKernel } from "./occtBoundary-Bo41qJLE.js";
2
- import { c as castShape, n as gcWithScope, h as isShape3D } from "./shapeTypes-C1OUu4VG.js";
3
- import { l as ok, d as isErr, e as err, x as validationError, B as BrepErrorCode, o as occtError, p as typeCastError } from "./errors-EPHOk9hi.js";
4
- import { r as resolvePlane } from "./vectors-CxYq-oQ7.js";
1
+ import { g as getKernel } from "./occtBoundary-CwegMzqc.js";
2
+ import { n as gcWithScope, c as castShape, h as isShape3D } from "./shapeTypes-BlSElW8z.js";
3
+ import { l as ok, d as isErr, e as err, x as validationError, B as BrepErrorCode, p as typeCastError, o as occtError } from "./errors-EPHOk9hi.js";
4
+ import { r as resolvePlane } from "./vectors-Bhj7KHrb.js";
5
5
  import { n as vecScale, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
6
6
  function applyGlue(op, optimisation) {
7
7
  const oc = getKernel().oc;
@@ -264,8 +264,8 @@ export {
264
264
  sliceShape as a,
265
265
  splitShape as b,
266
266
  cutShape as c,
267
- applyGlue as d,
268
- cutAll as e,
267
+ cutAll as d,
268
+ applyGlue as e,
269
269
  fuseShape as f,
270
270
  fuseAll as g,
271
271
  intersectShape as i,