brepjs 18.6.0 → 18.14.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 (656) hide show
  1. package/README.md +6 -0
  2. package/dist/{sketching/sketcher2d.d.ts → 2d/blueprints/baseSketcher2d.d.ts} +4 -91
  3. package/dist/2d/blueprints/blueprint.d.ts +0 -1
  4. package/dist/2d/blueprints/blueprintApproximations.d.ts +0 -1
  5. package/dist/2d/blueprints/blueprintCustomCorners.d.ts +0 -1
  6. package/dist/2d/blueprints/blueprintFns.d.ts +0 -1
  7. package/dist/2d/blueprints/blueprintOffset.d.ts +0 -1
  8. package/dist/2d/blueprints/blueprintSketcher.d.ts +29 -0
  9. package/dist/2d/blueprints/blueprints.d.ts +0 -1
  10. package/dist/2d/blueprints/boolean2D.d.ts +0 -1
  11. package/dist/2d/blueprints/booleanHelpers.d.ts +0 -1
  12. package/dist/2d/blueprints/booleanOperations.d.ts +0 -1
  13. package/dist/2d/blueprints/cannedBlueprints.d.ts +0 -1
  14. package/dist/2d/blueprints/compoundBlueprint.d.ts +0 -1
  15. package/dist/{sketching → 2d/blueprints}/ellipseUtils.d.ts +19 -2
  16. package/dist/{sketching/sketcherlib.d.ts → 2d/blueprints/genericSketcher.d.ts} +1 -20
  17. package/dist/2d/blueprints/index.d.ts +0 -1
  18. package/dist/2d/blueprints/intersectionSegments.d.ts +0 -1
  19. package/dist/2d/blueprints/lib.d.ts +0 -1
  20. package/dist/2d/blueprints/segmentAssembly.d.ts +0 -1
  21. package/dist/2d/blueprints/svg.d.ts +0 -1
  22. package/dist/2d/curve2dGeometryFns.d.ts +0 -1
  23. package/dist/2d/curves.d.ts +0 -1
  24. package/dist/2d/lib/approximations.d.ts +0 -1
  25. package/dist/2d/lib/boundingBox2d.d.ts +0 -1
  26. package/dist/2d/lib/curve2D.d.ts +0 -1
  27. package/dist/2d/lib/curve2dFns.d.ts +0 -1
  28. package/dist/2d/lib/customCorners.d.ts +0 -1
  29. package/dist/2d/lib/definitions.d.ts +0 -1
  30. package/dist/2d/lib/index.d.ts +0 -1
  31. package/dist/2d/lib/intersections.d.ts +0 -1
  32. package/dist/2d/lib/makeCurves.d.ts +0 -1
  33. package/dist/2d/lib/offset.d.ts +0 -1
  34. package/dist/2d/lib/precision.d.ts +0 -1
  35. package/dist/2d/lib/stitching.d.ts +0 -1
  36. package/dist/2d/lib/svgPath.d.ts +0 -1
  37. package/dist/2d/lib/utils.d.ts +0 -1
  38. package/dist/2d/lib/vectorOperations.d.ts +0 -1
  39. package/dist/2d.cjs +20 -19
  40. package/dist/2d.d.ts +0 -1
  41. package/dist/2d.js +7 -6
  42. package/dist/{blueprint-CscZ0-wr.cjs → blueprint-B8ogGJiQ.cjs} +16 -15
  43. package/dist/{blueprint-BCoJbaQN.js → blueprint-Dv45Evnu.js} +16 -15
  44. package/dist/{blueprintFns-DQP4KQHE.cjs → blueprintFns-BK3FYYjO.cjs} +4 -4
  45. package/dist/{blueprintFns-BZlx6BjG.js → blueprintFns-a9C2g8_E.js} +3 -3
  46. package/dist/{boolean2D-k1AJmCMp.cjs → blueprintSketcher-Bei866Bt.cjs} +65 -1383
  47. package/dist/{boolean2D-JvgjbESt.js → blueprintSketcher-xDsl9GXO.js} +70 -1316
  48. package/dist/boolean2D-DGuiEJHA.cjs +902 -0
  49. package/dist/boolean2D-Z7P0c012.js +855 -0
  50. package/dist/{booleanFns-D13Pb-NO.js → booleanFns-CRa80qMX.js} +9 -9
  51. package/dist/{booleanFns-DQW4lt7H.cjs → booleanFns-qmgMQyDl.cjs} +12 -12
  52. package/dist/brepjs.cjs +772 -112
  53. package/dist/brepjs.js +692 -42
  54. package/dist/cameraFns-1y1NyACI.cjs +315 -0
  55. package/dist/cameraFns-CUzI5RKS.js +274 -0
  56. package/dist/core/constants.d.ts +0 -1
  57. package/dist/core/curve2dHandle.d.ts +0 -1
  58. package/dist/core/dimensionTypes.d.ts +0 -1
  59. package/dist/core/disposal.d.ts +0 -1
  60. package/dist/core/errors.d.ts +0 -1
  61. package/dist/core/kernelBoundary.d.ts +0 -1
  62. package/dist/core/kernelCall.d.ts +0 -1
  63. package/dist/core/kernelErrorTranslation.d.ts +0 -1
  64. package/dist/core/planeOps.d.ts +0 -1
  65. package/dist/core/planeTypes.d.ts +0 -1
  66. package/dist/core/result.d.ts +0 -1
  67. package/dist/core/shapeTypeCache.d.ts +0 -1
  68. package/dist/core/shapeTypes.d.ts +0 -1
  69. package/dist/core/typeDiscriminants.d.ts +0 -1
  70. package/dist/core/types.d.ts +0 -1
  71. package/dist/core/validityTypes.d.ts +0 -1
  72. package/dist/core/vecOps.d.ts +0 -1
  73. package/dist/core.cjs +6 -6
  74. package/dist/core.d.ts +0 -1
  75. package/dist/core.js +6 -6
  76. package/dist/{cornerFinder-5BYE2cbd.cjs → cornerFinder-CC8EBRCR.cjs} +3 -3
  77. package/dist/{cornerFinder-Zg7pf2s0.js → cornerFinder-Dix2ghke.js} +3 -3
  78. package/dist/{curveFns-DhqUp0EI.js → curveFns-B4tWuinR.js} +2 -2
  79. package/dist/{curveFns-DrT54cm8.cjs → curveFns-CD20-4fM.cjs} +2 -2
  80. package/dist/{drawFns-lUXjhTYL.js → drawFns-BsarLfUN.js} +163 -769
  81. package/dist/{drawFns-DmP2o1oF.cjs → drawFns-LlOZoFyp.cjs} +203 -985
  82. package/dist/{errors-DboJwVCf.js → errors-0fYW_YnO.js} +2 -1
  83. package/dist/{errors-CXRNVCec.cjs → errors-Dv6pfNct.cjs} +2 -1
  84. package/dist/{extrudeFns-B9bVCt3C.js → extrudeFns-7pE8dIWz.js} +3 -3
  85. package/dist/{extrudeFns-BtblHdaJ.cjs → extrudeFns-DD36mWKv.cjs} +3 -3
  86. package/dist/faceFns-BFWz17_E.js +218 -0
  87. package/dist/faceFns-DP7i60yJ.cjs +343 -0
  88. package/dist/gear/gearFns.d.ts +129 -0
  89. package/dist/gear/gearMath.d.ts +88 -0
  90. package/dist/gear/gearProfile.d.ts +16 -0
  91. package/dist/gear/index.d.ts +3 -0
  92. package/dist/{helpers-BpXNcxuJ.cjs → helpers-Cyj6gaqy.cjs} +14 -13
  93. package/dist/{helpers-S_Ht6gwX.js → helpers-vV2ONZwD.js} +9 -8
  94. package/dist/{historyFns-B01hrkcJ.js → historyFns-DGb61ETW.js} +6 -6
  95. package/dist/{historyFns-RHO-QvEZ.cjs → historyFns-DfyrPjnK.cjs} +6 -6
  96. package/dist/{importFns-CG49lyTm.cjs → importFns-C-p0vl_h.cjs} +11 -19
  97. package/dist/{importFns-C0tUyeiW.js → importFns-Ci-L2iB3.js} +11 -19
  98. package/dist/index.d.ts +16 -8
  99. package/dist/io/dxfExportFns.d.ts +0 -1
  100. package/dist/io/dxfImportFns.d.ts +0 -1
  101. package/dist/io/gltfExportFns.d.ts +0 -1
  102. package/dist/io/gltfImportFns.d.ts +0 -1
  103. package/dist/io/importFns.d.ts +0 -1
  104. package/dist/io/ioUtils.d.ts +0 -1
  105. package/dist/io/objExportFns.d.ts +0 -1
  106. package/dist/io/objImportFns.d.ts +0 -1
  107. package/dist/io/stepConfigFns.d.ts +0 -1
  108. package/dist/io/svgImportFns.d.ts +0 -1
  109. package/dist/io/threemfExportFns.d.ts +0 -1
  110. package/dist/io/threemfImportFns.d.ts +0 -1
  111. package/dist/io.cjs +2 -2
  112. package/dist/io.d.ts +0 -1
  113. package/dist/io.js +2 -2
  114. package/dist/kernel/brepkit/booleanOps.d.ts +23 -1
  115. package/dist/kernel/brepkit/brepkitAdapter.d.ts +21 -408
  116. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +0 -1
  117. package/dist/kernel/brepkit/constructionOps.d.ts +51 -1
  118. package/dist/kernel/brepkit/evolutionOps.d.ts +34 -3
  119. package/dist/kernel/brepkit/geometryOps.d.ts +63 -2
  120. package/dist/kernel/brepkit/helpers.d.ts +6 -1
  121. package/dist/kernel/brepkit/internalOps.d.ts +0 -1
  122. package/dist/kernel/brepkit/ioOps.d.ts +47 -9
  123. package/dist/kernel/brepkit/kernel2dOps.d.ts +113 -1
  124. package/dist/kernel/brepkit/measureOps.d.ts +39 -1
  125. package/dist/kernel/brepkit/meshOps.d.ts +7 -1
  126. package/dist/kernel/brepkit/modifierOps.d.ts +15 -1
  127. package/dist/kernel/brepkit/repairOps.d.ts +14 -1
  128. package/dist/kernel/brepkit/sketchOps.d.ts +3 -1
  129. package/dist/kernel/brepkit/sweepOps.d.ts +37 -1
  130. package/dist/kernel/brepkit/topologyOps.d.ts +16 -1
  131. package/dist/kernel/brepkit/transformOps.d.ts +18 -1
  132. package/dist/kernel/geometry2d.d.ts +0 -1
  133. package/dist/kernel/index.d.ts +0 -1
  134. package/dist/kernel/interfaces/booleanOps.d.ts +0 -1
  135. package/dist/kernel/interfaces/builderOps.d.ts +0 -1
  136. package/dist/kernel/interfaces/core.d.ts +0 -1
  137. package/dist/kernel/interfaces/curveOps.d.ts +0 -1
  138. package/dist/kernel/interfaces/evolutionOps.d.ts +0 -1
  139. package/dist/kernel/interfaces/index.d.ts +0 -1
  140. package/dist/kernel/interfaces/ioOps.d.ts +0 -1
  141. package/dist/kernel/interfaces/measureOps.d.ts +0 -1
  142. package/dist/kernel/interfaces/meshOps.d.ts +0 -1
  143. package/dist/kernel/interfaces/modifierOps.d.ts +0 -1
  144. package/dist/kernel/interfaces/primitiveOps.d.ts +0 -1
  145. package/dist/kernel/interfaces/repairOps.d.ts +0 -1
  146. package/dist/kernel/interfaces/surfaceOps.d.ts +0 -1
  147. package/dist/kernel/interfaces/sweepOps.d.ts +0 -1
  148. package/dist/kernel/interfaces/topologyOps.d.ts +0 -1
  149. package/dist/kernel/interfaces/transformOps.d.ts +0 -1
  150. package/dist/kernel/kernel2dTypes.d.ts +0 -1
  151. package/dist/kernel/occt/advancedOps.d.ts +126 -24
  152. package/dist/kernel/occt/booleanBatchOps.d.ts +0 -1
  153. package/dist/kernel/occt/booleanOps.d.ts +11 -1
  154. package/dist/kernel/occt/booleanPipelineOps.d.ts +10 -1
  155. package/dist/kernel/occt/constructorOps.d.ts +14 -1
  156. package/dist/kernel/occt/curveOps.d.ts +13 -1
  157. package/dist/kernel/occt/defaultAdapter.d.ts +10 -441
  158. package/dist/kernel/occt/evolutionOps.d.ts +0 -1
  159. package/dist/kernel/occt/extendedConstructorOps.d.ts +31 -1
  160. package/dist/kernel/occt/geometryQueryOps.d.ts +40 -1
  161. package/dist/kernel/occt/healingOps.d.ts +6 -1
  162. package/dist/kernel/occt/historyOps.d.ts +17 -1
  163. package/dist/kernel/occt/hullOps.d.ts +14 -1
  164. package/dist/kernel/occt/ioOps.d.ts +9 -1
  165. package/dist/kernel/occt/kernel2dOps.d.ts +113 -1
  166. package/dist/kernel/occt/measureOps.d.ts +19 -1
  167. package/dist/kernel/occt/meshOps.d.ts +5 -1
  168. package/dist/kernel/occt/modifierOps.d.ts +24 -1
  169. package/dist/kernel/occt/nurbsQueryOps.d.ts +5 -1
  170. package/dist/kernel/occt/sweepOps.d.ts +23 -1
  171. package/dist/kernel/occt/topologyOps.d.ts +10 -1
  172. package/dist/kernel/occt/transformOps.d.ts +14 -4
  173. package/dist/kernel/occt/wasmTypes/externals.d.ts +0 -1
  174. package/dist/kernel/occt/wasmTypes/index.d.ts +0 -1
  175. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +0 -1
  176. package/dist/kernel/occtWasm/adapterShims.d.ts +4 -0
  177. package/dist/kernel/occtWasm/booleanOps.d.ts +11 -0
  178. package/dist/kernel/occtWasm/constructionOps.d.ts +36 -0
  179. package/dist/kernel/occtWasm/curveOps.d.ts +23 -0
  180. package/dist/kernel/occtWasm/evolutionOps.d.ts +17 -0
  181. package/dist/kernel/occtWasm/helpers.d.ts +31 -0
  182. package/dist/kernel/occtWasm/hullOps.d.ts +12 -0
  183. package/dist/kernel/occtWasm/ioOps.d.ts +52 -0
  184. package/dist/kernel/occtWasm/kernel2dOps.d.ts +90 -0
  185. package/dist/kernel/occtWasm/measureOps.d.ts +31 -0
  186. package/dist/kernel/occtWasm/meshOps.d.ts +6 -0
  187. package/dist/kernel/occtWasm/modifierOps.d.ts +14 -0
  188. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  189. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +30 -31
  190. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  191. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +0 -1
  192. package/dist/kernel/occtWasm/primitiveOps.d.ts +10 -0
  193. package/dist/kernel/occtWasm/repairOps.d.ts +10 -0
  194. package/dist/kernel/occtWasm/surfaceOps.d.ts +28 -0
  195. package/dist/kernel/occtWasm/sweepOps.d.ts +38 -0
  196. package/dist/kernel/occtWasm/topologyOps.d.ts +14 -0
  197. package/dist/kernel/occtWasm/transformOps.d.ts +27 -0
  198. package/dist/kernel/perfStats.d.ts +0 -1
  199. package/dist/kernel/solverAdapter.d.ts +0 -1
  200. package/dist/kernel/types.d.ts +0 -1
  201. package/dist/{measureFns-C751QGI1.cjs → measureFns-6ifSQfJt.cjs} +6 -5
  202. package/dist/{measureFns-B8C85hbT.js → measureFns-Io2nHE1k.js} +4 -3
  203. package/dist/measurement/interferenceFns.d.ts +0 -1
  204. package/dist/measurement/measureCache.d.ts +0 -1
  205. package/dist/measurement/measureFns.d.ts +0 -1
  206. package/dist/measurement/measureTypes.d.ts +0 -1
  207. package/dist/measurement.cjs +1 -1
  208. package/dist/measurement.d.ts +0 -1
  209. package/dist/measurement.js +1 -1
  210. package/dist/{meshFns-Cdhtbrhm.cjs → meshFns-BCRVZgPi.cjs} +3 -3
  211. package/dist/{meshFns-BgvsA-xA.js → meshFns-DSdkRFWq.js} +3 -3
  212. package/dist/ns/booleans.d.ts +0 -1
  213. package/dist/ns/construction.d.ts +0 -1
  214. package/dist/ns/ioNs.d.ts +0 -1
  215. package/dist/ns/measurement.d.ts +0 -1
  216. package/dist/ns/modifiers.d.ts +0 -1
  217. package/dist/ns/patterns.d.ts +0 -1
  218. package/dist/ns/primitives.d.ts +0 -1
  219. package/dist/ns/query.d.ts +0 -1
  220. package/dist/ns/transforms.d.ts +0 -1
  221. package/dist/occtWasmAdapter--TZGP9DX.js +4606 -0
  222. package/dist/occtWasmAdapter-C2VW-uYg.cjs +4719 -0
  223. package/dist/operations/api.d.ts +0 -1
  224. package/dist/operations/assemblyFns.d.ts +0 -1
  225. package/dist/operations/compoundOpsFns.d.ts +0 -1
  226. package/dist/operations/convexHullFns.d.ts +0 -1
  227. package/dist/operations/exporterFns.d.ts +0 -1
  228. package/dist/operations/exporterUtils.d.ts +0 -1
  229. package/dist/operations/exporters.d.ts +0 -1
  230. package/dist/operations/extrudeFns.d.ts +0 -1
  231. package/dist/operations/extrudeUtils.d.ts +0 -1
  232. package/dist/operations/guidedSweepFns.d.ts +0 -1
  233. package/dist/operations/historyFns.d.ts +0 -1
  234. package/dist/operations/loftFns.d.ts +0 -1
  235. package/dist/operations/mateFns.d.ts +0 -1
  236. package/dist/operations/multiSweepFns.d.ts +0 -1
  237. package/dist/operations/patternFns.d.ts +0 -1
  238. package/dist/operations/roofFns.d.ts +0 -1
  239. package/dist/operations/straightSkeleton.d.ts +0 -1
  240. package/dist/operations/sweepFns.d.ts +0 -1
  241. package/dist/operations.cjs +2 -2
  242. package/dist/operations.d.ts +0 -1
  243. package/dist/operations.js +2 -2
  244. package/dist/{planeOps-sTrM3dcQ.js → planeOps-4i2qEraD.js} +4 -4
  245. package/dist/{planeOps-BJOIbn4K.cjs → planeOps-CH4ruLuj.cjs} +4 -4
  246. package/dist/{primitiveFns-BLxaJ40A.cjs → primitiveFns-BH-JQPzh.cjs} +20 -19
  247. package/dist/{primitiveFns-fR9sWOEb.js → primitiveFns-C1p92ZcD.js} +8 -7
  248. package/dist/projection/cameraFns.d.ts +0 -1
  249. package/dist/projection/makeProjectedEdges.d.ts +0 -1
  250. package/dist/projection/projectionPlanes.d.ts +0 -1
  251. package/dist/projection.cjs +9 -0
  252. package/dist/projection.d.ts +11 -0
  253. package/dist/projection.js +2 -0
  254. package/dist/query/cornerFinder.d.ts +0 -1
  255. package/dist/query/directionUtils.d.ts +0 -1
  256. package/dist/query/edgeFinder.d.ts +0 -1
  257. package/dist/query/faceFinder.d.ts +0 -1
  258. package/dist/query/finderCore.d.ts +0 -1
  259. package/dist/query/finderFns.d.ts +0 -1
  260. package/dist/query/helpers.d.ts +0 -1
  261. package/dist/query/shapeDistanceFilter.d.ts +0 -1
  262. package/dist/query/shapeFinders.d.ts +0 -1
  263. package/dist/query/vertexFinder.d.ts +0 -1
  264. package/dist/query/wireFinder.d.ts +0 -1
  265. package/dist/query.cjs +2 -2
  266. package/dist/query.d.ts +0 -1
  267. package/dist/query.js +2 -2
  268. package/dist/result.cjs +1 -1
  269. package/dist/result.d.ts +0 -1
  270. package/dist/result.js +1 -1
  271. package/dist/{shapeFns-183zCtMc.cjs → shapeFns-B7x82K11.cjs} +17 -17
  272. package/dist/{shapeFns-2X3VOi1a.js → shapeFns-BhZ9weSI.js} +4 -4
  273. package/dist/shapeRef.cjs +1 -1
  274. package/dist/shapeRef.d.ts +0 -1
  275. package/dist/shapeRef.js +1 -1
  276. package/dist/{shapeRefFns-CU1Jwq9C.js → shapeRefFns-B9PsEqWf.js} +6 -4
  277. package/dist/{shapeRefFns-CFyv5cdW.cjs → shapeRefFns-wDY88A8u.cjs} +8 -6
  278. package/dist/{shapeTypes-C0MDggKf.cjs → shapeTypes-BTt_LLbk.cjs} +6922 -7884
  279. package/dist/{shapeTypes-CN0GUoHr.js → shapeTypes-C--1jaT1.js} +6900 -7862
  280. package/dist/sketching/cannedSketches.d.ts +0 -1
  281. package/dist/sketching/compoundSketch.d.ts +8 -7
  282. package/dist/sketching/draw3d.d.ts +1 -2
  283. package/dist/sketching/drawFns.d.ts +4 -3
  284. package/dist/sketching/{draw.d.ts → drawing.d.ts} +2 -127
  285. package/dist/sketching/drawingFactories.d.ts +94 -0
  286. package/dist/sketching/drawingPen.d.ts +34 -0
  287. package/dist/sketching/faceSketcher.d.ts +52 -0
  288. package/dist/sketching/shortcuts.d.ts +0 -1
  289. package/dist/sketching/sketch.d.ts +64 -10
  290. package/dist/sketching/sketchFns.d.ts +42 -95
  291. package/dist/sketching/sketcher.d.ts +2 -3
  292. package/dist/sketching/sketches.d.ts +5 -6
  293. package/dist/sketching.cjs +19 -18
  294. package/dist/sketching.d.ts +8 -5
  295. package/dist/sketching.js +3 -2
  296. package/dist/{solidBuilders-DACzFqvX.cjs → solidBuilders-CX_197Xm.cjs} +3 -3
  297. package/dist/{solidBuilders-BuS5ByIl.js → solidBuilders-Xs7VDMGD.js} +3 -3
  298. package/dist/{surfaceBuilders-CbH4FIW5.cjs → surfaceBuilders-CYeTNW33.cjs} +25 -3
  299. package/dist/{surfaceBuilders-BVH2SL-z.js → surfaceBuilders-CinmHCbZ.js} +20 -4
  300. package/dist/text/fontRegistry.d.ts +22 -0
  301. package/dist/text/sketchText.d.ts +30 -0
  302. package/dist/text/textBlueprints.d.ts +0 -91
  303. package/dist/text/textMetrics.d.ts +39 -0
  304. package/dist/text.cjs +9 -0
  305. package/dist/text.d.ts +12 -0
  306. package/dist/text.js +3 -0
  307. package/dist/textBlueprints-Do6xNsLt.js +643 -0
  308. package/dist/textBlueprints-oWhiABaY.cjs +800 -0
  309. package/dist/textMetrics-BjJ8sn_e.js +69 -0
  310. package/dist/textMetrics-CUvtglQE.cjs +86 -0
  311. package/dist/topology/adjacencyFns.d.ts +0 -1
  312. package/dist/topology/api.d.ts +0 -1
  313. package/dist/topology/apiTypes.d.ts +0 -1
  314. package/dist/topology/booleanDiagnosticFns.d.ts +0 -1
  315. package/dist/topology/booleanFns.d.ts +0 -1
  316. package/dist/topology/cast.d.ts +0 -1
  317. package/dist/topology/chamferAngleFns.d.ts +0 -1
  318. package/dist/topology/compoundOpsFns.d.ts +0 -1
  319. package/dist/topology/curveBuilders.d.ts +12 -1
  320. package/dist/topology/curveFns.d.ts +0 -1
  321. package/dist/topology/evolutionFns.d.ts +0 -1
  322. package/dist/topology/faceFns.d.ts +0 -1
  323. package/dist/topology/healingFns.d.ts +0 -1
  324. package/dist/topology/hullFns.d.ts +0 -1
  325. package/dist/topology/index.d.ts +0 -1
  326. package/dist/topology/meshCache.d.ts +0 -1
  327. package/dist/topology/meshFns.d.ts +0 -1
  328. package/dist/topology/metadata/colorFns.d.ts +0 -1
  329. package/dist/topology/metadata/faceTagFns.d.ts +0 -1
  330. package/dist/topology/metadata/metadataPropagation.d.ts +0 -1
  331. package/dist/topology/metadata/originTrackingFns.d.ts +0 -1
  332. package/dist/topology/minkowskiFns.d.ts +0 -1
  333. package/dist/topology/modifierFns.d.ts +0 -1
  334. package/dist/topology/nurbsFns.d.ts +0 -1
  335. package/dist/topology/polyhedronFns.d.ts +0 -1
  336. package/dist/topology/positionFns.d.ts +0 -1
  337. package/dist/topology/primitiveFns.d.ts +0 -1
  338. package/dist/topology/shapeBooleans.d.ts +0 -1
  339. package/dist/topology/shapeFns.d.ts +0 -1
  340. package/dist/topology/shapeHelpers.d.ts +0 -1
  341. package/dist/topology/shapeModifiers.d.ts +0 -1
  342. package/dist/topology/shapeRef/index.d.ts +0 -1
  343. package/dist/topology/shapeRef/scoring.d.ts +0 -1
  344. package/dist/topology/shapeRef/shapeRefFns.d.ts +0 -1
  345. package/dist/topology/shapeRef/shapeRefTypes.d.ts +0 -1
  346. package/dist/topology/shapeUtils.d.ts +0 -1
  347. package/dist/topology/solidBuilders.d.ts +0 -1
  348. package/dist/topology/surfaceBuilders.d.ts +0 -1
  349. package/dist/topology/surfaceFns.d.ts +0 -1
  350. package/dist/topology/threeHelpers.d.ts +0 -1
  351. package/dist/topology/topologyQueryFns.d.ts +0 -1
  352. package/dist/topology/transformFns.d.ts +0 -1
  353. package/dist/topology/wrapperFns.d.ts +0 -1
  354. package/dist/topology.cjs +18 -17
  355. package/dist/topology.d.ts +0 -1
  356. package/dist/topology.js +7 -6
  357. package/dist/{faceFns-22idS-ht.cjs → topologyQueryFns-BU0qdNJP.cjs} +2 -342
  358. package/dist/{faceFns-NbWd8-iR.js → topologyQueryFns-Dhf85ZBK.js} +3 -217
  359. package/dist/utils/arrayAccess.d.ts +0 -1
  360. package/dist/utils/bug.d.ts +0 -1
  361. package/dist/utils/ioFilename.d.ts +0 -1
  362. package/dist/utils/precisionRound.d.ts +0 -1
  363. package/dist/utils/range.d.ts +0 -1
  364. package/dist/utils/uuid.d.ts +0 -1
  365. package/dist/utils/vec2d.d.ts +0 -1
  366. package/dist/utils/vec3.d.ts +8 -1
  367. package/dist/utils/zip.d.ts +0 -1
  368. package/dist/vec3-BRj3eI54.js +25 -0
  369. package/dist/vec3-S4Oh59IX.cjs +36 -0
  370. package/dist/vectors.cjs +4 -4
  371. package/dist/vectors.d.ts +0 -1
  372. package/dist/vectors.js +4 -4
  373. package/dist/worker/index.d.ts +0 -1
  374. package/dist/worker/protocol.d.ts +0 -1
  375. package/dist/worker/taskQueue.d.ts +0 -1
  376. package/dist/worker/workerClient.d.ts +0 -1
  377. package/dist/worker/workerHandler.d.ts +0 -1
  378. package/dist/worker.cjs +1 -1
  379. package/dist/worker.d.ts +0 -1
  380. package/dist/worker.js +1 -1
  381. package/package.json +35 -14
  382. package/dist/2d/blueprints/blueprint.d.ts.map +0 -1
  383. package/dist/2d/blueprints/blueprintApproximations.d.ts.map +0 -1
  384. package/dist/2d/blueprints/blueprintCustomCorners.d.ts.map +0 -1
  385. package/dist/2d/blueprints/blueprintFns.d.ts.map +0 -1
  386. package/dist/2d/blueprints/blueprintOffset.d.ts.map +0 -1
  387. package/dist/2d/blueprints/blueprints.d.ts.map +0 -1
  388. package/dist/2d/blueprints/boolean2D.d.ts.map +0 -1
  389. package/dist/2d/blueprints/booleanHelpers.d.ts.map +0 -1
  390. package/dist/2d/blueprints/booleanOperations.d.ts.map +0 -1
  391. package/dist/2d/blueprints/cannedBlueprints.d.ts.map +0 -1
  392. package/dist/2d/blueprints/compoundBlueprint.d.ts.map +0 -1
  393. package/dist/2d/blueprints/index.d.ts.map +0 -1
  394. package/dist/2d/blueprints/intersectionSegments.d.ts.map +0 -1
  395. package/dist/2d/blueprints/lib.d.ts.map +0 -1
  396. package/dist/2d/blueprints/segmentAssembly.d.ts.map +0 -1
  397. package/dist/2d/blueprints/svg.d.ts.map +0 -1
  398. package/dist/2d/curve2dGeometryFns.d.ts.map +0 -1
  399. package/dist/2d/curves.d.ts.map +0 -1
  400. package/dist/2d/lib/approximations.d.ts.map +0 -1
  401. package/dist/2d/lib/boundingBox2d.d.ts.map +0 -1
  402. package/dist/2d/lib/curve2D.d.ts.map +0 -1
  403. package/dist/2d/lib/curve2dFns.d.ts.map +0 -1
  404. package/dist/2d/lib/customCorners.d.ts.map +0 -1
  405. package/dist/2d/lib/definitions.d.ts.map +0 -1
  406. package/dist/2d/lib/index.d.ts.map +0 -1
  407. package/dist/2d/lib/intersections.d.ts.map +0 -1
  408. package/dist/2d/lib/makeCurves.d.ts.map +0 -1
  409. package/dist/2d/lib/offset.d.ts.map +0 -1
  410. package/dist/2d/lib/precision.d.ts.map +0 -1
  411. package/dist/2d/lib/stitching.d.ts.map +0 -1
  412. package/dist/2d/lib/svgPath.d.ts.map +0 -1
  413. package/dist/2d/lib/utils.d.ts.map +0 -1
  414. package/dist/2d/lib/vectorOperations.d.ts.map +0 -1
  415. package/dist/2d.d.ts.map +0 -1
  416. package/dist/core/constants.d.ts.map +0 -1
  417. package/dist/core/curve2dHandle.d.ts.map +0 -1
  418. package/dist/core/dimensionTypes.d.ts.map +0 -1
  419. package/dist/core/disposal.d.ts.map +0 -1
  420. package/dist/core/errors.d.ts.map +0 -1
  421. package/dist/core/kernelBoundary.d.ts.map +0 -1
  422. package/dist/core/kernelCall.d.ts.map +0 -1
  423. package/dist/core/kernelErrorTranslation.d.ts.map +0 -1
  424. package/dist/core/planeOps.d.ts.map +0 -1
  425. package/dist/core/planeTypes.d.ts.map +0 -1
  426. package/dist/core/result.d.ts.map +0 -1
  427. package/dist/core/shapeTypeCache.d.ts.map +0 -1
  428. package/dist/core/shapeTypes.d.ts.map +0 -1
  429. package/dist/core/typeDiscriminants.d.ts.map +0 -1
  430. package/dist/core/types.d.ts.map +0 -1
  431. package/dist/core/validityTypes.d.ts.map +0 -1
  432. package/dist/core/vecOps.d.ts.map +0 -1
  433. package/dist/core.d.ts.map +0 -1
  434. package/dist/index.d.ts.map +0 -1
  435. package/dist/io/dxfExportFns.d.ts.map +0 -1
  436. package/dist/io/dxfImportFns.d.ts.map +0 -1
  437. package/dist/io/gltfExportFns.d.ts.map +0 -1
  438. package/dist/io/gltfImportFns.d.ts.map +0 -1
  439. package/dist/io/importFns.d.ts.map +0 -1
  440. package/dist/io/ioUtils.d.ts.map +0 -1
  441. package/dist/io/objExportFns.d.ts.map +0 -1
  442. package/dist/io/objImportFns.d.ts.map +0 -1
  443. package/dist/io/stepConfigFns.d.ts.map +0 -1
  444. package/dist/io/svgImportFns.d.ts.map +0 -1
  445. package/dist/io/threemfExportFns.d.ts.map +0 -1
  446. package/dist/io/threemfImportFns.d.ts.map +0 -1
  447. package/dist/io.d.ts.map +0 -1
  448. package/dist/kernel/brepkit/booleanOps.d.ts.map +0 -1
  449. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +0 -1
  450. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts.map +0 -1
  451. package/dist/kernel/brepkit/constructionOps.d.ts.map +0 -1
  452. package/dist/kernel/brepkit/evolutionOps.d.ts.map +0 -1
  453. package/dist/kernel/brepkit/geometryOps.d.ts.map +0 -1
  454. package/dist/kernel/brepkit/helpers.d.ts.map +0 -1
  455. package/dist/kernel/brepkit/internalOps.d.ts.map +0 -1
  456. package/dist/kernel/brepkit/ioOps.d.ts.map +0 -1
  457. package/dist/kernel/brepkit/kernel2dOps.d.ts.map +0 -1
  458. package/dist/kernel/brepkit/measureOps.d.ts.map +0 -1
  459. package/dist/kernel/brepkit/meshOps.d.ts.map +0 -1
  460. package/dist/kernel/brepkit/modifierOps.d.ts.map +0 -1
  461. package/dist/kernel/brepkit/repairOps.d.ts.map +0 -1
  462. package/dist/kernel/brepkit/sketchOps.d.ts.map +0 -1
  463. package/dist/kernel/brepkit/sweepOps.d.ts.map +0 -1
  464. package/dist/kernel/brepkit/topologyOps.d.ts.map +0 -1
  465. package/dist/kernel/brepkit/transformOps.d.ts.map +0 -1
  466. package/dist/kernel/geometry2d.d.ts.map +0 -1
  467. package/dist/kernel/index.d.ts.map +0 -1
  468. package/dist/kernel/interfaces/booleanOps.d.ts.map +0 -1
  469. package/dist/kernel/interfaces/builderOps.d.ts.map +0 -1
  470. package/dist/kernel/interfaces/core.d.ts.map +0 -1
  471. package/dist/kernel/interfaces/curveOps.d.ts.map +0 -1
  472. package/dist/kernel/interfaces/evolutionOps.d.ts.map +0 -1
  473. package/dist/kernel/interfaces/index.d.ts.map +0 -1
  474. package/dist/kernel/interfaces/ioOps.d.ts.map +0 -1
  475. package/dist/kernel/interfaces/measureOps.d.ts.map +0 -1
  476. package/dist/kernel/interfaces/meshOps.d.ts.map +0 -1
  477. package/dist/kernel/interfaces/modifierOps.d.ts.map +0 -1
  478. package/dist/kernel/interfaces/primitiveOps.d.ts.map +0 -1
  479. package/dist/kernel/interfaces/repairOps.d.ts.map +0 -1
  480. package/dist/kernel/interfaces/surfaceOps.d.ts.map +0 -1
  481. package/dist/kernel/interfaces/sweepOps.d.ts.map +0 -1
  482. package/dist/kernel/interfaces/topologyOps.d.ts.map +0 -1
  483. package/dist/kernel/interfaces/transformOps.d.ts.map +0 -1
  484. package/dist/kernel/kernel2dTypes.d.ts.map +0 -1
  485. package/dist/kernel/occt/advancedOps.d.ts.map +0 -1
  486. package/dist/kernel/occt/booleanBatchOps.d.ts.map +0 -1
  487. package/dist/kernel/occt/booleanOps.d.ts.map +0 -1
  488. package/dist/kernel/occt/booleanPipelineOps.d.ts.map +0 -1
  489. package/dist/kernel/occt/constructorOps.d.ts.map +0 -1
  490. package/dist/kernel/occt/curveOps.d.ts.map +0 -1
  491. package/dist/kernel/occt/defaultAdapter.d.ts.map +0 -1
  492. package/dist/kernel/occt/evolutionOps.d.ts.map +0 -1
  493. package/dist/kernel/occt/extendedConstructorOps.d.ts.map +0 -1
  494. package/dist/kernel/occt/geometryQueryOps.d.ts.map +0 -1
  495. package/dist/kernel/occt/healingOps.d.ts.map +0 -1
  496. package/dist/kernel/occt/historyOps.d.ts.map +0 -1
  497. package/dist/kernel/occt/hullOps.d.ts.map +0 -1
  498. package/dist/kernel/occt/ioOps.d.ts.map +0 -1
  499. package/dist/kernel/occt/kernel2dOps.d.ts.map +0 -1
  500. package/dist/kernel/occt/measureOps.d.ts.map +0 -1
  501. package/dist/kernel/occt/meshOps.d.ts.map +0 -1
  502. package/dist/kernel/occt/modifierOps.d.ts.map +0 -1
  503. package/dist/kernel/occt/nurbsQueryOps.d.ts.map +0 -1
  504. package/dist/kernel/occt/sweepOps.d.ts.map +0 -1
  505. package/dist/kernel/occt/topologyOps.d.ts.map +0 -1
  506. package/dist/kernel/occt/transformOps.d.ts.map +0 -1
  507. package/dist/kernel/occt/wasmTypes/externals.d.ts.map +0 -1
  508. package/dist/kernel/occt/wasmTypes/index.d.ts.map +0 -1
  509. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +0 -1
  510. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +0 -1
  511. package/dist/kernel/occtWasm/occtWasmTypes.d.ts.map +0 -1
  512. package/dist/kernel/perfStats.d.ts.map +0 -1
  513. package/dist/kernel/solverAdapter.d.ts.map +0 -1
  514. package/dist/kernel/types.d.ts.map +0 -1
  515. package/dist/measurement/interferenceFns.d.ts.map +0 -1
  516. package/dist/measurement/measureCache.d.ts.map +0 -1
  517. package/dist/measurement/measureFns.d.ts.map +0 -1
  518. package/dist/measurement/measureTypes.d.ts.map +0 -1
  519. package/dist/measurement.d.ts.map +0 -1
  520. package/dist/ns/booleans.d.ts.map +0 -1
  521. package/dist/ns/construction.d.ts.map +0 -1
  522. package/dist/ns/ioNs.d.ts.map +0 -1
  523. package/dist/ns/measurement.d.ts.map +0 -1
  524. package/dist/ns/modifiers.d.ts.map +0 -1
  525. package/dist/ns/patterns.d.ts.map +0 -1
  526. package/dist/ns/primitives.d.ts.map +0 -1
  527. package/dist/ns/query.d.ts.map +0 -1
  528. package/dist/ns/transforms.d.ts.map +0 -1
  529. package/dist/occtWasmAdapter-CuZRRioz.cjs +0 -3947
  530. package/dist/occtWasmAdapter-DIhUXubY.js +0 -3834
  531. package/dist/operations/api.d.ts.map +0 -1
  532. package/dist/operations/assemblyFns.d.ts.map +0 -1
  533. package/dist/operations/compoundOpsFns.d.ts.map +0 -1
  534. package/dist/operations/convexHullFns.d.ts.map +0 -1
  535. package/dist/operations/exporterFns.d.ts.map +0 -1
  536. package/dist/operations/exporterUtils.d.ts.map +0 -1
  537. package/dist/operations/exporters.d.ts.map +0 -1
  538. package/dist/operations/extrudeFns.d.ts.map +0 -1
  539. package/dist/operations/extrudeUtils.d.ts.map +0 -1
  540. package/dist/operations/guidedSweepFns.d.ts.map +0 -1
  541. package/dist/operations/historyFns.d.ts.map +0 -1
  542. package/dist/operations/loftFns.d.ts.map +0 -1
  543. package/dist/operations/mateFns.d.ts.map +0 -1
  544. package/dist/operations/multiSweepFns.d.ts.map +0 -1
  545. package/dist/operations/patternFns.d.ts.map +0 -1
  546. package/dist/operations/roofFns.d.ts.map +0 -1
  547. package/dist/operations/straightSkeleton.d.ts.map +0 -1
  548. package/dist/operations/sweepFns.d.ts.map +0 -1
  549. package/dist/operations.d.ts.map +0 -1
  550. package/dist/projection/cameraFns.d.ts.map +0 -1
  551. package/dist/projection/makeProjectedEdges.d.ts.map +0 -1
  552. package/dist/projection/projectionPlanes.d.ts.map +0 -1
  553. package/dist/query/cornerFinder.d.ts.map +0 -1
  554. package/dist/query/directionUtils.d.ts.map +0 -1
  555. package/dist/query/edgeFinder.d.ts.map +0 -1
  556. package/dist/query/faceFinder.d.ts.map +0 -1
  557. package/dist/query/finderCore.d.ts.map +0 -1
  558. package/dist/query/finderFns.d.ts.map +0 -1
  559. package/dist/query/helpers.d.ts.map +0 -1
  560. package/dist/query/shapeDistanceFilter.d.ts.map +0 -1
  561. package/dist/query/shapeFinders.d.ts.map +0 -1
  562. package/dist/query/vertexFinder.d.ts.map +0 -1
  563. package/dist/query/wireFinder.d.ts.map +0 -1
  564. package/dist/query.d.ts.map +0 -1
  565. package/dist/quick.d.ts.map +0 -1
  566. package/dist/result.d.ts.map +0 -1
  567. package/dist/shapeRef.d.ts.map +0 -1
  568. package/dist/sketching/cannedSketches.d.ts.map +0 -1
  569. package/dist/sketching/compoundSketch.d.ts.map +0 -1
  570. package/dist/sketching/draw.d.ts.map +0 -1
  571. package/dist/sketching/draw3d.d.ts.map +0 -1
  572. package/dist/sketching/drawFns.d.ts.map +0 -1
  573. package/dist/sketching/ellipseUtils.d.ts.map +0 -1
  574. package/dist/sketching/shortcuts.d.ts.map +0 -1
  575. package/dist/sketching/sketch.d.ts.map +0 -1
  576. package/dist/sketching/sketchFns.d.ts.map +0 -1
  577. package/dist/sketching/sketchLib.d.ts +0 -47
  578. package/dist/sketching/sketchLib.d.ts.map +0 -1
  579. package/dist/sketching/sketchUtils.d.ts +0 -8
  580. package/dist/sketching/sketchUtils.d.ts.map +0 -1
  581. package/dist/sketching/sketcher.d.ts.map +0 -1
  582. package/dist/sketching/sketcher2d.d.ts.map +0 -1
  583. package/dist/sketching/sketcherlib.d.ts.map +0 -1
  584. package/dist/sketching/sketches.d.ts.map +0 -1
  585. package/dist/sketching.d.ts.map +0 -1
  586. package/dist/text/textBlueprints.d.ts.map +0 -1
  587. package/dist/topology/adjacencyFns.d.ts.map +0 -1
  588. package/dist/topology/api.d.ts.map +0 -1
  589. package/dist/topology/apiTypes.d.ts.map +0 -1
  590. package/dist/topology/booleanDiagnosticFns.d.ts.map +0 -1
  591. package/dist/topology/booleanFns.d.ts.map +0 -1
  592. package/dist/topology/cast.d.ts.map +0 -1
  593. package/dist/topology/chamferAngleFns.d.ts.map +0 -1
  594. package/dist/topology/compoundOpsFns.d.ts.map +0 -1
  595. package/dist/topology/curveBuilders.d.ts.map +0 -1
  596. package/dist/topology/curveFns.d.ts.map +0 -1
  597. package/dist/topology/evolutionFns.d.ts.map +0 -1
  598. package/dist/topology/faceFns.d.ts.map +0 -1
  599. package/dist/topology/healingFns.d.ts.map +0 -1
  600. package/dist/topology/hullFns.d.ts.map +0 -1
  601. package/dist/topology/index.d.ts.map +0 -1
  602. package/dist/topology/meshCache.d.ts.map +0 -1
  603. package/dist/topology/meshFns.d.ts.map +0 -1
  604. package/dist/topology/metadata/colorFns.d.ts.map +0 -1
  605. package/dist/topology/metadata/faceTagFns.d.ts.map +0 -1
  606. package/dist/topology/metadata/metadataPropagation.d.ts.map +0 -1
  607. package/dist/topology/metadata/originTrackingFns.d.ts.map +0 -1
  608. package/dist/topology/minkowskiFns.d.ts.map +0 -1
  609. package/dist/topology/modifierFns.d.ts.map +0 -1
  610. package/dist/topology/nurbsFns.d.ts.map +0 -1
  611. package/dist/topology/polyhedronFns.d.ts.map +0 -1
  612. package/dist/topology/positionFns.d.ts.map +0 -1
  613. package/dist/topology/primitiveFns.d.ts.map +0 -1
  614. package/dist/topology/shapeBooleans.d.ts.map +0 -1
  615. package/dist/topology/shapeFns.d.ts.map +0 -1
  616. package/dist/topology/shapeHelpers.d.ts.map +0 -1
  617. package/dist/topology/shapeModifiers.d.ts.map +0 -1
  618. package/dist/topology/shapeRef/index.d.ts.map +0 -1
  619. package/dist/topology/shapeRef/scoring.d.ts.map +0 -1
  620. package/dist/topology/shapeRef/shapeRefFns.d.ts.map +0 -1
  621. package/dist/topology/shapeRef/shapeRefTypes.d.ts.map +0 -1
  622. package/dist/topology/shapeUtils.d.ts.map +0 -1
  623. package/dist/topology/solidBuilders.d.ts.map +0 -1
  624. package/dist/topology/surfaceBuilders.d.ts.map +0 -1
  625. package/dist/topology/surfaceFns.d.ts.map +0 -1
  626. package/dist/topology/threeHelpers.d.ts.map +0 -1
  627. package/dist/topology/topologyQueryFns.d.ts.map +0 -1
  628. package/dist/topology/transformFns.d.ts.map +0 -1
  629. package/dist/topology/wrapperFns.d.ts.map +0 -1
  630. package/dist/topology.d.ts.map +0 -1
  631. package/dist/utils/arrayAccess.d.ts.map +0 -1
  632. package/dist/utils/bug.d.ts.map +0 -1
  633. package/dist/utils/ioFilename.d.ts.map +0 -1
  634. package/dist/utils/precisionRound.d.ts.map +0 -1
  635. package/dist/utils/range.d.ts.map +0 -1
  636. package/dist/utils/uuid.d.ts.map +0 -1
  637. package/dist/utils/vec2d.d.ts.map +0 -1
  638. package/dist/utils/vec3.d.ts.map +0 -1
  639. package/dist/utils/zip.d.ts.map +0 -1
  640. package/dist/vectors.d.ts.map +0 -1
  641. package/dist/worker/index.d.ts.map +0 -1
  642. package/dist/worker/protocol.d.ts.map +0 -1
  643. package/dist/worker/taskQueue.d.ts.map +0 -1
  644. package/dist/worker/workerClient.d.ts.map +0 -1
  645. package/dist/worker/workerHandler.d.ts.map +0 -1
  646. package/dist/worker.d.ts.map +0 -1
  647. /package/dist/{arrayAccess-DsnQpdSD.cjs → arrayAccess-7pTWqkJu.cjs} +0 -0
  648. /package/dist/{arrayAccess-tCIbjLs5.js → arrayAccess-C5IWcxs9.js} +0 -0
  649. /package/dist/{constants-csSEYddm.js → constants-Ci5CA3aZ.js} +0 -0
  650. /package/dist/{constants-BNP_xnBN.cjs → constants-DTorLmes.cjs} +0 -0
  651. /package/dist/{types--GD-LVc6.js → types-BIdk_GJY.js} +0 -0
  652. /package/dist/{types-gLi9wL0N.cjs → types-CDkxah-M.cjs} +0 -0
  653. /package/dist/{vecOps-CODplJp3.cjs → vecOps-D7xplSx8.cjs} +0 -0
  654. /package/dist/{vecOps-B-PCHgyB.js → vecOps-DVROrqTV.js} +0 -0
  655. /package/dist/{workerHandler-C-3cFcsQ.cjs → workerHandler-C7seK7H-.cjs} +0 -0
  656. /package/dist/{workerHandler-Dm0_0F8Z.js → workerHandler-DaulgMax.js} +0 -0
