brepjs 7.4.1 → 7.5.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 (78) hide show
  1. package/README.md +179 -17
  2. package/dist/2d.cjs +2 -2
  3. package/dist/2d.js +4 -4
  4. package/dist/{Blueprint-3Dyu0OL6.cjs → Blueprint-CVctc41Z.cjs} +4 -4
  5. package/dist/{Blueprint-DSHD89bZ.js → Blueprint-D3JfGJTz.js} +4 -4
  6. package/dist/{boolean2D-CtyE2hK5.js → boolean2D-Ba8TcVzC.js} +6 -6
  7. package/dist/{boolean2D-BwOpOv6L.cjs → boolean2D-BnuJdfDv.cjs} +6 -6
  8. package/dist/{booleanFns-5KSbtLBU.cjs → booleanFns-BBSVKhL2.cjs} +27 -31
  9. package/dist/{booleanFns-DcxqLQSG.js → booleanFns-CqehfzcK.js} +27 -31
  10. package/dist/brepjs.cjs +87 -79
  11. package/dist/brepjs.js +120 -112
  12. package/dist/{cast-D1s7Im9E.js → cast-DQaUibmm.js} +3 -3
  13. package/dist/{cast-DsxJk_F0.cjs → cast-DkB0GKmQ.cjs} +2 -2
  14. package/dist/{drawFns-CSbH7uoI.js → drawFns-D9qkvHgY.js} +8 -8
  15. package/dist/{drawFns-C6KQjmQj.cjs → drawFns-DWOskIp7.cjs} +8 -8
  16. package/dist/{faceFns-B9if-FPW.cjs → faceFns-BwK7FP7N.cjs} +1 -1
  17. package/dist/{faceFns-Bl6HHbqO.js → faceFns-DHu-2JpA.js} +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/io.cjs +2 -2
  21. package/dist/io.js +2 -2
  22. package/dist/{loft-Cc5E5pAf.cjs → loft-BzWFokmC.cjs} +2 -2
  23. package/dist/{loft-BlNndTOR.js → loft-CtG5nMq5.js} +2 -2
  24. package/dist/{measurement-D75pyJi1.js → measurement-C5JGCuUP.js} +1 -1
  25. package/dist/{measurement-BVdZ9cG3.cjs → measurement-fxm_pW7x.cjs} +1 -1
  26. package/dist/measurement.cjs +1 -1
  27. package/dist/measurement.js +1 -1
  28. package/dist/{meshFns-p_kv--PW.js → meshFns-BY1fMF48.js} +7 -7
  29. package/dist/{meshFns-mVlogI3J.cjs → meshFns-Dbj_k5gq.cjs} +7 -7
  30. package/dist/operations/api.d.ts +2 -2
  31. package/dist/operations/api.d.ts.map +1 -1
  32. package/dist/operations/extrude.d.ts +2 -2
  33. package/dist/operations/extrudeFns.d.ts +3 -3
  34. package/dist/operations/extrudeFns.d.ts.map +1 -1
  35. package/dist/operations/loft.d.ts +1 -1
  36. package/dist/operations/loftFns.d.ts +2 -2
  37. package/dist/operations/loftFns.d.ts.map +1 -1
  38. package/dist/{operations-SRN-mfTx.cjs → operations-BP1wVDw0.cjs} +14 -20
  39. package/dist/{operations-CEV-gqkX.js → operations-C1rWoba2.js} +14 -20
  40. package/dist/operations.cjs +2 -2
  41. package/dist/operations.js +2 -2
  42. package/dist/{query-D7XclvBZ.js → query-V6nV-VfL.js} +4 -4
  43. package/dist/{query-DkcMfh6j.cjs → query-hMSmOWJP.cjs} +4 -4
  44. package/dist/query.cjs +1 -1
  45. package/dist/query.js +1 -1
  46. package/dist/{shapeFns-BpCPVHFT.js → shapeFns-BrF97sKt.js} +19 -19
  47. package/dist/{shapeFns-DjsWo98C.cjs → shapeFns-BvOndshS.cjs} +19 -19
  48. package/dist/{shapeHelpers-BBSVHPGk.cjs → shapeHelpers-B2SXz1p4.cjs} +2 -2
  49. package/dist/{shapeHelpers-C4QIp7u5.js → shapeHelpers-BcoZf2N9.js} +2 -2
  50. package/dist/sketching.cjs +2 -2
  51. package/dist/sketching.js +2 -2
  52. package/dist/topology/api.d.ts +11 -11
  53. package/dist/topology/api.d.ts.map +1 -1
  54. package/dist/topology/booleanFns.d.ts +9 -9
  55. package/dist/topology/booleanFns.d.ts.map +1 -1
  56. package/dist/topology/cast.d.ts +2 -2
  57. package/dist/topology/cast.d.ts.map +1 -1
  58. package/dist/topology/chamferAngleFns.d.ts +1 -1
  59. package/dist/topology/chamferAngleFns.d.ts.map +1 -1
  60. package/dist/topology/healingFns.d.ts +2 -2
  61. package/dist/topology/healingFns.d.ts.map +1 -1
  62. package/dist/topology/index.d.ts +1 -1
  63. package/dist/topology/index.d.ts.map +1 -1
  64. package/dist/topology/meshFns.d.ts +2 -2
  65. package/dist/topology/meshFns.d.ts.map +1 -1
  66. package/dist/topology/modifierFns.d.ts +5 -5
  67. package/dist/topology/modifierFns.d.ts.map +1 -1
  68. package/dist/topology/primitiveFns.d.ts +5 -1
  69. package/dist/topology/primitiveFns.d.ts.map +1 -1
  70. package/dist/topology/shapeFns.d.ts +9 -9
  71. package/dist/topology/shapeFns.d.ts.map +1 -1
  72. package/dist/{topology-BEMrS4WZ.js → topology-CJKeDGUb.js} +18 -18
  73. package/dist/{topology-Bb1W3SyF.cjs → topology-DoNKAKMt.cjs} +18 -18
  74. package/dist/topology.cjs +8 -8
  75. package/dist/topology.d.ts +1 -1
  76. package/dist/topology.d.ts.map +1 -1
  77. package/dist/topology.js +8 -8
  78. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"primitiveFns.d.ts","sourceRoot":"","sources":["../../src/topology/primitiveFns.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACR,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAQL,KAAK,2BAA2B,EAoBjC,MAAM,mBAAmB,CAAC;AAO3B,YAAY,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAMrE,+BAA+B;AAC/B,MAAM,WAAW,UAAU;IACzB,wFAAwF;IAC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M,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,UAAU,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAEzD;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAEvE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAEzF;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAEjG;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAErD"}
