brepjs 9.3.1 → 9.3.4

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 (59) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-C4841kzg.js → Blueprint-D-l9y6vQ.js} +5 -5
  4. package/dist/{Blueprint-CN8uhMwg.cjs → Blueprint-pgzr1snT.cjs} +5 -5
  5. package/dist/{boolean2D-2Tk_kewK.cjs → boolean2D-DEQvy9jN.cjs} +7 -7
  6. package/dist/{boolean2D-DxxhOJKC.js → boolean2D-S1fQJkDs.js} +7 -7
  7. package/dist/{booleanFns--8WtoiU1.cjs → booleanFns-CKJpkL-W.cjs} +3 -3
  8. package/dist/{booleanFns-CUY3TpmS.js → booleanFns-Ct7VfmjG.js} +3 -3
  9. package/dist/brepjs.cjs +16 -16
  10. package/dist/brepjs.js +28 -28
  11. package/dist/core.cjs +1 -1
  12. package/dist/core.js +1 -1
  13. package/dist/{cornerFinder-C9Vk4odc.cjs → cornerFinder-BKSnwYl_.cjs} +1 -1
  14. package/dist/{cornerFinder-DqxDHC8E.js → cornerFinder-DiwhBI6W.js} +1 -1
  15. package/dist/{curveFns-CYIWO79S.cjs → curveFns-CJ_Rhqu7.cjs} +1 -1
  16. package/dist/{curveFns-LHbPhwMg.js → curveFns-Vcss8w3g.js} +1 -1
  17. package/dist/{drawFns-UVxLJGBe.cjs → drawFns-BMN2P_95.cjs} +10 -10
  18. package/dist/{drawFns-1wvr2ZHR.js → drawFns-DR-Pn6Ox.js} +10 -10
  19. package/dist/{faceFns-DSzkK92I.js → faceFns-CScUN5LN.js} +1 -1
  20. package/dist/{faceFns-BHJP2pvz.cjs → faceFns-Cqgs0uTB.cjs} +1 -1
  21. package/dist/{helpers-CXtMYc7c.js → helpers-BUdSB_hP.js} +4 -4
  22. package/dist/{helpers-AnHPajwn.cjs → helpers-orCR-9t0.cjs} +4 -4
  23. package/dist/io.cjs +3 -3
  24. package/dist/io.js +3 -3
  25. package/dist/kernel/brepkitAdapter.d.ts +5 -4
  26. package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
  27. package/dist/kernel/brepkitWasmTypes.d.ts +13 -13
  28. package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
  29. package/dist/kernel/defaultAdapter.d.ts +1 -0
  30. package/dist/kernel/defaultAdapter.d.ts.map +1 -1
  31. package/dist/kernel/types.d.ts +1 -0
  32. package/dist/kernel/types.d.ts.map +1 -1
  33. package/dist/{loft--Zftp4ii.js → loft-B6AuFlWT.js} +3 -3
  34. package/dist/{loft-Dwp5lD3s.cjs → loft-DttG6eeq.cjs} +3 -3
  35. package/dist/{measurement-BodokO6v.cjs → measurement-D61iSCBv.cjs} +2 -2
  36. package/dist/{measurement-DGkcXwNl.js → measurement-Xm1XusbA.js} +2 -2
  37. package/dist/measurement.cjs +1 -1
  38. package/dist/measurement.js +1 -1
  39. package/dist/{meshFns-C7fBvGa4.js → meshFns-B8LxlRhm.js} +2 -2
  40. package/dist/{meshFns-CpVstMGT.cjs → meshFns-CCrO47TM.cjs} +2 -2
  41. package/dist/{operations-BeUM_6r4.cjs → operations-B1uuSLB2.cjs} +3 -3
  42. package/dist/{operations-BUbjh4cf.js → operations-D-htN8K3.js} +3 -3
  43. package/dist/operations.cjs +2 -2
  44. package/dist/operations.js +2 -2
  45. package/dist/query.cjs +4 -4
  46. package/dist/query.js +5 -5
  47. package/dist/{shapeFns-BMKwZa-B.js → shapeFns-BiMiqVm0.js} +2 -2
  48. package/dist/{shapeFns-D6jXs2lM.cjs → shapeFns-BvwnrLYU.cjs} +2 -2
  49. package/dist/{shapeTypes-Dbddor5a.js → shapeTypes-D5th-THo.js} +8 -0
  50. package/dist/{shapeTypes-C5vVRDiO.cjs → shapeTypes-DIwQBQKB.cjs} +8 -0
  51. package/dist/sketching.cjs +2 -2
  52. package/dist/sketching.js +2 -2
  53. package/dist/{surfaceBuilders-DPAMXM4j.js → surfaceBuilders-CkDPvbwD.js} +2 -2
  54. package/dist/{surfaceBuilders-1q5sbHFp.cjs → surfaceBuilders-DbvODAS_.cjs} +2 -2
  55. package/dist/{topology-CPPDPk08.cjs → topology-BndoQLIN.cjs} +6 -6
  56. package/dist/{topology-E7m4YOQu.js → topology-BvUvMNMo.js} +6 -6
  57. package/dist/topology.cjs +6 -6
  58. package/dist/topology.js +6 -6
  59. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const errors = require("./errors-HU7EpHt3.cjs");
