brepjs 8.0.1 → 8.0.3

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 (131) hide show
  1. package/dist/2d/blueprints/booleanHelpers.d.ts +32 -0
  2. package/dist/2d/blueprints/booleanHelpers.d.ts.map +1 -0
  3. package/dist/2d/blueprints/booleanOperations.d.ts +5 -3
  4. package/dist/2d/blueprints/booleanOperations.d.ts.map +1 -1
  5. package/dist/2d/blueprints/intersectionSegments.d.ts +12 -0
  6. package/dist/2d/blueprints/intersectionSegments.d.ts.map +1 -0
  7. package/dist/2d/blueprints/segmentAssembly.d.ts +31 -0
  8. package/dist/2d/blueprints/segmentAssembly.d.ts.map +1 -0
  9. package/dist/2d.cjs +2 -2
  10. package/dist/2d.js +8 -8
  11. package/dist/{Blueprint-D3JfGJTz.js → Blueprint-DnAO3gr5.js} +116 -30
  12. package/dist/{Blueprint-CVctc41Z.cjs → Blueprint-FxmMji4s.cjs} +110 -24
  13. package/dist/{boolean2D-hOw5Qay5.js → boolean2D-BnZKKBWU.js} +391 -310
  14. package/dist/{boolean2D-BdZATaHs.cjs → boolean2D-BrjHZfWn.cjs} +426 -345
  15. package/dist/{booleanFns-CqehfzcK.js → booleanFns-Ct3wDnhc.js} +14 -18
  16. package/dist/{booleanFns-BBSVKhL2.cjs → booleanFns-ND7sZvhu.cjs} +12 -16
  17. package/dist/brepjs.cjs +171 -101
  18. package/dist/brepjs.js +315 -244
  19. package/dist/{cast-DQaUibmm.js → cast-BEg1mN7n.js} +2 -2
  20. package/dist/{cast-DkB0GKmQ.cjs → cast-CqDc8oFW.cjs} +2 -2
  21. package/dist/core/disposal.d.ts +1 -1
  22. package/dist/core/disposal.d.ts.map +1 -1
  23. package/dist/core.cjs +3 -3
  24. package/dist/core.js +3 -3
  25. package/dist/cornerFinder-89obDwGi.js +59 -0
  26. package/dist/cornerFinder-BKsCkrXd.cjs +58 -0
  27. package/dist/curveBuilders-BjtdNw1B.cjs +196 -0
  28. package/dist/curveBuilders-U26XDfxg.js +197 -0
  29. package/dist/curveFns-BoG_iA07.cjs +375 -0
  30. package/dist/curveFns-Cg99XKe2.js +376 -0
  31. package/dist/{drawFns-CUyx50gi.cjs → drawFns-C-MCkYj6.cjs} +60 -62
  32. package/dist/{drawFns-921SkhDL.js → drawFns-DJV-nOox.js} +12 -14
  33. package/dist/{faceFns-DHu-2JpA.js → faceFns-CyokaCDr.js} +3 -3
  34. package/dist/{faceFns-BwK7FP7N.cjs → faceFns-DcSCjDG0.cjs} +3 -3
  35. package/dist/helpers--iZxPeJg.cjs +203 -0
  36. package/dist/helpers-CRx_ks-u.js +204 -0
  37. package/dist/io.cjs +4 -4
  38. package/dist/io.js +4 -4
  39. package/dist/kernel/curveOps.d.ts.map +1 -1
  40. package/dist/kernel/meshOps.d.ts.map +1 -1
  41. package/dist/kernel/modifierOps.d.ts.map +1 -1
  42. package/dist/kernel/occtAdapter.d.ts +1 -0
  43. package/dist/kernel/occtAdapter.d.ts.map +1 -1
  44. package/dist/kernel/sweepOps.d.ts +8 -0
  45. package/dist/kernel/sweepOps.d.ts.map +1 -1
  46. package/dist/kernel/types.d.ts +1 -0
  47. package/dist/kernel/types.d.ts.map +1 -1
  48. package/dist/loft-8asn63t4.cjs +372 -0
  49. package/dist/loft-jIkZRqHm.js +373 -0
  50. package/dist/{measurement-C5JGCuUP.js → measurement-DWv8kK6J.js} +3 -3
  51. package/dist/{measurement-fxm_pW7x.cjs → measurement-lRLwaoqD.cjs} +3 -3
  52. package/dist/measurement.cjs +1 -1
  53. package/dist/measurement.js +1 -1
  54. package/dist/{meshFns-BhrZGi6w.cjs → meshFns-DWuLC3fk.cjs} +29 -9
  55. package/dist/{meshFns-AqAjTTVl.js → meshFns-DgAIL1B-.js} +29 -9
  56. package/dist/{occtBoundary-du8_ex-p.cjs → occtBoundary-DHtzU4tz.cjs} +93 -61
  57. package/dist/{occtBoundary-CwegMzqc.js → occtBoundary-DYsksDtE.js} +98 -66
  58. package/dist/operations/extrude.d.ts.map +1 -1
  59. package/dist/operations/extrudeFns.d.ts.map +1 -1
  60. package/dist/operations/extrudeUtils.d.ts +17 -0
  61. package/dist/operations/extrudeUtils.d.ts.map +1 -1
  62. package/dist/operations/patternFns.d.ts.map +1 -1
  63. package/dist/{operations-C1rWoba2.js → operations-B8FHVC22.js} +54 -9
  64. package/dist/{operations-BP1wVDw0.cjs → operations-CCFPvtd-.cjs} +54 -9
  65. package/dist/operations.cjs +2 -2
  66. package/dist/operations.js +4 -4
  67. package/dist/query/cornerFinder.d.ts +48 -0
  68. package/dist/query/cornerFinder.d.ts.map +1 -0
  69. package/dist/query/directionUtils.d.ts +6 -0
  70. package/dist/query/directionUtils.d.ts.map +1 -0
  71. package/dist/query/edgeFinder.d.ts +15 -0
  72. package/dist/query/edgeFinder.d.ts.map +1 -0
  73. package/dist/query/faceFinder.d.ts +15 -0
  74. package/dist/query/faceFinder.d.ts.map +1 -0
  75. package/dist/query/finderCore.d.ts +35 -0
  76. package/dist/query/finderCore.d.ts.map +1 -0
  77. package/dist/query/finderFns.d.ts +21 -106
  78. package/dist/query/finderFns.d.ts.map +1 -1
  79. package/dist/query/shapeDistanceFilter.d.ts +11 -0
  80. package/dist/query/shapeDistanceFilter.d.ts.map +1 -0
  81. package/dist/query/vertexFinder.d.ts +16 -0
  82. package/dist/query/vertexFinder.d.ts.map +1 -0
  83. package/dist/query/wireFinder.d.ts +10 -0
  84. package/dist/query/wireFinder.d.ts.map +1 -0
  85. package/dist/query.cjs +42 -5
  86. package/dist/query.js +40 -2
  87. package/dist/{shapeTypes-DKhwEnUM.cjs → shapeTypes-b_lhwQB7.cjs} +24 -20
  88. package/dist/{shapeTypes-BlSElW8z.js → shapeTypes-i7VwMRwc.js} +32 -28
  89. package/dist/sketching/Sketcher.d.ts.map +1 -1
  90. package/dist/sketching/Sketcher2d.d.ts +12 -4
  91. package/dist/sketching/Sketcher2d.d.ts.map +1 -1
  92. package/dist/sketching/ellipseUtils.d.ts +29 -0
  93. package/dist/sketching/ellipseUtils.d.ts.map +1 -0
  94. package/dist/sketching.cjs +2 -2
  95. package/dist/sketching.js +2 -2
  96. package/dist/topology/booleanFns.d.ts.map +1 -1
  97. package/dist/topology/curveBuilders.d.ts +75 -0
  98. package/dist/topology/curveBuilders.d.ts.map +1 -0
  99. package/dist/topology/curveFns.d.ts.map +1 -1
  100. package/dist/topology/meshFns.d.ts.map +1 -1
  101. package/dist/topology/primitiveFns.d.ts.map +1 -1
  102. package/dist/topology/shapeFns.d.ts.map +1 -1
  103. package/dist/topology/shapeHelpers.d.ts +6 -173
  104. package/dist/topology/shapeHelpers.d.ts.map +1 -1
  105. package/dist/topology/shapeUtils.d.ts +13 -0
  106. package/dist/topology/shapeUtils.d.ts.map +1 -0
  107. package/dist/topology/solidBuilders.d.ts +70 -0
  108. package/dist/topology/solidBuilders.d.ts.map +1 -0
  109. package/dist/topology/surfaceBuilders.d.ts +35 -0
  110. package/dist/topology/surfaceBuilders.d.ts.map +1 -0
  111. package/dist/topology/wrapperFns.d.ts +1 -0
  112. package/dist/topology/wrapperFns.d.ts.map +1 -1
  113. package/dist/{topology-tFzqSrGH.js → topology-Bh-aPIxA.js} +7 -8
  114. package/dist/{topology-CIooytHH.cjs → topology-ByOn_z3E.cjs} +12 -13
  115. package/dist/topology.cjs +33 -34
  116. package/dist/topology.js +54 -55
  117. package/dist/{vectors-CBuaMeZv.js → vectors-DWLjb9-P.js} +1 -1
  118. package/dist/{vectors-ChWEZPwy.cjs → vectors-aQBZK0Sb.cjs} +1 -1
  119. package/dist/vectors.cjs +2 -2
  120. package/dist/vectors.js +2 -2
  121. package/package.json +1 -1
  122. package/dist/curveFns-BilyYL_s.cjs +0 -190
  123. package/dist/curveFns-CdVE4da7.js +0 -191
  124. package/dist/loft-BzWFokmC.cjs +0 -178
  125. package/dist/loft-CtG5nMq5.js +0 -179
  126. package/dist/query-V6nV-VfL.js +0 -396
  127. package/dist/query-hMSmOWJP.cjs +0 -395
  128. package/dist/shapeFns-BrF97sKt.js +0 -204
  129. package/dist/shapeFns-BvOndshS.cjs +0 -203
  130. package/dist/shapeHelpers-B2SXz1p4.cjs +0 -488
  131. package/dist/shapeHelpers-BcoZf2N9.js +0 -489