@@ -1,27 +1,27 @@
1
1
  import { Vec3 } from '../core/types.js';
2
2
  import { AnyShape, Edge, Face, Wire, Vertex, ShapeKind } from '../core/shapeTypes.js';
3
3
  /** Clone a shape (deep copy via TopoDS downcast). */
4
- export declare function cloneShape<T extends AnyShape>(shape: T): T;
4
+ export declare function clone<T extends AnyShape>(shape: T): T;
5
5
  /** Serialize a shape to BREP string format. */
6
- export declare function serializeShape(shape: AnyShape): string;
6
+ export declare function toBREP(shape: AnyShape): string;
7
7
  /** Get the topology hash code of a shape. */
8
8
  export declare function getHashCode(shape: AnyShape): number;
9
9
  /** Check if a shape is null. */
10
- export declare function isShapeNull(shape: AnyShape): boolean;
10
+ export declare function isEmpty(shape: AnyShape): boolean;
11
11
  /** Check if two shapes are the same topological entity. */
12
12
  export declare function isSameShape(a: AnyShape, b: AnyShape): boolean;
13
13
  /** Check if two shapes are geometrically equal. */
14
14
  export declare function isEqualShape(a: AnyShape, b: AnyShape): boolean;
15
15
  /** Simplify a shape by merging same-domain faces/edges. Returns a new shape. */
16
- export declare function simplifyShape<T extends AnyShape>(shape: T): T;
16
+ export declare function simplify<T extends AnyShape>(shape: T): T;
17
17
  /** Translate a shape by a vector. Returns a new shape. */
18
- export declare function translateShape<T extends AnyShape>(shape: T, v: Vec3): T;
18
+ export declare function translate<T extends AnyShape>(shape: T, v: Vec3): T;
19
19
  /** Rotate a shape around an axis. Angle is in degrees. Returns a new shape. */
20
- export declare function rotateShape<T extends AnyShape>(shape: T, angle: number, position?: Vec3, direction?: Vec3): T;
20
+ export declare function rotate<T extends AnyShape>(shape: T, angle: number, position?: Vec3, direction?: Vec3): T;
21
21
  /** Mirror a shape through a plane defined by origin and normal. Returns a new shape. */