4
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
4
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
5
5
  function buildMeshCacheKey(tolerance, angularTolerance, skipNormals) {
6
6
  return `${tolerance}:${angularTolerance}:${skipNormals}`;
7
7
  }
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
4
  const errors = require("./errors-HU7EpHt3.cjs");
5
- const loft = require("./loft-Dwp5lD3s.cjs");
6
- const booleanFns = require("./booleanFns--8WtoiU1.cjs");
5
+ const loft = require("./loft-DttG6eeq.cjs");
6
+ const booleanFns = require("./booleanFns-CKJpkL-W.cjs");
7
7
  function uuidv() {
8
8
  return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
9
9
  /[018]/g,
@@ -1,8 +1,8 @@
1
- import { q as getKernel, b as createKernelHandle, c as castShape, j as isShape3D, n as isWire, x as createSolid } from "./shapeTypes-Dbddor5a.js";
1
+ import { q as getKernel, b as createKernelHandle, c as castShape, j as isShape3D, n as isWire, x as createSolid } from "./shapeTypes-D5th-THo.js";
2
2
  import { g as vecLength, v as vecAdd, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
3
3
  import { e as err, x as validationError, u as unwrap, p as typeCastError, o as ok, B as BrepErrorCode, k as kernelError, i as ioError, b as computationError } from "./errors-C_XjfNt5.js";
4
- import { n as buildLawFromProfile } from "./loft--Zftp4ii.js";
5
- import { g as fuseAll } from "./booleanFns-CUY3TpmS.js";
4
+ import { n as buildLawFromProfile } from "./loft-B6AuFlWT.js";
5
+ import { g as fuseAll } from "./booleanFns-Ct7VfmjG.js";
6
6
  function uuidv() {
7
7
  return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
8
8
  /[018]/g,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const operations = require("./operations-BeUM_6r4.cjs");
4
- const loft = require("./loft-Dwp5lD3s.cjs");
3
+ const operations = require("./operations-B1uuSLB2.cjs");
4
+ const loft = require("./loft-DttG6eeq.cjs");
5
5
  exports.addChild = operations.addChild;
6
6
  exports.addStep = operations.addStep;
7
7
  exports.circularPattern = operations.circularPattern;
@@ -1,5 +1,5 @@
1
- import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, w } from "./operations-BUbjh4cf.js";
2
- import { b as b2, g as g2, l as l2, r } from "./loft--Zftp4ii.js";
1
+ import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, w } from "./operations-D-htN8K3.js";
2
+ import { b as b2, g as g2, l as l2, r } from "./loft-B6AuFlWT.js";
3
3
  export {
4
4
  a as addChild,
5
5
  b as addStep,
package/dist/query.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const helpers = require("./helpers-AnHPajwn.cjs");
4
- const cornerFinder = require("./cornerFinder-C9Vk4odc.cjs");
5
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
3
+ const helpers = require("./helpers-orCR-9t0.cjs");
4
+ const cornerFinder = require("./cornerFinder-BKSnwYl_.cjs");
5
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
6
6
  const vecOps = require("./vecOps-CjRL1jau.cjs");
7
- const curveFns = require("./curveFns-CYIWO79S.cjs");
7
+ const curveFns = require("./curveFns-CJ_Rhqu7.cjs");
8
8
  function edgeDirectionFilter(dir, angle) {
9
9
  const d = vecOps.vecNormalize(helpers.resolveDir(dir));
10
10
  return (edge) => {
package/dist/query.js CHANGED
@@ -1,9 +1,9 @@
1
- import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-CXtMYc7c.js";
2
- import { m, g } from "./helpers-CXtMYc7c.js";
3
- import { c } from "./cornerFinder-DqxDHC8E.js";
4
- import { q as getKernel } from "./shapeTypes-Dbddor5a.js";
1
+ import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-BUdSB_hP.js";
2
+ import { m, g } from "./helpers-BUdSB_hP.js";
3
+ import { c } from "./cornerFinder-DiwhBI6W.js";
4
+ import { q as getKernel } from "./shapeTypes-D5th-THo.js";
5
5
  import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
6
- import { b as getCurveType, i as curveLength } from "./curveFns-LHbPhwMg.js";
6
+ import { b as getCurveType, i as curveLength } from "./curveFns-Vcss8w3g.js";
7
7
  function edgeDirectionFilter(dir, angle) {
8
8
  const d = vecNormalize(resolveDir(dir));
9
9
  return (edge) => {
@@ -1,6 +1,6 @@
1
- import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-Dbddor5a.js";
1
+ import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-D5th-THo.js";
2
2
  import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
- import { i as iterTopo, d as downcast } from "./faceFns-DSzkK92I.js";
3
+ import { i as iterTopo, d as downcast } from "./faceFns-CScUN5LN.js";
4
4
  import { u as unwrap } from "./errors-C_XjfNt5.js";
5
5
  function clone(shape) {
6
6
  return castShape(unwrap(downcast(shape.wrapped)));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
4
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
5
5
  const errors = require("./errors-HU7EpHt3.cjs");
6
6
  function clone(shape) {
7
7
  return shapeTypes.castShape(errors.unwrap(faceFns.downcast(shape.wrapped)));
@@ -4305,6 +4305,14 @@ class DefaultAdapter {
4305
4305
  makeBoxFromCorners(p1, p2) {
4306
4306
  return makeBoxFromCorners(this.oc, p1, p2);
4307
4307
  }
4308
+ makeRectangle(width, height) {
4309
+ const e1 = this.makeLineEdge([0, 0, 0], [width, 0, 0]);
4310
+ const e2 = this.makeLineEdge([width, 0, 0], [width, height, 0]);
4311
+ const e3 = this.makeLineEdge([width, height, 0], [0, height, 0]);
4312
+ const e4 = this.makeLineEdge([0, height, 0], [0, 0, 0]);
4313
+ const wire = this.makeWire([e1, e2, e3, e4]);
4314
+ return this.makeFace(wire);
4315
+ }
4308
4316
  solidFromShell(shell2) {
4309
4317
  return solidFromShell(this.oc, shell2);
4310
4318
  }
@@ -4306,6 +4306,14 @@ class DefaultAdapter {
4306
4306
  makeBoxFromCorners(p1, p2) {
4307
4307
  return makeBoxFromCorners(this.oc, p1, p2);
4308
4308
  }
4309
+ makeRectangle(width, height) {
4310
+ const e1 = this.makeLineEdge([0, 0, 0], [width, 0, 0]);
4311
+ const e2 = this.makeLineEdge([width, 0, 0], [width, height, 0]);
4312
+ const e3 = this.makeLineEdge([width, height, 0], [0, height, 0]);
4313
+ const e4 = this.makeLineEdge([0, height, 0], [0, 0, 0]);
4314
+ const wire = this.makeWire([e1, e2, e3, e4]);
4315
+ return this.makeFace(wire);
4316
+ }
4309
4317
  solidFromShell(shell2) {
4310
4318
  return solidFromShell(this.oc, shell2);
4311
4319
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const drawFns = require("./drawFns-UVxLJGBe.cjs");
4
- const boolean2D = require("./boolean2D-2Tk_kewK.cjs");
3
+ const drawFns = require("./drawFns-BMN2P_95.cjs");
4
+ const boolean2D = require("./boolean2D-DEQvy9jN.cjs");
5
5
  exports.CompoundSketch = drawFns.CompoundSketch;
6
6
  exports.Drawing = drawFns.Drawing;
7
7
  exports.DrawingPen = drawFns.DrawingPen;
package/dist/sketching.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-1wvr2ZHR.js";
2
- import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-DxxhOJKC.js";
1
+ import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-DR-Pn6Ox.js";
2
+ import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-S1fQJkDs.js";
3
3
  export {
4
4
  B2 as BaseSketcher2d,
5
5
  a2 as BlueprintSketcher,
@@ -1,6 +1,6 @@
1
- import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-Dbddor5a.js";
1
+ import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-D5th-THo.js";
2
2
  import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-C_XjfNt5.js";
3
- import { o as outerWire, c as cast } from "./faceFns-DSzkK92I.js";
3
+ import { o as outerWire, c as cast } from "./faceFns-CScUN5LN.js";
4
4
  function range(len) {
5
5
  return Array.from(Array(len).keys());
6
6
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
2
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
3
3
  const errors = require("./errors-HU7EpHt3.cjs");
4
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
4
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
5
5
  function range(len) {
6
6
  return Array.from(Array(len).keys());
7
7
  }
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
3
- require("./booleanFns--8WtoiU1.cjs");
4
- const shapeTypes = require("./shapeTypes-C5vVRDiO.cjs");
5
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
2
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
3
+ require("./booleanFns-CKJpkL-W.cjs");
4
+ const shapeTypes = require("./shapeTypes-DIwQBQKB.cjs");
5
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
6
6
  const errors = require("./errors-HU7EpHt3.cjs");
7
- require("./curveFns-CYIWO79S.cjs");
7
+ require("./curveFns-CJ_Rhqu7.cjs");
8
8
  const vecOps = require("./vecOps-CjRL1jau.cjs");
9
- require("./meshFns-CpVstMGT.cjs");
9
+ require("./meshFns-CCrO47TM.cjs");
10
10
  function toBufferGeometryData(mesh) {
11
11
  return {
12
12
  position: mesh.vertices,
@@ -1,11 +1,11 @@
1
- import { c as getWires, a as getFaces } from "./shapeFns-BMKwZa-B.js";
2
- import "./booleanFns-CUY3TpmS.js";
3
- import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-Dbddor5a.js";
4
- import { d as downcast } from "./faceFns-DSzkK92I.js";
1
+ import { c as getWires, a as getFaces } from "./shapeFns-BiMiqVm0.js";
2
+ import "./booleanFns-Ct7VfmjG.js";
3
+ import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-D5th-THo.js";
4
+ import { d as downcast } from "./faceFns-CScUN5LN.js";
5
5
  import { e as err, x as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-C_XjfNt5.js";
6
- import "./curveFns-LHbPhwMg.js";
6
+ import "./curveFns-Vcss8w3g.js";
7
7
  import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
8
- import "./meshFns-C7fBvGa4.js";
8
+ import "./meshFns-B8LxlRhm.js";
9
9
  function toBufferGeometryData(mesh) {
10
10
  return {
11
11
  position: mesh.vertices,
package/dist/topology.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeFns = require("./shapeFns-D6jXs2lM.cjs");
4
- const booleanFns = require("./booleanFns--8WtoiU1.cjs");
5
- const topology = require("./topology-CPPDPk08.cjs");
6
- const curveFns = require("./curveFns-CYIWO79S.cjs");
7
- const faceFns = require("./faceFns-BHJP2pvz.cjs");
8
- const meshFns = require("./meshFns-CpVstMGT.cjs");
3
+ const shapeFns = require("./shapeFns-BvwnrLYU.cjs");
4
+ const booleanFns = require("./booleanFns-CKJpkL-W.cjs");
5
+ const topology = require("./topology-BndoQLIN.cjs");
6
+ const curveFns = require("./curveFns-CJ_Rhqu7.cjs");
7
+ const faceFns = require("./faceFns-Cqgs0uTB.cjs");
8
+ const meshFns = require("./meshFns-CCrO47TM.cjs");
9
9
  exports.getBounds = shapeFns.getBounds;
10
10
  exports.getEdges = shapeFns.getEdges;
11
11
  exports.getFaces = shapeFns.getFaces;
package/dist/topology.js CHANGED
@@ -1,9 +1,9 @@
1
- import { u, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-BMKwZa-B.js";
2
- import { h, g } from "./booleanFns-CUY3TpmS.js";
3
- import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w } from "./topology-E7m4YOQu.js";
4
- import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g3, m, o } from "./curveFns-LHbPhwMg.js";
5
- import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f4, q, r, g as g4, k as k3, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-DSzkK92I.js";
6
- import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-C7fBvGa4.js";
1
+ import { u, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-BiMiqVm0.js";
2
+ import { h, g } from "./booleanFns-Ct7VfmjG.js";
3
+ import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w } from "./topology-BvUvMNMo.js";
4
+ import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g3, m, o } from "./curveFns-Vcss8w3g.js";
5
+ import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f4, q, r, g as g4, k as k3, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-CScUN5LN.js";
6
+ import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-B8LxlRhm.js";
7
7
  export {
8
8
  a2 as adjacentFaces,
9
9
  j2 as approximateCurve,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "9.3.1",
3
+ "version": "9.3.4",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",