@@ -1,127 +1,74 @@
1
- import { PointInput } from '../core/types.js';
2
- import { OrientedFace, Shape3D, Wire } from '../core/shapeTypes.js';
3
- import { PlanarFace } from '../core/validityTypes.js';
1
+ import { Plane } from '../core/planeTypes.js';
2
+ import { Vec3, PointInput } from '../core/types.js';
4
3
  import { ExtrusionProfile, SweepOptions } from '../operations/extrudeUtils.js';
5
4
  import { LoftOptions } from '../operations/loftFns.js';
5
+ import { OrientedFace, Shape3D, Wire } from '../core/shapeTypes.js';
6
+ import { PlanarFace } from '../core/validityTypes.js';
7
+ import { SketchData } from '../2d/blueprints/lib.js';
6
8
  import { default as Sketch } from './sketch.js';
7
9
  import { default as CompoundSketch } from './compoundSketch.js';
10
+ /** Wrap SketchData into a Sketch instance. */
11
+ export declare function wrapSketchData(data: SketchData): Sketch;
12
+ /** Wrap an array of SketchData into a CompoundSketch. */
13
+ export declare function wrapSketchDataArray(dataArr: SketchData[]): CompoundSketch;
14
+ /** Build a face from a sketch's closed planar wire. */
15
+ export declare function sketchFace(sketch: Sketch): OrientedFace & PlanarFace;
16
+ /** Return an independent clone of the sketch's wire. */
17
+ export declare function sketchWires(sketch: Sketch): Wire;
8
18
  /**
9
- * Extrude a sketch to a given distance along its default (or overridden) direction.
10
- *
11
- * @param sketch - The sketch to extrude. Consumed (deleted) by this call.
12
- * @param height - Extrusion distance.
13
- * @param config - Optional direction, profile, twist angle, or origin overrides.
14
- * @returns The extruded 3D solid.
19
+ * Revolve a sketch around an axis to produce a solid of revolution.
15
20
  *
16
- * @see {@link Sketch.extrude} for the OOP equivalent.
21
+ * @remarks Consumes the sketch — calling twice throws on the second call.
17
22
  */