22
- export declare function mirrorShape<T extends AnyShape>(shape: T, planeNormal?: Vec3, planeOrigin?: Vec3): T;
22
+ export declare function mirror<T extends AnyShape>(shape: T, planeNormal?: Vec3, planeOrigin?: Vec3): T;
23
23
  /** Scale a shape uniformly. Returns a new shape. */
24
- export declare function scaleShape<T extends AnyShape>(shape: T, factor: number, center?: Vec3): T;
24
+ export declare function scale<T extends AnyShape>(shape: T, factor: number, center?: Vec3): T;
25
25
  /** Get all edges of a shape as branded Edge handles. Results are cached per shape. */
26
26
  export declare function getEdges(shape: AnyShape): Edge[];
27
27
  /** Get all faces of a shape as branded Face handles. Results are cached per shape. */
@@ -60,7 +60,7 @@ export interface ShapeDescription {
60
60
  readonly bounds: Bounds3D;
61
61
  }
62
62
  /** Get a quick summary of a shape for debugging and inspection. */
63
- export declare function describeShape(shape: AnyShape): ShapeDescription;
63
+ export declare function describe(shape: AnyShape): ShapeDescription;
64
64
  /** Get the position of a vertex as a Vec3 tuple. */
65
65
  export declare function vertexPosition(vertex: Vertex): Vec3;
66
66
  //# sourceMappingURL=shapeFns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shapeFns.d.ts","sourceRoot":"","sources":["../../src/topology/shapeFns.ts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EAAE,QAAQ,GAAG,gBAAgB,CAU1D;AAMD,oDAAoD;AACpD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAMnD"}
@@ -1,13 +1,13 @@
1
- import { j as getWires, f as getFaces } from "./shapeFns-BpCPVHFT.js";
2
- import "./booleanFns-DcxqLQSG.js";
1
+ import { j as getWires, f as getFaces } from "./shapeFns-BrF97sKt.js";
2
+ import "./booleanFns-CqehfzcK.js";
3
3
  import { g as getKernel } from "./occtBoundary-CwegMzqc.js";
4
4
  import { c as castShape, h as isShape3D, k as isSolid, e as isFace, m as isWire } from "./shapeTypes-BlSElW8z.js";
