brepjs 11.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.
Files changed (45) hide show
  1. package/dist/2d.cjs +1 -1
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-CFUlMh67.js → Blueprint-SMLvu1pH.js} +5 -5
  4. package/dist/{boolean2D-DNKu6gA7.js → boolean2D-BGxBWwCm.js} +7 -7
  5. package/dist/{boolean2D-Y4yATWl7.cjs → boolean2D-DiHJyuu4.cjs} +1 -1
  6. package/dist/{booleanFns-DOonidp8.js → booleanFns-Bl8hInM_.js} +3 -3
  7. package/dist/brepjs.cjs +89 -230
  8. package/dist/brepjs.js +383 -525
  9. package/dist/core.cjs +10 -0
  10. package/dist/core.d.ts +2 -2
  11. package/dist/core.d.ts.map +1 -1
  12. package/dist/core.js +26 -16
  13. package/dist/{cornerFinder-CcNE4HxW.js → cornerFinder-C_rN-yag.js} +1 -1
  14. package/dist/{curveFns-BMXtgX1x.js → curveFns-DeYQQ18o.js} +1 -1
  15. package/dist/{drawFns-c8p_xTP0.js → drawFns-CkFd3lT4.js} +11 -10
  16. package/dist/{drawFns-B-r3aaqa.cjs → drawFns-NsqGSBEK.cjs} +10 -9
  17. package/dist/{faceFns-Cz71BDro.js → faceFns-DZU8VAlq.js} +1 -1
  18. package/dist/{helpers-Cg_I5KyH.js → helpers-D8jYqufG.js} +4 -4
  19. package/dist/io.js +3 -3
  20. package/dist/{loft-Cg7rdMf1.js → loft-BmO0VYht.js} +12 -77
  21. package/dist/{loft-DCPqcyZE.cjs → loft-BpScchbu.cjs} +3 -68
  22. package/dist/{measurement-BN6FiFD4.js → measurement-CZzV1bmg.js} +2 -2
  23. package/dist/measurement.js +1 -1
  24. package/dist/{meshFns-kdGtj-un.js → meshFns-DE8uUdKS.js} +2 -2
  25. package/dist/operations/extrude.d.ts +1 -1
  26. package/dist/{operations-C9rwsqkO.cjs → operations-CGbdoQvO.cjs} +1 -1
  27. package/dist/{operations-BaSVJrqt.js → operations-Qr5m0lUU.js} +5 -5
  28. package/dist/operations.cjs +2 -2
  29. package/dist/operations.js +2 -2
  30. package/dist/query.js +5 -5
  31. package/dist/{shapeFns-BbnD8E_4.js → shapeFns-BmOzkjTF.js} +5 -5
  32. package/dist/{shapeTypes-BkPK8XIl.js → shapeTypes-CGYrwYIi.js} +41 -41
  33. package/dist/sketching.cjs +2 -2
  34. package/dist/sketching.js +2 -2
  35. package/dist/solidBuilders-Bo8N2UV1.cjs +70 -0
  36. package/dist/solidBuilders-CDzxISP2.js +71 -0
  37. package/dist/{surfaceBuilders-DCThAtoQ.js → surfaceBuilders-CIEQ9j7C.js} +5 -5
  38. package/dist/topology/surfaceFns.d.ts +1 -1
  39. package/dist/{topology-DoSBNUPF.js → topology-9-u8A3nq.js} +212 -41
  40. package/dist/{topology-BK5M8FlG.cjs → topology-DiWPQ0YS.cjs} +194 -23
  41. package/dist/topology.cjs +30 -3
  42. package/dist/topology.d.ts +1 -0
  43. package/dist/topology.d.ts.map +1 -1
  44. package/dist/topology.js +57 -30
  45. package/package.json +1 -1
package/dist/2d.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const Blueprint = require("./Blueprint-BbgdNjMG.cjs");
4
- const boolean2D = require("./boolean2D-Y4yATWl7.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-CFUlMh67.js";
2
- import { d, C } from "./Blueprint-CFUlMh67.js";
3
- import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-DNKu6gA7.js";
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,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 { q as getKernel, y as getKernel2D, z as registerForCleanup, A as unregisterFromCleanup, s as createEdge, r as createWire } from "./shapeTypes-BkPK8XIl.js";
4
- import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-Cz71BDro.js";
5
- import { g as getOrientation } from "./curveFns-BMXtgX1x.js";
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-Cg_I5KyH.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-D8jYqufG.js";
8
8
  import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
9
- import { m as makeFace } from "./surfaceBuilders-DCThAtoQ.js";
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-Cz71BDro.js";
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-Cg7rdMf1.js";
52
- import { y as getKernel2D, t as createFace, r as createWire, q as getKernel, s as createEdge, D as DisposalScope } from "./shapeTypes-BkPK8XIl.js";
53
- import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-BMXtgX1x.js";
54
- import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-DCThAtoQ.js";
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-Cg_I5KyH.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-CFUlMh67.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-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: [] });
@@ -49,7 +49,7 @@ const errors = require("./errors-DiTn5EoC.cjs");
49
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-DCPqcyZE.cjs");
52
+ const loft = require("./loft-BpScchbu.cjs");
53
53
  const shapeTypes = require("./shapeTypes-CHvr4HNj.cjs");
54
54
  const curveFns = require("./curveFns-Dtaf2CvG.cjs");
55
55
  const surfaceBuilders = require("./surfaceBuilders-DIPPckQg.cjs");
@@ -1,9 +1,9 @@
1
- import { q as getKernel, c as castShape, j as isShape3D } from "./shapeTypes-BkPK8XIl.js";
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-BbnD8E_4.js";
6
- import { m as makeFace } from "./surfaceBuilders-DCThAtoQ.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-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) {