18
- export declare function sketchExtrude(sketch: Sketch, height: number, config?: {
19
- extrusionDirection?: PointInput;
20
- extrusionProfile?: ExtrusionProfile;
21
- twistAngle?: number;
23
+ export declare function sketchRevolve(sketch: Sketch, revolutionAxis?: PointInput, { origin }?: {
22
24
  origin?: PointInput;
23
25
  }): Shape3D;
24
26
  /**
25
- * Revolve a sketch around an axis to produce a solid of revolution.
27
+ * Extrude a sketch to a given distance.
26
28
  *
27
- * @param sketch - The sketch to revolve. Consumed (deleted) by this call.
28
- * @param revolutionAxis - Axis direction (defaults to sketch default direction).
29
- * @param options - Optional origin override.
30
- * @returns The revolved 3D solid.
29
+ * Supports profile (taper) extrusion via `extrusionProfile`, twist extrusion
30
+ * via `twistAngle`, and direction/origin overrides.
31
31
  *
32
- * @see {@link Sketch.revolve} for the OOP equivalent.
32
+ * @remarks Consumes the sketch — calling twice throws on the second call.
33
33
  */
34
- export declare function sketchRevolve(sketch: Sketch, revolutionAxis?: PointInput, options?: {
34
+ export declare function sketchExtrude(sketch: Sketch, extrusionDistance: number, { extrusionDirection, extrusionProfile, twistAngle, origin, }?: {
35
+ extrusionDirection?: PointInput;
36
+ extrusionProfile?: ExtrusionProfile;
37
+ twistAngle?: number;
35
38
  origin?: PointInput;
36
39
  }): Shape3D;
37
40
  /**
38
- * Loft between this sketch and one or more other sketches.
39
- *
40
- * @param sketch - The starting sketch. Consumed by this call.
41
- * @param otherSketches - Target sketch(es) to loft toward.
42
- * @param loftConfig - Loft options (ruled surface, start/end points, etc.).
43
- * @param returnShell - If true, return a shell instead of a solid.
44
- * @returns The lofted 3D shape.
45
- *
46
- * @see {@link Sketch.loftWith} for the OOP equivalent.
47
- */
48
- export declare function sketchLoft(sketch: Sketch, otherSketches: Sketch | Sketch[], loftConfig?: LoftOptions, returnShell?: boolean): Shape3D;
49
- /**
50
- * Sweep a profile sketch along this sketch's wire path.
51
- *
52
- * @param sketch - The path sketch. Consumed by this call.
53
- * @param sketchOnPlane - Function that builds the profile sketch at the sweep start.
54
- * @param sweepConfig - Sweep options (auxiliary spine, orthogonality, etc.).
55
- * @returns The swept 3D shape.
56
- *
57
- * @see {@link Sketch.sweepSketch} for the OOP equivalent.
58
- */
59
- export declare function sketchSweep(sketch: Sketch, sketchOnPlane: Parameters<Sketch['sweepSketch']>[0], sweepConfig?: SweepOptions): Shape3D;
60
- /**
61
- * Build a face from a sketch's closed wire.
62
- *
63
- * @param sketch - A sketch with a closed wire.
64
- * @returns The planar face.
41
+ * Sweep a profile sketch (built by `sketchOnPlane`) along this sketch's wire path.
65
42
  *
66
- * @see {@link Sketch.face} for the OOP equivalent.
43
+ * @remarks Consumes both this sketch and the one returned by `sketchOnPlane` —
44
+ * calling either twice throws on the second call.
67
45
  */
68
- export declare function sketchFace(sketch: Sketch): OrientedFace & PlanarFace;
46
+ export declare function sketchSweep(sketch: Sketch, sketchOnPlane: (plane: Plane, origin: Vec3) => Sketch, sweepConfig?: SweepOptions): Shape3D;
69
47
  /**
70
- * Get a clone of the wire from a sketch.
71
- *
72
- * @param sketch - The source sketch.
73
- * @returns A cloned wire.
48
+ * Loft between this sketch and one or more other sketches.
74
49
  *
75
- * @see {@link Sketch.wires} for the OOP equivalent.
50
+ * @remarks Consumes all input sketches — calling twice throws on the second call.
76
51
  */
77
- export declare function sketchWires(sketch: Sketch): Wire;
52
+ export declare function sketchLoft(sketch: Sketch, otherSketches: Sketch | Sketch[], loftConfig?: LoftOptions, returnShell?: boolean): Shape3D;
53
+ /** Build a face from a compound sketch (outer boundary with holes). */
54
+ export declare function compoundSketchFace(sketch: CompoundSketch): OrientedFace & PlanarFace;
55
+ /** Return all wires (outer + holes) combined into a compound shape. */
56
+ export declare function compoundSketchWires(sketch: CompoundSketch): import('../core/shapeTypes.js').Compound;
78
57
  /**
79
- * Extrude a compound sketch (outer + holes) to a given distance.
58
+ * Extrude a compound sketch (outer + holes) along the default or given direction.
80
59
  *
81
- * @param sketch - The compound sketch to extrude.
82
- * @param height - Extrusion distance.
83
- * @param config - Optional direction, profile, twist angle, or origin overrides.
84
- * @returns The extruded 3D solid.
85
- *
86
- * @see {@link CompoundSketch.extrude} for the OOP equivalent.
60
+ * Supports twist and profile extrusions. For twist/profile modes each
61
+ * sub-sketch is extruded as a shell, then capped into a solid.
87
62
  */
88
- export declare function compoundSketchExtrude(sketch: CompoundSketch, height: number, config?: {
63
+ export declare function compoundSketchExtrude(sketch: CompoundSketch, extrusionDistance: number, { extrusionDirection, extrusionProfile, twistAngle, origin, }?: {
89
64
  extrusionDirection?: PointInput;
90
65
  extrusionProfile?: ExtrusionProfile;
91
66
  twistAngle?: number;
92
67
  origin?: PointInput;
93
68
  }): Shape3D;
94
- /**
95
- * Revolve a compound sketch around an axis to produce a solid of revolution.
96
- *
97
- * @param sketch - The compound sketch to revolve.
98
- * @param revolutionAxis - Axis direction.
99
- * @param options - Optional origin override.
100
- * @returns The revolved 3D solid.
101
- *
102
- * @see {@link CompoundSketch.revolve} for the OOP equivalent.
103
- */
104
- export declare function compoundSketchRevolve(sketch: CompoundSketch, revolutionAxis?: PointInput, options?: {
69
+ /** Revolve a compound sketch (outer + holes) around an axis. */
70
+ export declare function compoundSketchRevolve(sketch: CompoundSketch, revolutionAxis?: PointInput, { origin }?: {
105
71
  origin?: PointInput;
106
72
  }): Shape3D;
107
- /**
108
- * Build a face from a compound sketch (outer boundary with holes).
109
- *
110
- * @param sketch - The compound sketch.
111
- * @returns A face with inner wires subtracted as holes.
112
- *
113
- * @see {@link CompoundSketch.face} for the OOP equivalent.
114
- */
115
- export declare function compoundSketchFace(sketch: CompoundSketch): OrientedFace & PlanarFace;
116
- /**
117
- * Loft between two compound sketches that have the same number of sub-sketches.
118
- *
119
- * @param sketch - Starting compound sketch.
120
- * @param other - Target compound sketch.
121
- * @param loftConfig - Loft options (ruled surface, etc.).
122
- * @returns The lofted 3D solid.
123
- *
124
- * @see {@link CompoundSketch.loftWith} for the OOP equivalent.
125
- */
73
+ /** Loft between two compound sketches with matching sub-sketch counts. */
126
74
  export declare function compoundSketchLoft(sketch: CompoundSketch, other: CompoundSketch, loftConfig: LoftOptions): Shape3D;
127
- //# sourceMappingURL=sketchFns.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { Plane, PlaneName } from '../core/planeTypes.js';
2
2
  import { Point2D, Curve2D } from '../2d/lib/index.js';
3
- import { GenericSketcher } from './sketcherlib.js';
3
+ import { GenericSketcher } from '../2d/blueprints/genericSketcher.js';
4
4
  import { Wire } from '../core/shapeTypes.js';
5
5
  import { PointInput } from '../core/types.js';
6
6
  import { default as Sketch } from './sketch.js';
7
- import { BaseSketcher2d } from './sketcher2d.js';
7
+ import { BaseSketcher2d } from '../2d/blueprints/baseSketcher2d.js';
8
8
  /**
9
9
  * Build 2D wire profiles on a 3D plane using a builder-pen API.
10
10
  *
@@ -66,4 +66,3 @@ export default class Sketcher extends BaseSketcher2d implements GenericSketcher<
66
66
  */
67
67
  closeWithCustomCorner(radius: number | ((f: Curve2D, s: Curve2D) => Curve2D[]), mode?: 'fillet' | 'chamfer' | 'dogbone'): Sketch;
68
68
  }
69
- //# sourceMappingURL=sketcher.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { PointInput } from '../core/types.js';
2
2
  import { ExtrusionProfile } from '../operations/extrudeUtils.js';
3
- import { AnyShape } from '../core/shapeTypes.js';
3
+ import { Compound } from '../core/shapeTypes.js';
4
4
  import { default as CompoundSketch } from './compoundSketch.js';
5
5
  import { default as Sketch } from './sketch.js';
6
6
  /**
@@ -15,9 +15,9 @@ export default class Sketches {
15
15
  sketches: Array<Sketch | CompoundSketch>;
16
16
  constructor(sketches: Array<Sketch | CompoundSketch>);
17
17
  /** Return all wires combined into a single compound shape. */
18
- wires(): AnyShape;
18
+ wires(): Compound;
19
19
  /** Return all sketch faces combined into a single compound shape. */
20
- faces(): AnyShape;
20
+ faces(): Compound;
21
21
  /** Extrudes the sketch to a certain distance (along the default direction
22
22
  * and origin of the sketch).
23
23
  *
@@ -33,13 +33,12 @@ export default class Sketches {
33
33
  extrusionProfile?: ExtrusionProfile;
34
34
  twistAngle?: number;
35
35
  origin?: PointInput;
36
- }): AnyShape;
36
+ }): Compound;
37
37
  /**
38
38
  * Revolves the drawing on an axis (defined by its direction and an origin
39
39
  * (defaults to the sketch origin)
40
40
  */
41
41
  revolve(revolutionAxis?: PointInput, config?: {
42
42
  origin?: PointInput;
43
- }): AnyShape;
43
+ }): Compound;
44
44
  }
45
- //# sourceMappingURL=sketches.d.ts.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-DmP2o1oF.cjs");
3
- const require_boolean2D = require("./boolean2D-k1AJmCMp.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-oWhiABaY.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-Bei866Bt.cjs");
4
+ const require_drawFns = require("./drawFns-LlOZoFyp.cjs");
4
5
  //#region src/sketching.ts
5
6
  /**
6
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -11,19 +12,19 @@ const require_boolean2D = require("./boolean2D-k1AJmCMp.cjs");
11
12
  * ```
12
13
  */
13
14
  //#endregion
14
- exports.BaseSketcher2d = require_boolean2D.BaseSketcher2d;
15
- exports.BlueprintSketcher = require_boolean2D.BlueprintSketcher;
16
- exports.CompoundSketch = require_drawFns.CompoundSketch;
15
+ exports.BaseSketcher2d = require_blueprintSketcher.BaseSketcher2d;
16
+ exports.BlueprintSketcher = require_blueprintSketcher.BlueprintSketcher;
17
+ exports.CompoundSketch = require_textBlueprints.CompoundSketch;
17
18
  exports.Drawing = require_drawFns.Drawing;
18
19
  exports.DrawingPen = require_drawFns.DrawingPen;
19
- exports.FaceSketcher = require_boolean2D.FaceSketcher;
20
- exports.Sketch = require_boolean2D.Sketch;
20
+ exports.FaceSketcher = require_drawFns.FaceSketcher;
21
+ exports.Sketch = require_textBlueprints.Sketch;
21
22
  exports.Sketcher = require_drawFns.Sketcher;
22
- exports.Sketches = require_drawFns.Sketches;
23
- exports.compoundSketchExtrude = require_drawFns.compoundSketchExtrude;
24
- exports.compoundSketchFace = require_drawFns.compoundSketchFace;
25
- exports.compoundSketchLoft = require_drawFns.compoundSketchLoft;
26
- exports.compoundSketchRevolve = require_drawFns.compoundSketchRevolve;
23
+ exports.Sketches = require_textBlueprints.Sketches;
24
+ exports.compoundSketchExtrude = require_textBlueprints.compoundSketchExtrude;
25
+ exports.compoundSketchFace = require_textBlueprints.compoundSketchFace;
26
+ exports.compoundSketchLoft = require_textBlueprints.compoundSketchLoft;
27
+ exports.compoundSketchRevolve = require_textBlueprints.compoundSketchRevolve;
27
28
  exports.deserializeDrawing = require_drawFns.deserializeDrawing;
28
29
  exports.draw = require_drawFns.draw;
29
30
  exports.drawCircle = require_drawFns.drawCircle;
@@ -51,16 +52,16 @@ exports.rotateDrawing = require_drawFns.rotateDrawing;
51
52
  exports.scaleDrawing = require_drawFns.scaleDrawing;
52
53
  exports.sketchCircle = require_drawFns.sketchCircle;
53
54
  exports.sketchEllipse = require_drawFns.sketchEllipse;
54
- exports.sketchExtrude = require_drawFns.sketchExtrude;
55
- exports.sketchFace = require_drawFns.sketchFace;
55
+ exports.sketchExtrude = require_textBlueprints.sketchExtrude;
56
+ exports.sketchFace = require_textBlueprints.sketchFace;
56
57
  exports.sketchFaceOffset = require_drawFns.sketchFaceOffset;
57
58
  exports.sketchHelix = require_drawFns.sketchHelix;
58
- exports.sketchLoft = require_drawFns.sketchLoft;
59
+ exports.sketchLoft = require_textBlueprints.sketchLoft;
59
60
  exports.sketchParametricFunction = require_drawFns.sketchParametricFunction;
60
61
  exports.sketchPolysides = require_drawFns.sketchPolysides;
61
62
  exports.sketchRectangle = require_drawFns.sketchRectangle;
62
- exports.sketchRevolve = require_drawFns.sketchRevolve;
63
+ exports.sketchRevolve = require_textBlueprints.sketchRevolve;
63
64
  exports.sketchRoundedRectangle = require_drawFns.sketchRoundedRectangle;
64
- exports.sketchSweep = require_drawFns.sketchSweep;
65
- exports.sketchWires = require_drawFns.sketchWires;
65
+ exports.sketchSweep = require_textBlueprints.sketchSweep;
66
+ exports.sketchWires = require_textBlueprints.sketchWires;
66
67
  exports.translateDrawing = require_drawFns.translateDrawing;
@@ -1,16 +1,19 @@
1
1
  import { default as Sketcher } from './sketching/sketcher.js';
2
- import { default as FaceSketcher, BaseSketcher2d, BlueprintSketcher } from './sketching/sketcher2d.js';
3
- import { GenericSketcher, SplineOptions } from './sketching/sketcherlib.js';
2
+ import { default as FaceSketcher } from './sketching/faceSketcher.js';
3
+ import { BaseSketcher2d } from './2d/blueprints/baseSketcher2d.js';
4
+ import { BlueprintSketcher } from './2d/blueprints/blueprintSketcher.js';
5
+ import { GenericSketcher, SplineOptions } from './2d/blueprints/genericSketcher.js';
4
6
  export { Sketcher, FaceSketcher, BaseSketcher2d, BlueprintSketcher };
5
7
  export type { GenericSketcher, SplineOptions };
6
- export type { SketchInterface } from './sketching/sketchLib.js';
8
+ export type { SketchInterface } from './sketching/sketch.js';
7
9
  export { default as Sketch } from './sketching/sketch.js';
8
10
  export { default as CompoundSketch } from './sketching/compoundSketch.js';
9
11
  export { default as Sketches } from './sketching/sketches.js';
10
12
  export { sketchCircle, sketchRectangle, sketchRoundedRectangle, sketchPolysides, sketchEllipse, polysideInnerRadius, sketchFaceOffset, sketchParametricFunction, sketchHelix, } from './sketching/cannedSketches.js';
11
13
  export { sketchExtrude, sketchRevolve, sketchLoft, sketchSweep, sketchFace, sketchWires, compoundSketchExtrude, compoundSketchRevolve, compoundSketchFace, compoundSketchLoft, } from './sketching/sketchFns.js';
12
- export { Drawing, DrawingPen, draw, drawRoundedRectangle, drawRectangle, drawSingleCircle, drawSingleEllipse, drawCircle, drawEllipse, drawPolysides, drawText, drawPointsInterpolation, drawParametricFunction, deserializeDrawing, } from './sketching/draw.js';
14
+ export { Drawing, deserializeDrawing } from './sketching/drawing.js';
15
+ export { DrawingPen, draw } from './sketching/drawingPen.js';
16
+ export { drawRoundedRectangle, drawRectangle, drawSingleCircle, drawSingleEllipse, drawCircle, drawEllipse, drawPolysides, drawText, drawPointsInterpolation, drawParametricFunction, } from './sketching/drawingFactories.js';
13
17
  export { drawProjection, drawFaceOutline } from './sketching/draw3d.js';
14
18
  export { drawingToSketchOnPlane, drawingFuse, drawingCut, drawingIntersect, drawingFillet, drawingChamfer, translateDrawing, rotateDrawing, scaleDrawing, mirrorDrawing, } from './sketching/drawFns.js';
15
19
  export { makeBaseBox } from './sketching/shortcuts.js';
16
- //# sourceMappingURL=sketching.d.ts.map
package/dist/sketching.js CHANGED
@@ -1,5 +1,6 @@
1
- import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-JvgjbESt.js";
2
- import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-lUXjhTYL.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-xDsl9GXO.js";
2
+ import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-BsarLfUN.js";
3
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-Do6xNsLt.js";
3
4
  //#region src/sketching.ts
4
5
  /**
5
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-C0MDggKf.cjs");
2
- const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-22idS-ht.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BTt_LLbk.cjs");
2
+ const require_errors = require("./errors-Dv6pfNct.cjs");
3
+ const require_faceFns = require("./faceFns-DP7i60yJ.cjs");
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CN0GUoHr.js";
2
- import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DboJwVCf.js";
3
- import { M as cast, N as downcast } from "./faceFns-NbWd8-iR.js";
1
+ import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-C--1jaT1.js";
2
+ import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-0fYW_YnO.js";
3
+ import { _ as downcast, g as cast } from "./faceFns-BFWz17_E.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-C0MDggKf.cjs");
2
- const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-22idS-ht.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BTt_LLbk.cjs");
2
+ const require_errors = require("./errors-Dv6pfNct.cjs");
3
+ const require_faceFns = require("./faceFns-DP7i60yJ.cjs");
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -117,6 +117,22 @@ function makeBSplineApproximation(points, { tolerance = .001, smoothing = null,
117
117
  }
118
118
  }
119
119
  /**
120
+ * Create a B-spline edge that passes exactly through every input point. Use
121
+ * over {@link makeBSplineApproximation} when downstream wire assembly needs
122
+ * precise endpoint coincidence with neighbouring edges.
123
+ */
124
+ function makeBSplineInterpolation(points, { periodic = false, tolerance = 1e-7 } = {}) {
125
+ try {
126
+ const mutablePoints = points.map((p) => [...p]);
127
+ return require_errors.ok(require_shapeTypes.createEdge(require_shapeTypes.getKernel().interpolatePoints(mutablePoints, {
128
+ periodic,
129
+ tolerance
130
+ })));
131
+ } catch {
132
+ return require_errors.err(require_errors.kernelError("BSPLINE_INTERP_FAILED", "B-spline interpolation failed"));
133
+ }
134
+ }
135
+ /**
120
136
  * Create a Bezier curve edge from control points.
121
137
  *
122
138
  * @param points - Two or more control points defining the curve.
@@ -242,6 +258,12 @@ Object.defineProperty(exports, "makeBSplineApproximation", {
242
258
  return makeBSplineApproximation;
243
259
  }
244
260
  });
261
+ Object.defineProperty(exports, "makeBSplineInterpolation", {
262
+ enumerable: true,
263
+ get: function() {
264
+ return makeBSplineInterpolation;
265
+ }
266
+ });
245
267
  Object.defineProperty(exports, "makeBezierCurve", {
246
268
  enumerable: true,
247
269
  get: function() {
@@ -1,6 +1,6 @@
1
- import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CN0GUoHr.js";
2
- import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DboJwVCf.js";
3
- import { M as cast, l as outerWire } from "./faceFns-NbWd8-iR.js";
1
+ import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-C--1jaT1.js";
2
+ import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-0fYW_YnO.js";
3
+ import { g as cast, l as outerWire } from "./faceFns-BFWz17_E.js";
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -117,6 +117,22 @@ function makeBSplineApproximation(points, { tolerance = .001, smoothing = null,
117
117
  }
118
118
  }
119
119
  /**
120
+ * Create a B-spline edge that passes exactly through every input point. Use
121
+ * over {@link makeBSplineApproximation} when downstream wire assembly needs
122
+ * precise endpoint coincidence with neighbouring edges.
123
+ */
124
+ function makeBSplineInterpolation(points, { periodic = false, tolerance = 1e-7 } = {}) {
125
+ try {
126
+ const mutablePoints = points.map((p) => [...p]);
127
+ return ok(createEdge(getKernel().interpolatePoints(mutablePoints, {
128
+ periodic,
129
+ tolerance
130
+ })));
131
+ } catch {
132
+ return err(kernelError("BSPLINE_INTERP_FAILED", "B-spline interpolation failed"));
133
+ }
134
+ }
135
+ /**
120
136
  * Create a Bezier curve edge from control points.
121
137
  *
122
138
  * @param points - Two or more control points defining the curve.
@@ -218,4 +234,4 @@ function makePolygon(points) {
218
234
  return andThen(assembleWire(zip([points, [...points.slice(1), points[0]]]).map(([p1, p2]) => makeLine(p1, p2))), (wire) => makeFace(wire));
219
235
  }
220
236
  //#endregion
221
- export { zip as _, makeNonPlanarFace as a, makeBSplineApproximation as c, makeEllipse as d, makeEllipseArc as f, makeThreePointArc as g, makeTangentArc as h, makeNewFaceWithinFace as i, makeBezierCurve as l, makeLine as m, fill as n, makePolygon as o, makeHelix as p, makeFace as r, assembleWire as s, addHolesInFace as t, makeCircle as u };
237
+ export { makeThreePointArc as _, makeNonPlanarFace as a, makeBSplineApproximation as c, makeCircle as d, makeEllipse as f, makeTangentArc as g, makeLine as h, makeNewFaceWithinFace as i, makeBSplineInterpolation as l, makeHelix as m, fill as n, makePolygon as o, makeEllipseArc as p, makeFace as r, assembleWire as s, addHolesInFace as t, makeBezierCurve as u, zip as v };
@@ -0,0 +1,22 @@
1
+ import { Result } from '../core/result.js';
2
+ import { OpenTypeFont } from '../kernel/occt/wasmTypes/externals.js';
3
+ /**
4
+ * Load and register an OpenType/TrueType font for use with text drawing functions.
5
+ *
6
+ * The font is fetched (if a URL string) or parsed (if an ArrayBuffer) and
7
+ * stored in an internal registry keyed by `fontFamily`. The first font loaded
8
+ * is also registered as `'default'`.
9
+ *
10
+ * @param fontPath - URL string or raw ArrayBuffer of the font file.
11
+ * @param fontFamily - Registry key for later retrieval (defaults to `'default'`).
12
+ * @param force - If true, overwrite a previously loaded font with the same key.
13
+ * @returns The parsed opentype.js Font object.
14
+ */
15
+ export declare function loadFont(fontPath: string | ArrayBuffer, fontFamily?: string, force?: boolean): Promise<Result<OpenTypeFont>>;
16
+ /**
17
+ * Retrieve a previously loaded font by family name.
18
+ *
19
+ * @param fontFamily - Registry key (defaults to `'default'`).
20
+ * @returns The opentype.js Font object, or `undefined` if not loaded.
21
+ */
22
+ export declare const getFont: (fontFamily?: string) => OpenTypeFont | undefined;
@@ -0,0 +1,30 @@
1
+ import { Plane, PlaneName } from '../core/planeTypes.js';
2
+ import { PointInput } from '../core/types.js';
3
+ import { default as Sketches } from '../sketching/sketches.js';
4
+ /**
5
+ * Render text as 3D sketch outlines on a plane.
6
+ *
7
+ * Combines {@link textBlueprints} with `sketchOnPlane` to produce a
8
+ * {@link Sketches} collection that can be extruded, revolved, etc.
9
+ *
10
+ * @param text - The string to render.
11
+ * @param textConfig - Font size, family, and start position.
12
+ * @param planeConfig - Plane name / origin to sketch on (defaults to XY at origin).
13
+ * @returns A {@link Sketches} collection of the text outlines.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * await loadFont("/fonts/Roboto.ttf");
18
+ * const textSketches = sketchText("Hello", { fontSize: 24 });
19
+ * const solid = textSketches.extrude(2);
20
+ * ```
21
+ */
22
+ export declare function sketchText(text: string, textConfig?: {
23
+ startX?: number;
24
+ startY?: number;
25
+ fontSize?: number;
26
+ fontFamily?: string;
27
+ }, planeConfig?: {
28
+ plane?: PlaneName | Plane;
29
+ origin?: PointInput | number;
30
+ }): Sketches;
@@ -1,29 +1,4 @@
1
- import { Plane, PlaneName } from '../core/planeTypes.js';
2
- import { PointInput } from '../core/types.js';
3
1
  import { default as Blueprints } from '../2d/blueprints/blueprints.js';
4
- import { Result } from '../core/result.js';
5
- import { default as Sketches } from '../sketching/sketches.js';
6
- import { OpenTypeFont } from '../kernel/occt/wasmTypes/externals.js';
7
- /**
8
- * Load and register an OpenType/TrueType font for use with text drawing functions.
9
- *
10
- * The font is fetched (if a URL string) or parsed (if an ArrayBuffer) and
11
- * stored in an internal registry keyed by `fontFamily`. The first font loaded
12
- * is also registered as `'default'`.
13
- *
14
- * @param fontPath - URL string or raw ArrayBuffer of the font file.
15
- * @param fontFamily - Registry key for later retrieval (defaults to `'default'`).
16
- * @param force - If true, overwrite a previously loaded font with the same key.
17
- * @returns The parsed opentype.js Font object.
18
- */
19
- export declare function loadFont(fontPath: string | ArrayBuffer, fontFamily?: string, force?: boolean): Promise<Result<OpenTypeFont>>;
20
- /**
21
- * Retrieve a previously loaded font by family name.
22
- *
23
- * @param fontFamily - Registry key (defaults to `'default'`).
24
- * @returns The opentype.js Font object, or `undefined` if not loaded.
25
- */
26
- export declare const getFont: (fontFamily?: string) => OpenTypeFont | undefined;
27
2
  /**
28
3
  * Convert a text string into 2D Blueprints using a loaded font.
29
4
  *
@@ -41,69 +16,3 @@ export declare function textBlueprints(text: string, { startX, startY, fontSize,
41
16
  fontSize?: number | undefined;
42
17
  fontFamily?: string | undefined;
43
18
  }): Blueprints;
44
- /**
45
- * Render text as 3D sketch outlines on a plane.
46
- *
47
- * Combines {@link textBlueprints} with `sketchOnPlane` to produce a
48
- * {@link Sketches} collection that can be extruded, revolved, etc.
49
- *
50
- * @param text - The string to render.
51
- * @param textConfig - Font size, family, and start position.
52
- * @param planeConfig - Plane name / origin to sketch on (defaults to XY at origin).
53
- * @returns A {@link Sketches} collection of the text outlines.
54
- *
55
- * @example
56
- * ```ts
57
- * await loadFont("/fonts/Roboto.ttf");
58
- * const textSketches = sketchText("Hello", { fontSize: 24 });
59
- * const solid = textSketches.extrude(2);
60
- * ```
61
- */
62
- export declare function sketchText(text: string, textConfig?: {
63
- startX?: number;
64
- startY?: number;
65
- fontSize?: number;
66
- fontFamily?: string;
67
- }, planeConfig?: {
68
- plane?: PlaneName | Plane;
69
- origin?: PointInput | number;
70
- }): Sketches;
71
- export interface TextMetricsResult {
72
- /** Total advance width of the text string. */
73
- width: number;
74
- /** Height from descender to ascender. */
75
- height: number;
76
- /** Distance from baseline to top of tallest glyph (positive). */
77
- ascender: number;
78
- /** Distance from baseline to bottom of lowest glyph (negative). */
79
- descender: number;
80
- }
81
- export interface FontMetricsResult {
82
- /** Ascender in font units scaled to fontSize. */
83
- ascender: number;
84
- /** Descender in font units scaled to fontSize (negative). */
85
- descender: number;
86
- /** Units per em of the font. */
87
- unitsPerEm: number;
88
- /** Total line height (ascender - descender + line gap). */
89
- lineHeight: number;
90
- }
91
- /**
92
- * Measure the dimensions of a text string without generating geometry.
93
- *
94
- * Requires a font to be loaded via {@link loadFont} first.
95
- */
96
- export declare function textMetrics(text: string, options?: {
97
- fontSize?: number;
98
- fontFamily?: string;
99
- }): Result<TextMetricsResult>;
100
- /**
101
- * Retrieve font-level metrics without referencing specific text.
102
- *
103
- * Requires a font to be loaded via {@link loadFont} first.
104
- */
105
- export declare function fontMetrics(options?: {
106
- fontSize?: number;
107
- fontFamily?: string;
108
- }): Result<FontMetricsResult>;
109
- //# sourceMappingURL=textBlueprints.d.ts.map
@@ -0,0 +1,39 @@
1
+ import { Result } from '../core/result.js';
2
+ export interface TextMetricsResult {
3
+ /** Total advance width of the text string. */
4
+ width: number;
5
+ /** Height from descender to ascender. */
6
+ height: number;
7
+ /** Distance from baseline to top of tallest glyph (positive). */
8
+ ascender: number;
9
+ /** Distance from baseline to bottom of lowest glyph (negative). */
10
+ descender: number;
11
+ }
12
+ export interface FontMetricsResult {
13
+ /** Ascender in font units scaled to fontSize. */
14
+ ascender: number;
15
+ /** Descender in font units scaled to fontSize (negative). */
16
+ descender: number;
17
+ /** Units per em of the font. */
18
+ unitsPerEm: number;
19
+ /** Total line height (ascender - descender + line gap). */
20
+ lineHeight: number;
21
+ }
22
+ /**
23
+ * Measure the dimensions of a text string without generating geometry.
24
+ *
25
+ * Requires a font to be loaded via {@link loadFont} first.
26
+ */
27
+ export declare function textMetrics(text: string, options?: {
28
+ fontSize?: number;
29
+ fontFamily?: string;
30
+ }): Result<TextMetricsResult>;
31
+ /**
32
+ * Retrieve font-level metrics without referencing specific text.
33
+ *
34
+ * Requires a font to be loaded via {@link loadFont} first.
35
+ */
36
+ export declare function fontMetrics(options?: {
37
+ fontSize?: number;
38
+ fontFamily?: string;
39
+ }): Result<FontMetricsResult>;
package/dist/text.cjs ADDED
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_textBlueprints = require("./textBlueprints-oWhiABaY.cjs");
3
+ const require_textMetrics = require("./textMetrics-CUvtglQE.cjs");
4
+ exports.fontMetrics = require_textMetrics.fontMetrics;
5
+ exports.getFont = require_textBlueprints.getFont;
6
+ exports.loadFont = require_textBlueprints.loadFont;
7
+ exports.sketchText = require_textMetrics.sketchText;
8
+ exports.textBlueprints = require_textBlueprints.textBlueprints;
9
+ exports.textMetrics = require_textMetrics.textMetrics;