5
- import { d as downcast } from "./cast-D1s7Im9E.js";
5
+ import { d as downcast } from "./cast-DQaUibmm.js";
6
6
  import { e as err, x as validationError, o as occtError, d as isErr, p as typeCastError, l as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-wGhcJMpB.js";
7
7
  import "./curveFns-CdVE4da7.js";
8
- import "./faceFns-Bl6HHbqO.js";
8
+ import "./faceFns-DHu-2JpA.js";
9
9
  import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
10
- import "./meshFns-p_kv--PW.js";
10
+ import "./meshFns-BY1fMF48.js";
11
11
  function toBufferGeometryData(mesh) {
12
12
  return {
13
13
  position: mesh.vertices,
@@ -33,12 +33,12 @@ function toLineGeometryData(mesh) {
33
33
  position: new Float32Array(mesh.lines)
34
34
  };
35
35
  }
36
- function chamferDistAngleShape(shape, edges, distance, angleDeg) {
36
+ function chamferDistAngle(shape, edges, distance, angleDeg) {
37
37
  if (edges.length === 0) {
38
38
  return err(
39
39
  validationError(
40
40
  "CHAMFER_ANGLE_NO_EDGES",
41
- "chamferDistAngleShape requires at least one edge",
41
+ "chamferDistAngle requires at least one edge",
42
42
  void 0,
43
43
  {
44
44
  edgeCount: 0
@@ -77,7 +77,7 @@ function chamferDistAngleShape(shape, edges, distance, angleDeg) {
77
77
  return err(
78
78
  occtError(
79
79
  "CHAMFER_ANGLE_FAILED",
80
- `chamferDistAngleShape kernel call failed: ${e instanceof Error ? e.message : String(e)}`,
80
+ `chamferDistAngle kernel call failed: ${e instanceof Error ? e.message : String(e)}`,
81
81
  e,
82
82
  { distance, angleDeg, edgeCount: edges.length }
83
83
  )
@@ -89,7 +89,7 @@ function chamferDistAngleShape(shape, edges, distance, angleDeg) {
89
89
  if (!isShape3D(wrapped)) {
90
90
  wrapped[Symbol.dispose]();
91
91
  return err(
92
- typeCastError("CHAMFER_ANGLE_NOT_3D", "chamferDistAngleShape did not produce a 3D shape")
92
+ typeCastError("CHAMFER_ANGLE_NOT_3D", "chamferDistAngle did not produce a 3D shape")
93
93
  );
94
94
  }
95
95
  return ok(wrapped);
@@ -216,14 +216,14 @@ function sharedEdges(face1, face2) {
216
216
  }
217
217
  return wrapAll(shared);
218
218
  }
219
- function isShapeValid(shape) {
219
+ function isValid(shape) {
220
220
  return getKernel().isValid(shape.wrapped);
221
221
  }
222
222
  function healSolid(solid) {
223
223
  if (!isSolid(solid)) {
224
224
  return err(validationError("NOT_A_SOLID", "Input shape is not a solid"));
225
225
  }
226
- const alreadyValid = isShapeValid(solid);
226
+ const alreadyValid = isValid(solid);
227
227
  try {
228
228
  const result = getKernel().healSolid(solid.wrapped);
229
229
  if (!result) {
@@ -276,7 +276,7 @@ function healWire(wire, face) {
276
276
  return err(occtError("HEAL_WIRE_FAILED", "Wire healing failed", e));
277
277
  }
278
278
  }
279
- function healShape(shape) {
279
+ function heal(shape) {
280
280
  if (isSolid(shape)) {
281
281
  return healSolid(shape);
282
282
  }
@@ -296,7 +296,7 @@ function autoHeal(shape, options) {
296
296
  const sewTolerance = options?.sewTolerance;
297
297
  const steps = [];
298
298
  const diagnostics = [];
299
- if (isShapeValid(shape)) {
299
+ if (isValid(shape)) {
300
300
  return ok({
301
301
  shape,
302
302
  report: {
@@ -356,7 +356,7 @@ function autoHeal(shape, options) {
356
356
  }
357
357
  const shouldHealShape = isSolid(current) && fixSolids || isFace(current) && fixFaces || isWire(current) && fixWires;
358
358
  if (shouldHealShape) {
359
- const healResult = healShape(current);
359
+ const healResult = heal(current);
360
360
  if (isOk(healResult)) {
361
361
  current = healResult.value;
362
362
  if (isSolid(shape)) {
@@ -388,7 +388,7 @@ function autoHeal(shape, options) {
388
388
  const facesHealed = Math.abs(facesAfter - facesBefore);
389
389
  if (wiresHealed > 0) steps.push(`Wire count changed by ${wiresHealed}`);
390
390
  if (facesHealed > 0) steps.push(`Face count changed by ${facesHealed}`);
391
- const valid = isShapeValid(current);
391
+ const valid = isValid(current);
392
392
  steps.push(valid ? "Final validation: valid" : "Final validation: still invalid");
393
393
  diagnostics.push({ name: "finalValidation", attempted: true, succeeded: valid });
394
394
  return ok({
@@ -407,13 +407,13 @@ function autoHeal(shape, options) {
407
407
  export {
408
408
  adjacentFaces as a,
409
409
  autoHeal as b,
410
- chamferDistAngleShape as c,
410
+ chamferDistAngle as c,
411
411
  healFace as d,
412
412
  edgesOfFace as e,
413
413
  facesOfEdge as f,
414
414
  healSolid as g,
415
- healShape as h,
416
- isShapeValid as i,
415
+ heal as h,
416
+ isValid as i,
417
417
  healWire as j,
418
418
  toGroupedBufferGeometryData as k,
419
419
  toLineGeometryData as l,
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
- const shapeFns = require("./shapeFns-DjsWo98C.cjs");
3
- require("./booleanFns-5KSbtLBU.cjs");
2
+ const shapeFns = require("./shapeFns-BvOndshS.cjs");
3
+ require("./booleanFns-BBSVKhL2.cjs");
4
4
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
5
5
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
6
- const cast = require("./cast-DsxJk_F0.cjs");
6
+ const cast = require("./cast-DkB0GKmQ.cjs");
7
7
  const errors = require("./errors-DK1VAdP4.cjs");
8
8
  require("./curveFns-BilyYL_s.cjs");
9
- require("./faceFns-B9if-FPW.cjs");
9
+ require("./faceFns-BwK7FP7N.cjs");
10
10
  const vecOps = require("./vecOps-CjRL1jau.cjs");
11
- require("./meshFns-mVlogI3J.cjs");
11
+ require("./meshFns-Dbj_k5gq.cjs");
12
12
  function toBufferGeometryData(mesh) {
13
13
  return {
14
14
  position: mesh.vertices,
@@ -34,12 +34,12 @@ function toLineGeometryData(mesh) {
34
34
  position: new Float32Array(mesh.lines)
35
35
  };
36
36
  }
37
- function chamferDistAngleShape(shape, edges, distance, angleDeg) {
37
+ function chamferDistAngle(shape, edges, distance, angleDeg) {
38
38
  if (edges.length === 0) {
39
39
  return errors.err(
40
40
  errors.validationError(
41
41
  "CHAMFER_ANGLE_NO_EDGES",
42
- "chamferDistAngleShape requires at least one edge",
42
+ "chamferDistAngle requires at least one edge",
43
43
  void 0,
44
44
  {
45
45
  edgeCount: 0
@@ -78,7 +78,7 @@ function chamferDistAngleShape(shape, edges, distance, angleDeg) {
78
78
  return errors.err(
79
79
  errors.occtError(
80
80
  "CHAMFER_ANGLE_FAILED",
81
- `chamferDistAngleShape kernel call failed: ${e instanceof Error ? e.message : String(e)}`,
81
+ `chamferDistAngle kernel call failed: ${e instanceof Error ? e.message : String(e)}`,
82
82
  e,
83
83
  { distance, angleDeg, edgeCount: edges.length }
84
84
  )
@@ -90,7 +90,7 @@ function chamferDistAngleShape(shape, edges, distance, angleDeg) {
90
90
  if (!shapeTypes.isShape3D(wrapped)) {
91
91
  wrapped[Symbol.dispose]();
92
92
  return errors.err(
93
- errors.typeCastError("CHAMFER_ANGLE_NOT_3D", "chamferDistAngleShape did not produce a 3D shape")
93
+ errors.typeCastError("CHAMFER_ANGLE_NOT_3D", "chamferDistAngle did not produce a 3D shape")
94
94
  );
95
95
  }
96
96
  return errors.ok(wrapped);
@@ -217,14 +217,14 @@ function sharedEdges(face1, face2) {
217
217
  }
218
218
  return wrapAll(shared);
219
219
  }
220
- function isShapeValid(shape) {
220
+ function isValid(shape) {
221
221
  return occtBoundary.getKernel().isValid(shape.wrapped);
222
222
  }
223
223
  function healSolid(solid) {
224
224
  if (!shapeTypes.isSolid(solid)) {
225
225
  return errors.err(errors.validationError("NOT_A_SOLID", "Input shape is not a solid"));
226
226
  }
227
- const alreadyValid = isShapeValid(solid);
227
+ const alreadyValid = isValid(solid);
228
228
  try {
229
229
  const result = occtBoundary.getKernel().healSolid(solid.wrapped);
230
230
  if (!result) {
@@ -277,7 +277,7 @@ function healWire(wire, face) {
277
277
  return errors.err(errors.occtError("HEAL_WIRE_FAILED", "Wire healing failed", e));
278
278
  }
279
279
  }
280
- function healShape(shape) {
280
+ function heal(shape) {
281
281
  if (shapeTypes.isSolid(shape)) {
282
282
  return healSolid(shape);
283
283
  }
@@ -297,7 +297,7 @@ function autoHeal(shape, options) {
297
297
  const sewTolerance = options?.sewTolerance;
298
298
  const steps = [];
299
299
  const diagnostics = [];
300
- if (isShapeValid(shape)) {
300
+ if (isValid(shape)) {
301
301
  return errors.ok({
302
302
  shape,
303
303
  report: {
@@ -357,7 +357,7 @@ function autoHeal(shape, options) {
357
357
  }
358
358
  const shouldHealShape = shapeTypes.isSolid(current) && fixSolids || shapeTypes.isFace(current) && fixFaces || shapeTypes.isWire(current) && fixWires;
359
359
  if (shouldHealShape) {
360
- const healResult = healShape(current);
360
+ const healResult = heal(current);
361
361
  if (errors.isOk(healResult)) {
362
362
  current = healResult.value;
363
363
  if (shapeTypes.isSolid(shape)) {
@@ -389,7 +389,7 @@ function autoHeal(shape, options) {
389
389
  const facesHealed = Math.abs(facesAfter - facesBefore);
390
390
  if (wiresHealed > 0) steps.push(`Wire count changed by ${wiresHealed}`);
391
391
  if (facesHealed > 0) steps.push(`Face count changed by ${facesHealed}`);
392
- const valid = isShapeValid(current);
392
+ const valid = isValid(current);
393
393
  steps.push(valid ? "Final validation: valid" : "Final validation: still invalid");
394
394
  diagnostics.push({ name: "finalValidation", attempted: true, succeeded: valid });
395
395
  return errors.ok({
@@ -407,14 +407,14 @@ function autoHeal(shape, options) {
407
407
  }
408
408
  exports.adjacentFaces = adjacentFaces;
409
409
  exports.autoHeal = autoHeal;
410
- exports.chamferDistAngleShape = chamferDistAngleShape;
410
+ exports.chamferDistAngle = chamferDistAngle;
411
411
  exports.edgesOfFace = edgesOfFace;
412
412
  exports.facesOfEdge = facesOfEdge;
413
+ exports.heal = heal;
413
414
  exports.healFace = healFace;
414
- exports.healShape = healShape;
415
415
  exports.healSolid = healSolid;
416
416
  exports.healWire = healWire;
417
- exports.isShapeValid = isShapeValid;
417
+ exports.isValid = isValid;
418
418
  exports.sharedEdges = sharedEdges;
419
419
  exports.toBufferGeometryData = toBufferGeometryData;
420
420
  exports.toGroupedBufferGeometryData = toGroupedBufferGeometryData;
package/dist/topology.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeFns = require("./shapeFns-DjsWo98C.cjs");
4
- const booleanFns = require("./booleanFns-5KSbtLBU.cjs");
5
- const topology = require("./topology-Bb1W3SyF.cjs");
3
+ const shapeFns = require("./shapeFns-BvOndshS.cjs");
4
+ const booleanFns = require("./booleanFns-BBSVKhL2.cjs");
5
+ const topology = require("./topology-DoNKAKMt.cjs");
6
6
  const curveFns = require("./curveFns-BilyYL_s.cjs");
7
- const faceFns = require("./faceFns-B9if-FPW.cjs");
8
- const meshFns = require("./meshFns-mVlogI3J.cjs");
9
- const cast = require("./cast-DsxJk_F0.cjs");
7
+ const faceFns = require("./faceFns-BwK7FP7N.cjs");
8
+ const meshFns = require("./meshFns-Dbj_k5gq.cjs");
9
+ const cast = require("./cast-DkB0GKmQ.cjs");
10
10
  exports.getBounds = shapeFns.getBounds;
11
11
  exports.getEdges = shapeFns.getEdges;
12
12
  exports.getFaces = shapeFns.getFaces;
@@ -24,7 +24,7 @@ exports.cutAll = booleanFns.cutAll;
24
24
  exports.fuseAll = booleanFns.fuseAll;
25
25
  exports.adjacentFaces = topology.adjacentFaces;
26
26
  exports.autoHeal = topology.autoHeal;
27
- exports.chamferDistAngleShape = topology.chamferDistAngleShape;
27
+ exports.chamferDistAngleShape = topology.chamferDistAngle;
28
28
  exports.edgesOfFace = topology.edgesOfFace;
29
29
  exports.facesOfEdge = topology.facesOfEdge;
30
30
  exports.healFace = topology.healFace;
@@ -70,7 +70,7 @@ exports.exportSTEP = meshFns.exportSTEP;
70
70
  exports.exportSTL = meshFns.exportSTL;
71
71
  exports.asTopo = cast.asTopo;
72
72
  exports.cast = cast.cast;
73
- exports.deserializeShape = cast.deserializeShape;
73
+ exports.deserializeShape = cast.fromBREP;
74
74
  exports.downcast = cast.downcast;
75
75
  exports.isCompSolid = cast.isCompSolid;
76
76
  exports.iterTopo = cast.iterTopo;
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export { getHashCode, isSameShape, isEqualShape, getEdges, getFaces, getWires, getVertices, iterEdges, iterFaces, iterWires, iterVertices, getBounds, vertexPosition, type Bounds3D, type ShapeDescription, } from './topology/shapeFns.js';
10
10
  export { fuseAll, cutAll, type BooleanOptions } from './topology/booleanFns.js';
11
- export { chamferDistAngleShape } from './topology/chamferAngleFns.js';
11
+ export { chamferDistAngle as chamferDistAngleShape } from './topology/chamferAngleFns.js';
12
12
  export { getCurveType, curveStartPoint, curveEndPoint, curvePointAt, curveTangentAt, curveLength, curveIsClosed, curveIsPeriodic, curvePeriod, getOrientation, flipOrientation, offsetWire2D, interpolateCurve, approximateCurve, type InterpolateCurveOptions, type ApproximateCurveOptions, } from './topology/curveFns.js';
13
13
  export { getSurfaceType, faceGeomType, faceOrientation, flipFaceOrientation, uvBounds, pointOnSurface, uvCoordinates, normalAt, faceCenter, classifyPointOnFace, outerWire, innerWires, projectPointOnFace, type UVBounds, type PointProjectionResult, } from './topology/faceFns.js';
14
14
  export { facesOfEdge, edgesOfFace, wiresOfFace, verticesOfEdge, adjacentFaces, sharedEdges, } from './topology/adjacencyFns.js';
@@ -1 +1 @@
1
- {"version":3,"file":"topology.d.ts","sourceRoot":"","sources":["../src/topology.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EACL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BAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,qBAAqB,GAC3B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,aAAa,EACb,WAAW,GACZ,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAIjG,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAC"}
package/dist/topology.js CHANGED
@@ -1,14 +1,14 @@
1
- import { e, g, f, k, h, j, l, n, o, p, q, u, v } from "./shapeFns-BpCPVHFT.js";
2
- import { d, g as g2 } from "./booleanFns-DcxqLQSG.js";
3
- import { a, b, c, e as e2, f as f2, d as d2, g as g3, j as j2, s, t, k as k2, l as l2, v as v2, w } from "./topology-BEMrS4WZ.js";
1
+ import { e, g, f, k, h, j, l, n, o, p, q, u, v } from "./shapeFns-BrF97sKt.js";
2
+ import { d, g as g2 } from "./booleanFns-CqehfzcK.js";
3
+ import { a, b, c, e as e2, f as f2, d as d2, g as g3, j as j2, s, t, k as k2, l as l2, v as v2, w } from "./topology-CJKeDGUb.js";
4
4
  import { g as g4, d as d3, c as c2, h as h2, f as f3, i, b as b2, e as e3, a as a2, k as k3, l as l3, m, n as n2, o as o2 } from "./curveFns-CdVE4da7.js";
5
- import { c as c3, f as f4, a as a3, b as b3, d as d4, g as g5, i as i2, n as n3, o as o3, p as p2, e as e4, u as u2, h as h3 } from "./faceFns-Bl6HHbqO.js";
6
- import { c as c4, b as b4, e as e5, d as d5, f as f5 } from "./meshFns-p_kv--PW.js";
7
- import { f as f6, c as c5, e as e6, d as d6, g as g6, i as i3, s as s2 } from "./cast-D1s7Im9E.js";
5
+ import { c as c3, f as f4, a as a3, b as b3, d as d4, g as g5, i as i2, n as n3, o as o3, p as p2, e as e4, u as u2, h as h3 } from "./faceFns-DHu-2JpA.js";
6
+ import { c as c4, b as b4, e as e5, d as d5, f as f5 } from "./meshFns-BY1fMF48.js";
7
+ import { e as e6, c as c5, f as f6, d as d6, g as g6, i as i3, s as s2 } from "./cast-DQaUibmm.js";
8
8
  export {
9
9
  a as adjacentFaces,
10
10
  g4 as approximateCurve,
11
- f6 as asTopo,
11
+ e6 as asTopo,
12
12
  b as autoHeal,
13
13
  c5 as cast,
14
14
  c as chamferDistAngleShape,
@@ -24,7 +24,7 @@ export {
24
24
  e3 as curveStartPoint,
25
25
  a2 as curveTangentAt,
26
26
  d as cutAll,
27
- e6 as deserializeShape,
27
+ f6 as deserializeShape,
28
28
  d6 as downcast,
29
29
  e2 as edgesOfFace,
30
30
  e5 as exportIGES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "7.4.1",
3
+ "version": "7.5.0",
4
4
  "description": "Web CAD library built on OpenCascade",
5
5
  "keywords": [
6
6
  "cad",