@@ -0,0 +1,13 @@
1
+ import { Result } from '../core/result.js';
2
+ import { AnyShape, Face, Shell } from '../core/shapeTypes.js';
3
+ /** Sew faces/shells into a single shape using the kernel's sewing algorithm. */
4
+ export declare function weldShapes(facesOrShells: Array<Face | Shell>): AnyShape;
5
+ /**
6
+ * Welds faces and shells into a single shell.
7
+ *
8
+ * @param facesOrShells - An array of faces and shells to be welded.
9
+ * @param ignoreType - If true, the function will not check if the result is a shell.
10
+ * @returns A shell that contains all the faces and shells.
11
+ */
12
+ export declare function weldShellsAndFaces(facesOrShells: Array<Face | Shell>, ignoreType?: boolean): Result<Shell>;
13
+ //# sourceMappingURL=shapeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shapeUtils.d.ts","sourceRoot":"","sources":["../../src/topology/shapeUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInE,gFAAgF;AAChF,wBAAgB,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,QAAQ,CAGvE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAClC,UAAU,UAAQ,GACjB,MAAM,CAAC,KAAK,CAAC,CAOf"}
@@ -0,0 +1,70 @@
1
+ import { Vec3 } from '../core/types.js';
2
+ import { Result } from '../core/result.js';
3
+ import { AnyShape, Shape3D, Compound, Face, Vertex, Shell, Solid } from '../core/shapeTypes.js';
4
+ /**
5
+ * Creates a cylinder with the given radius and height.
6
+ *
7
+ * @category Solids
8
+ */
9
+ export declare function makeCylinder(radius: number, height: number, location?: Vec3, direction?: Vec3): Solid;
10
+ /**
11
+ * Creates a sphere with the given radius.
12
+ *
13
+ * @category Solids
14
+ */
15
+ export declare function makeSphere(radius: number): Solid;
16
+ /**
17
+ * Creates a cone (or frustum) with the given radii and height.
18
+ *
19
+ * @category Solids
20
+ */
21
+ export declare function makeCone(radius1: number, radius2: number, height: number, location?: Vec3, direction?: Vec3): Solid;
22
+ /**
23
+ * Creates a torus with the given major and minor radii.
24
+ *
25
+ * @category Solids
26
+ */
27
+ export declare function makeTorus(majorRadius: number, minorRadius: number, location?: Vec3, direction?: Vec3): Solid;
28
+ /**
29
+ * Creates an ellipsoid with the given axis lengths.
30
+ *
31
+ * The algorithm creates a unit BSpline sphere surface, transforms its
32
+ * control-point poles with an affinity matrix to match the requested
33
+ * axis half-lengths, then sews the result into a solid.
34
+ *
35
+ * @category Solids
36
+ */
37
+ export declare function makeEllipsoid(aLength: number, bLength: number, cLength: number): Solid;
38
+ /**
39
+ * Creates a box with the given corner points.
40
+ *
41
+ * @category Solids
42
+ */
43
+ export declare function makeBox(corner1: Vec3, corner2: Vec3): Solid;
44
+ /** Create a vertex at a 3D point. */
45
+ export declare function makeVertex(point: Vec3): Vertex;
46
+ /**
47
+ * Create an offset shape from a face.
48
+ *
49
+ * @param offset - Signed offset distance (positive = outward).
50
+ * @param tolerance - Geometric tolerance for the offset algorithm.
51
+ * @returns An error if the result is not a valid 3D shape.
52
+ */
53
+ export declare function makeOffset(face: Face, offset: number, tolerance?: number): Result<Shape3D>;
54
+ /**
55
+ * Build a compound from multiple shapes.
56
+ *
57
+ * @param shapeArray - Shapes to group into a single compound.
58
+ * @returns A new Compound containing all input shapes.
59
+ */
60
+ export declare function makeCompound(shapeArray: AnyShape[]): Compound;
61
+ /**
62
+ * Welds faces and shells into a single shell and then makes a solid.
63
+ *
64
+ * @param facesOrShells - An array of faces and shells to be welded.
65
+ * @returns A solid that contains all the faces and shells.
66
+ *
67
+ * @category Solids
68
+ */
69
+ export declare function makeSolid(facesOrShells: Array<Face | Shell>): Result<Solid>;
70
+ //# sourceMappingURL=solidBuilders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solidBuilders.d.ts","sourceRoot":"","sources":["../../src/topology/solidBuilders.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,KAAK,MAAM,EAA4B,MAAM,mBAAmB,CAAC;AAE1E,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACN,MAAM,uBAAuB,CAAC;AAW/B;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,IAAgB,EAC1B,SAAS,GAAE,IAAgB,GAC1B,KAAK,CAOP;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAMhD;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,IAAgB,EAC1B,SAAS,GAAE,IAAgB,GAC1B,KAAK,CAOP;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,GAAE,IAAgB,EAC1B,SAAS,GAAE,IAAgB,GAC1B,KAAK,CAOP;AA4DD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CA+BtF;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,KAAK,CAQ3D;AAED,qCAAqC;AACrC,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAO9C;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,SAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CA+BxF;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAY7D;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAS3E"}
@@ -0,0 +1,35 @@
1
+ import { Vec3 } from '../core/types.js';
2
+ import { Result } from '../core/result.js';
3
+ import { Face, Wire } from '../core/shapeTypes.js';
4
+ /**
5
+ * Create a planar face from a closed wire, optionally with hole wires.
6
+ *
7
+ * @returns An error if the wire is non-planar or the face cannot be built.
8
+ */
9
+ export declare function makeFace(wire: Wire, holes?: Wire[]): Result<Face>;
10
+ /**
11
+ * Create a face bounded by a wire on an existing face's underlying surface.
12
+ *
13
+ * @param originFace - Face whose surface geometry is reused.
14
+ * @param wire - Wire that defines the boundary on that surface.
15
+ */
16
+ export declare function makeNewFaceWithinFace(originFace: Face, wire: Wire): Face;
17
+ /**
18
+ * Create a non-planar face from a wire using surface filling.
19
+ *
20
+ * @returns An error if the filling algorithm fails to produce a face.
21
+ */
22
+ export declare function makeNonPlanarFace(wire: Wire): Result<Face>;
23
+ /**
24
+ * Add hole wires to an existing face.
25
+ *
26
+ * Orientation of the holes is automatically fixed.
27
+ */
28
+ export declare function addHolesInFace(face: Face, holes: Wire[]): Face;
29
+ /**
30
+ * Create a polygonal face from three or more coplanar points.
31
+ *
32
+ * @returns An error if fewer than 3 points are provided or the face cannot be built.
33
+ */
34
+ export declare function makePolygon(points: Vec3[]): Result<Face>;
35
+ //# sourceMappingURL=surfaceBuilders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceBuilders.d.ts","sourceRoot":"","sources":["../../src/topology/surfaceBuilders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,KAAK,MAAM,EAAoB,MAAM,mBAAmB,CAAC;AAElE,OAAO,KAAK,EAAQ,IAAI,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAO9D;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAgBjE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CASxE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CA0B1D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAiB9D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAWxD"}
@@ -74,6 +74,7 @@ export interface Wrapped3D<T extends Shape3D> extends Wrapped<T> {
74
74
  fuse(tool: Shapeable<Shape3D>, options?: BooleanOptions): Wrapped3D<T>;
75
75
  cut(tool: Shapeable<Shape3D>, options?: BooleanOptions): Wrapped3D<T>;
76
76
  intersect(tool: Shapeable<Shape3D>, options?: BooleanOptions): Wrapped3D<T>;
77
+ fuseAll(tools: Shapeable<Shape3D>[], options?: BooleanOptions): Wrapped3D<T>;
77
78
  cutAll(tools: Shape3D[], options?: BooleanOptions): Wrapped3D<T>;
78
79
  section(plane: PlaneInput, options?: {
79
80
  approximation?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"wrapperFns.d.ts","sourceRoot":"","sources":["../../src/topology/wrapperFns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EACV,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,OAAO,EACR,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AA+B1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAY9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAahE;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EA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D,gDAAgD;AAChD,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;AACtD,mDAAmD;AACnD,wBAAgB,KAAK,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -1,13 +1,12 @@
1
- import { j as getWires, f as getFaces } from "./shapeFns-BrF97sKt.js";
2
- import "./booleanFns-CqehfzcK.js";
3
- import { g as getKernel } from "./occtBoundary-CwegMzqc.js";
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-DQaUibmm.js";
1
+ import { w as getWires, k as getFaces } from "./curveFns-Cg99XKe2.js";
2
+ import "./booleanFns-Ct3wDnhc.js";
3
+ import { g as getKernel } from "./occtBoundary-DYsksDtE.js";
4
+ import { c as castShape, h as isShape3D, k as isSolid, e as isFace, m as isWire } from "./shapeTypes-i7VwMRwc.js";
5
+ import { d as downcast } from "./cast-BEg1mN7n.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
- import "./curveFns-CdVE4da7.js";
8
- import "./faceFns-DHu-2JpA.js";
7
+ import "./faceFns-CyokaCDr.js";
9
8
  import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
10
- import "./meshFns-AqAjTTVl.js";
9
+ import "./meshFns-DgAIL1B-.js";
11
10
  function toBufferGeometryData(mesh) {
12
11
  return {
13
12
  position: mesh.vertices,
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
- const shapeFns = require("./shapeFns-BvOndshS.cjs");
3
- require("./booleanFns-BBSVKhL2.cjs");
4
- const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
5
- const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
6
- const cast = require("./cast-DkB0GKmQ.cjs");
2
+ const curveFns = require("./curveFns-BoG_iA07.cjs");
3
+ require("./booleanFns-ND7sZvhu.cjs");
4
+ const occtBoundary = require("./occtBoundary-DHtzU4tz.cjs");
5
+ const shapeTypes = require("./shapeTypes-b_lhwQB7.cjs");
6
+ const cast = require("./cast-CqDc8oFW.cjs");
7
7
  const errors = require("./errors-DK1VAdP4.cjs");
8
- require("./curveFns-BilyYL_s.cjs");
9
- require("./faceFns-BwK7FP7N.cjs");
8
+ require("./faceFns-DcSCjDG0.cjs");
10
9
  const vecOps = require("./vecOps-CjRL1jau.cjs");
11
- require("./meshFns-BhrZGi6w.cjs");
10
+ require("./meshFns-DWuLC3fk.cjs");
12
11
  function toBufferGeometryData(mesh) {
13
12
  return {
14
13
  position: mesh.vertices,
@@ -312,8 +311,8 @@ function autoHeal(shape, options) {
312
311
  });
313
312
  }
314
313
  steps.push("Shape invalid — applying shape-level healing");
315
- const wiresBefore = shapeFns.getWires(shape).length;
316
- const facesBefore = shapeFns.getFaces(shape).length;
314
+ const wiresBefore = curveFns.getWires(shape).length;
315
+ const facesBefore = curveFns.getFaces(shape).length;
317
316
  let current = shape;
318
317
  let solidHealed = false;
319
318
  if (sewTolerance !== void 0) {
@@ -334,7 +333,7 @@ function autoHeal(shape, options) {
334
333
  }
335
334
  }
336
335
  if (fixSelfIntersection && fixWires) {
337
- const wires = shapeFns.getWires(current);
336
+ const wires = curveFns.getWires(current);
338
337
  let fixCount = 0;
339
338
  for (const wire of wires) {
340
339
  try {
@@ -383,8 +382,8 @@ function autoHeal(shape, options) {
383
382
  detail: "skipped by options"
384
383
  });
385
384
  }
386
- const wiresAfter = shapeFns.getWires(current).length;
387
- const facesAfter = shapeFns.getFaces(current).length;
385
+ const wiresAfter = curveFns.getWires(current).length;
386
+ const facesAfter = curveFns.getFaces(current).length;
388
387
  const wiresHealed = Math.abs(wiresAfter - wiresBefore);
389
388
  const facesHealed = Math.abs(facesAfter - facesBefore);
390
389
  if (wiresHealed > 0) steps.push(`Wire count changed by ${wiresHealed}`);
package/dist/topology.cjs CHANGED
@@ -1,25 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeFns = require("./shapeFns-BvOndshS.cjs");
4
- const booleanFns = require("./booleanFns-BBSVKhL2.cjs");
5
- const topology = require("./topology-CIooytHH.cjs");
6
- const curveFns = require("./curveFns-BilyYL_s.cjs");
7
- const faceFns = require("./faceFns-BwK7FP7N.cjs");
8
- const meshFns = require("./meshFns-BhrZGi6w.cjs");
9
- const cast = require("./cast-DkB0GKmQ.cjs");
10
- exports.getBounds = shapeFns.getBounds;
11
- exports.getEdges = shapeFns.getEdges;
12
- exports.getFaces = shapeFns.getFaces;
13
- exports.getHashCode = shapeFns.getHashCode;
14
- exports.getVertices = shapeFns.getVertices;
15
- exports.getWires = shapeFns.getWires;
16
- exports.isEqualShape = shapeFns.isEqualShape;
17
- exports.isSameShape = shapeFns.isSameShape;
18
- exports.iterEdges = shapeFns.iterEdges;
19
- exports.iterFaces = shapeFns.iterFaces;
20
- exports.iterVertices = shapeFns.iterVertices;
21
- exports.iterWires = shapeFns.iterWires;
22
- exports.vertexPosition = shapeFns.vertexPosition;
3
+ const curveFns = require("./curveFns-BoG_iA07.cjs");
4
+ const booleanFns = require("./booleanFns-ND7sZvhu.cjs");
5
+ const topology = require("./topology-ByOn_z3E.cjs");
6
+ const faceFns = require("./faceFns-DcSCjDG0.cjs");
7
+ const meshFns = require("./meshFns-DWuLC3fk.cjs");
8
+ const cast = require("./cast-CqDc8oFW.cjs");
9
+ exports.approximateCurve = curveFns.approximateCurve;
10
+ exports.curveEndPoint = curveFns.curveEndPoint;
11
+ exports.curveIsClosed = curveFns.curveIsClosed;
12
+ exports.curveIsPeriodic = curveFns.curveIsPeriodic;
13
+ exports.curveLength = curveFns.curveLength;
14
+ exports.curvePeriod = curveFns.curvePeriod;
15
+ exports.curvePointAt = curveFns.curvePointAt;
16
+ exports.curveStartPoint = curveFns.curveStartPoint;
17
+ exports.curveTangentAt = curveFns.curveTangentAt;
18
+ exports.flipOrientation = curveFns.flipOrientation;
19
+ exports.getBounds = curveFns.getBounds;
20
+ exports.getCurveType = curveFns.getCurveType;
21
+ exports.getEdges = curveFns.getEdges;
22
+ exports.getFaces = curveFns.getFaces;
23
+ exports.getHashCode = curveFns.getHashCode;
24
+ exports.getOrientation = curveFns.getOrientation;
25
+ exports.getVertices = curveFns.getVertices;
26
+ exports.getWires = curveFns.getWires;
27
+ exports.interpolateCurve = curveFns.interpolateCurve;
28
+ exports.isEqualShape = curveFns.isEqualShape;
29
+ exports.isSameShape = curveFns.isSameShape;
30
+ exports.iterEdges = curveFns.iterEdges;
31
+ exports.iterFaces = curveFns.iterFaces;
32
+ exports.iterVertices = curveFns.iterVertices;
33
+ exports.iterWires = curveFns.iterWires;
34
+ exports.offsetWire2D = curveFns.offsetWire2D;
35
+ exports.vertexPosition = curveFns.vertexPosition;
23
36
  exports.cutAll = booleanFns.cutAll;
24
37
  exports.fuseAll = booleanFns.fuseAll;
25
38
  exports.adjacentFaces = topology.adjacentFaces;
@@ -36,20 +49,6 @@ exports.toGroupedBufferGeometryData = topology.toGroupedBufferGeometryData;
36
49
  exports.toLineGeometryData = topology.toLineGeometryData;
37
50
  exports.verticesOfEdge = topology.verticesOfEdge;
38
51
  exports.wiresOfFace = topology.wiresOfFace;
39
- exports.approximateCurve = curveFns.approximateCurve;
40
- exports.curveEndPoint = curveFns.curveEndPoint;
41
- exports.curveIsClosed = curveFns.curveIsClosed;
42
- exports.curveIsPeriodic = curveFns.curveIsPeriodic;
43
- exports.curveLength = curveFns.curveLength;
44
- exports.curvePeriod = curveFns.curvePeriod;
45
- exports.curvePointAt = curveFns.curvePointAt;
46
- exports.curveStartPoint = curveFns.curveStartPoint;
47
- exports.curveTangentAt = curveFns.curveTangentAt;
48
- exports.flipOrientation = curveFns.flipOrientation;
49
- exports.getCurveType = curveFns.getCurveType;
50
- exports.getOrientation = curveFns.getOrientation;
51
- exports.interpolateCurve = curveFns.interpolateCurve;
52
- exports.offsetWire2D = curveFns.offsetWire2D;
53
52
  exports.classifyPointOnFace = faceFns.classifyPointOnFace;
54
53
  exports.faceCenter = faceFns.faceCenter;
55
54
  exports.faceGeomType = faceFns.faceGeomType;
package/dist/topology.js CHANGED
@@ -1,77 +1,76 @@
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-tFzqSrGH.js";
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-DHu-2JpA.js";
6
- import { c as c4, b as b4, e as e5, d as d5, f as f5 } from "./meshFns-AqAjTTVl.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";
1
+ import { x, o, c, y, q, z, n, p, l, B, j, C, a, k, g, D, u, w, E, F, i, G, H, I, J, K, v } from "./curveFns-Cg99XKe2.js";
2
+ import { d, e } from "./booleanFns-Ct3wDnhc.js";
3
+ import { a as a2, b, c as c2, e as e2, f, d as d2, g as g2, j as j2, s, t, k as k2, l as l2, v as v2, w as w2 } from "./topology-Bh-aPIxA.js";
4
+ import { c as c3, f as f2, a as a3, b as b2, d as d3, g as g3, i as i2, n as n2, o as o2, p as p2, e as e3, u as u2, h } from "./faceFns-CyokaCDr.js";
5
+ import { c as c4, b as b3, e as e4, d as d4, f as f3 } from "./meshFns-DgAIL1B-.js";
6
+ import { e as e5, c as c5, f as f4, d as d5, g as g4, i as i3, s as s2 } from "./cast-BEg1mN7n.js";
8
7
  export {
9
- a as adjacentFaces,
10
- g4 as approximateCurve,
11
- e6 as asTopo,
8
+ a2 as adjacentFaces,
9
+ x as approximateCurve,
10
+ e5 as asTopo,
12
11
  b as autoHeal,
13
12
  c5 as cast,
14
- c as chamferDistAngleShape,
13
+ c2 as chamferDistAngleShape,
15
14
  c3 as classifyPointOnFace,
16
15
  c4 as clearMeshCache,
17
- b4 as createMeshCache,
18
- d3 as curveEndPoint,
19
- c2 as curveIsClosed,
20
- h2 as curveIsPeriodic,
21
- f3 as curveLength,
22
- i as curvePeriod,
23
- b2 as curvePointAt,
24
- e3 as curveStartPoint,
25
- a2 as curveTangentAt,
16
+ b3 as createMeshCache,
17
+ o as curveEndPoint,
18
+ c as curveIsClosed,
19
+ y as curveIsPeriodic,
20
+ q as curveLength,
21
+ z as curvePeriod,
22
+ n as curvePointAt,
23
+ p as curveStartPoint,
24
+ l as curveTangentAt,
26
25
  d as cutAll,
27
- f6 as deserializeShape,
28
- d6 as downcast,
26
+ f4 as deserializeShape,
27
+ d5 as downcast,
29
28
  e2 as edgesOfFace,
30
- e5 as exportIGES,
31
- d5 as exportSTEP,
32
- f5 as exportSTL,
33
- f4 as faceCenter,
29
+ e4 as exportIGES,
30
+ d4 as exportSTEP,
31
+ f3 as exportSTL,
32
+ f2 as faceCenter,
34
33
  a3 as faceGeomType,
35
- b3 as faceOrientation,
36
- f2 as facesOfEdge,
37
- d4 as flipFaceOrientation,
38
- k3 as flipOrientation,
39
- g2 as fuseAll,
40
- e as getBounds,
41
- l3 as getCurveType,
42
- g as getEdges,
43
- f as getFaces,
44
- k as getHashCode,
45
- m as getOrientation,
46
- g5 as getSurfaceType,
47
- h as getVertices,
48
- j as getWires,
34
+ b2 as faceOrientation,
35
+ f as facesOfEdge,
36
+ d3 as flipFaceOrientation,
37
+ B as flipOrientation,
38
+ e as fuseAll,
39
+ j as getBounds,
40
+ C as getCurveType,
41
+ a as getEdges,
42
+ k as getFaces,
43
+ g as getHashCode,
44
+ D as getOrientation,
45
+ g3 as getSurfaceType,
46
+ u as getVertices,
47
+ w as getWires,
49
48
  d2 as healFace,
50
- g3 as healSolid,
49
+ g2 as healSolid,
51
50
  j2 as healWire,
52
51
  i2 as innerWires,
53
- n2 as interpolateCurve,
54
- g6 as isCompSolid,
55
- l as isEqualShape,
56
- n as isSameShape,
57
- o as iterEdges,
58
- p as iterFaces,
52
+ E as interpolateCurve,
53
+ g4 as isCompSolid,
54
+ F as isEqualShape,
55
+ i as isSameShape,
56
+ G as iterEdges,
57
+ H as iterFaces,
59
58
  i3 as iterTopo,
60
- q as iterVertices,
61
- u as iterWires,
62
- n3 as normalAt,
63
- o2 as offsetWire2D,
64
- o3 as outerWire,
59
+ I as iterVertices,
60
+ J as iterWires,
61
+ n2 as normalAt,
62
+ K as offsetWire2D,
63
+ o2 as outerWire,
65
64
  p2 as pointOnSurface,
66
- e4 as projectPointOnFace,
65
+ e3 as projectPointOnFace,
67
66
  s2 as shapeType,
68
67
  s as sharedEdges,
69
68
  t as toBufferGeometryData,
70
69
  k2 as toGroupedBufferGeometryData,
71
70
  l2 as toLineGeometryData,
72
71
  u2 as uvBounds,
73
- h3 as uvCoordinates,
72
+ h as uvCoordinates,
74
73
  v as vertexPosition,
75
74
  v2 as verticesOfEdge,
76
- w as wiresOfFace
75
+ w2 as wiresOfFace
77
76
  };
@@ -1,4 +1,4 @@
1
- import { e as makeOcAx3, a as toVec3 } from "./occtBoundary-CwegMzqc.js";
1
+ import { d as makeOcAx3, a as toVec3 } from "./occtBoundary-DYsksDtE.js";
2
2
  import { j as vecNormalize, f as vecIsZero, b as vecCross, v as vecAdd, n as vecScale, o as vecSub, d as vecDot, m as vecRotate, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
3
  import { e as err, x as validationError, l as ok } from "./errors-wGhcJMpB.js";
4
4
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
2
+ const occtBoundary = require("./occtBoundary-DHtzU4tz.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
4
  const errors = require("./errors-DK1VAdP4.cjs");
5
5
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
package/dist/vectors.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
3
+ const occtBoundary = require("./occtBoundary-DHtzU4tz.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const vectors = require("./vectors-ChWEZPwy.cjs");
5
+ const vectors = require("./vectors-aQBZK0Sb.cjs");
6
6
  exports.resolveDirection = occtBoundary.resolveDirection;
7
7
  exports.toVec2 = occtBoundary.toVec2;
8
8
  exports.toVec3 = occtBoundary.toVec3;
package/dist/vectors.js CHANGED
@@ -1,6 +1,6 @@
1
- import { r, t, a } from "./occtBoundary-CwegMzqc.js";
1
+ import { r, t, a } from "./occtBoundary-DYsksDtE.js";
2
2
  import { D, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
3
- import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-CBuaMeZv.js";
3
+ import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-DWLjb9-P.js";
4
4
  export {
5
5
  D as DEG2RAD,
6
6
  R as RAD2DEG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "description": "Web CAD library built on OpenCascade",
5
5
  "keywords": [
6
6
  "cad",