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
@@ -141,4 +141,3 @@ export declare const sketchParametricFunction: (func: (t: number) => Point2D, pl
141
141
  */
142
142
  export declare const sketchHelix: (pitch: number, height: number, radius: number, center?: PointInput, dir?: PointInput, lefthand?: boolean) => Sketch;
143
143
  export {};
144
- //# sourceMappingURL=cannedSketches.d.ts.map
@@ -1,9 +1,8 @@
1
- import { default as Sketch } from './sketch.js';
1
+ import { default as Sketch, SketchInterface } from './sketch.js';
2
2
  import { PointInput } from '../core/types.js';
3
3
  import { ExtrusionProfile } from '../operations/extrudeUtils.js';
4
4
  import { LoftOptions } from '../operations/loftFns.js';
5
- import { SketchInterface } from './sketchLib.js';
6
- import { OrientedFace, Shape3D } from '../core/shapeTypes.js';
5
+ import { Face, Shape3D } from '../core/shapeTypes.js';
7
6
  /**
8
7
  * Represent a face with holes as a group of sketches (one outer + zero or more inner).
9
8
  *
@@ -12,6 +11,9 @@ import { OrientedFace, Shape3D } from '../core/shapeTypes.js';
12
11
  *
13
12
  * Typically produced from a {@link CompoundBlueprint} via `sketchOnPlane`.
14
13
  *
14
+ * The class methods are thin delegations to the canonical functions in
15
+ * `sketchFns.ts` (`compoundSketchExtrude`, `compoundSketchRevolve`, etc.).
16
+ *
15
17
  * @see {@link Sketch} for single-wire profiles without holes.
16
18
  * @category Sketching
17
19
  */
@@ -27,14 +29,14 @@ export default class CompoundSketch implements SketchInterface {
27
29
  /** Return all wires (outer + holes) combined into a compound shape. */
28
30
  get wires(): import('../core/shapeTypes.js').Compound;
29
31
  /** Build a face from the outer boundary with inner wires subtracted as holes. */
30
- face(): OrientedFace<"3D">;
32
+ face(): Face;
31
33
  /**
32
34
  * Extrude the compound face (with holes) along the default or given direction.
33
35
  *
34
36
  * Supports twist and profile extrusions. For twist/profile modes each
35
37
  * sub-sketch is extruded as a shell, then capped into a solid.
36
38
  */
37
- extrude(extrusionDistance: number, { extrusionDirection, extrusionProfile, twistAngle, origin, }?: {
39
+ extrude(extrusionDistance: number, config?: {
38
40
  extrusionDirection?: PointInput;
39
41
  extrusionProfile?: ExtrusionProfile;
40
42
  twistAngle?: number;
@@ -44,10 +46,9 @@ export default class CompoundSketch implements SketchInterface {
44
46
  * Revolves the drawing on an axis (defined by its direction and an origin
45
47
  * (defaults to the sketch origin)
46
48
  */
47
- revolve(revolutionAxis?: PointInput, { origin }?: {
49
+ revolve(revolutionAxis?: PointInput, config?: {
48
50
  origin?: PointInput;
49
51
  }): Shape3D;
50
52
  /** Loft between this compound sketch and another with matching sub-sketch counts. */
51
53
  loftWith(otherCompound: this, loftConfig: LoftOptions): Shape3D;
52
54
  }
53
- //# sourceMappingURL=compoundSketch.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { AnyShape, Face } from '../core/shapeTypes.js';
2
2
  import { ProjectionPlane } from '../projection/projectionPlanes.js';
3
3
  import { Camera } from '../projection/cameraFns.js';
4
- import { Drawing } from './draw.js';
4
+ import { Drawing } from './drawing.js';
5
5
  /**
6
6
  * Creates the `Drawing` of a projection of a shape on a plane.
7
7
  *
@@ -19,4 +19,3 @@ export declare function drawProjection(shape: AnyShape, projectionCamera?: Proje
19
19
  * @category Drawing
20
20
  */
21
21
  export declare function drawFaceOutline(face: Face): Drawing;
22
- //# sourceMappingURL=draw3d.d.ts.map
@@ -1,5 +1,7 @@
1
1
  import { Point2D } from '../2d/lib/definitions.js';
2
- import { Drawing } from './draw.js';
2
+ import { Drawing } from './drawing.js';
3
+ import { default as Sketches } from './sketches.js';
4
+ import { SketchInterface } from './sketch.js';
3
5
  import { CornerFinderFn } from '../query/finderFns.js';
4
6
  import { PointInput } from '../core/types.js';
5
7
  import { Plane, PlaneName } from '../core/planeTypes.js';
@@ -13,7 +15,7 @@ import { Plane, PlaneName } from '../core/planeTypes.js';
13
15
  *
14
16
  * @see {@link Drawing.sketchOnPlane} for the OOP equivalent.
15
17
  */
16
- export declare function drawingToSketchOnPlane(drawing: Drawing, inputPlane?: PlaneName | Plane, origin?: PointInput | number): any;
18
+ export declare function drawingToSketchOnPlane(drawing: Drawing, inputPlane?: PlaneName | Plane, origin?: PointInput | number): SketchInterface | Sketches;
17
19
  /**
18
20
  * Fuse two drawings with a Boolean union.
19
21
  *
@@ -113,4 +115,3 @@ export declare function scaleDrawing(drawing: Drawing, factor: number, center?:
113
115
  * @see {@link Drawing.mirror} for the OOP equivalent.
114
116
  */
115
117
  export declare function mirrorDrawing(drawing: Drawing, centerOrDirection: Point2D, origin?: Point2D, mode?: 'center' | 'plane'): Drawing;
116
- //# sourceMappingURL=drawFns.d.ts.map
@@ -1,15 +1,12 @@
1
- import { ApproximationOptions, Curve2D, BoundingBox2d, Point2D } from '../2d/lib/index.js';
1
+ import { ApproximationOptions, BoundingBox2d, Point2D } from '../2d/lib/index.js';
2
2
  import { Blueprint, ScaleMode, Shape2D } from '../2d/blueprints/index.js';
3
3
  import { Plane, PlaneName } from '../core/planeTypes.js';
4
4
  import { PointInput } from '../core/types.js';
5
5
  import { AnyShape, Dimension, Face } from '../core/shapeTypes.js';
6
- import { BaseSketcher2d } from './sketcher2d.js';
7
- import { SketchInterface } from './sketchLib.js';
6
+ import { SketchInterface } from './sketch.js';
8
7
  import { default as Sketches } from './sketches.js';
9
- import { GenericSketcher } from './sketcherlib.js';
10
8
  import { Offset2DConfig } from '../2d/blueprints/blueprintOffset.js';
11
9
  import { CornerFinderFn } from '../query/finderFns.js';
12
- import { BSplineApproximationOptions } from '../topology/shapeHelpers.js';
13
10
  import { SingleFace } from '../query/helpers.js';
14
11
  /**
15
12
  * @categoryDescription Drawing
@@ -114,130 +111,8 @@ export declare class Drawing {
114
111
  /** Access the underlying {@link Blueprint}, throwing if the drawing is compound. */
115
112
  get blueprint(): Blueprint;
116
113
  }
117
- /**
118
- * DrawingPen is a helper class to draw in 2D. It is used to create drawings
119
- * by exposing a builder interface. It is not a drawing itself, but it can be
120
- * used to create a drawing.
121
- *
122
- * @category Drawing
123
- */
124
- export declare class DrawingPen extends BaseSketcher2d implements GenericSketcher<Drawing> {
125
- constructor(origin?: Point2D);
126
- /** Finish drawing and return the resulting {@link Drawing} (does not close the path). */
127
- done(): Drawing;
128
- /** Close the path with a straight line to the start point and return the Drawing. */
129
- close(): Drawing;
130
- /** Close the path by mirroring all curves about the line from first to last point. */
131
- closeWithMirror(): Drawing;
132
- /**
133
- * Close the path and apply a custom corner treatment between the last and first segments.
134
- *
135
- * @param radius - Fillet/chamfer radius.
136
- * @param mode - Corner treatment type.
137
- * @returns The closed {@link Drawing}.
138
- */
139
- closeWithCustomCorner(radius: number | ((f: Curve2D, s: Curve2D) => Curve2D[]), mode?: 'fillet' | 'chamfer' | 'dogbone'): Drawing;
140
- }
141
114
  /**
142
115
  * Deserializes a drawing from a string. String is expected to be in the format
143
116
  * generated by `Drawing.serialize()`.
144
117
  */
145
118
  export declare function deserializeDrawing(data: string): Drawing;
146
- /**
147
- * Creates a drawing pen to programatically draw in 2D.
148
- *
149
- * @category Drawing
150
- */
151
- export declare function draw(initialPoint?: Point2D): DrawingPen;
152
- /**
153
- * Creates the `Drawing` of a rectangle with (optional) rounded corners.
154
- *
155
- * The rectangle is centered on [0, 0]
156
- *
157
- * @category Drawing
158
- */
159
- export declare function drawRoundedRectangle(width: number, height: number, r?: number | {
160
- rx?: number;
161
- ry?: number;
162
- }): Drawing;
163
- /** Alias for {@link drawRoundedRectangle}. Creates a rectangle (sharp corners when `r` is 0). */
164
- export declare const drawRectangle: typeof drawRoundedRectangle;
165
- /**
166
- * Creates the `Drawing` of a circle as one single curve.
167
- *
168
- * The circle is centered on [0, 0]
169
- *
170
- * @category Drawing
171
- */
172
- export declare function drawSingleCircle(radius: number): Drawing;
173
- /**
174
- * Creates the `Drawing` of an ellipse as one single curve.
175
- *
176
- * The ellipse is centered on [0, 0], with axes aligned with the coordinates.
177
- *
178
- * @category Drawing
179
- */
180
- export declare function drawSingleEllipse(majorRadius: number, minorRadius: number): Drawing;
181
- /**
182
- * Creates the `Drawing` of a circle.
183
- *
184
- * The circle is centered on [0, 0]
185
- *
186
- * @category Drawing
187
- */
188
- export declare function drawCircle(radius: number): Drawing;
189
- /**
190
- * Creates the `Drawing` of an ellipse.
191
- *
192
- * The ellipse is centered on [0, 0], with axes aligned with the coordinates.
193
- *
194
- * @category Drawing
195
- */
196
- export declare function drawEllipse(majorRadius: number, minorRadius: number): Drawing;
197
- /**
198
- * Creates the `Drawing` of a polygon in a defined plane
199
- *
200
- * The sides of the polygon can be arcs of circle with a defined sagitta.
201
- * The radius defines the outer radius of the polygon without sagitta
202
- *
203
- * @category Drawing
204
- */
205
- export declare function drawPolysides(radius: number, sidesCount: number, sagitta?: number): Drawing;
206
- /**
207
- * Creates the `Drawing` of a text, in a defined font size and a font family
208
- * (which will be the default).
209
- *
210
- * @category Drawing
211
- */
212
- export declare function drawText(text: string, { startX, startY, fontSize, fontFamily }?: {
213
- startX?: number | undefined;
214
- startY?: number | undefined;
215
- fontSize?: number | undefined;
216
- fontFamily?: string | undefined;
217
- }): Drawing;
218
- /**
219
- * Creates the `Drawing` by interpolating points as a curve
220
- *
221
- * The drawing will be a spline approximating the points. Note that the
222
- * degree should be at maximum 3 if you need to export the drawing as an SVG.
223
- *
224
- * @category Drawing
225
- */
226
- export declare const drawPointsInterpolation: (points: Point2D[], approximationConfig?: BSplineApproximationOptions, options?: {
227
- closeShape?: boolean;
228
- }) => Drawing;
229
- /**
230
- * Creates the `Drawing` of parametric function
231
- *
232
- * The drawing will be a spline approximating the function. Note that the
233
- * degree should be at maximum 3 if you need to export the drawing as an SVG.
234
- *
235
- * @category Drawing
236
- */
237
- export declare const drawParametricFunction: (func: (t: number) => Point2D, { pointsCount, start, stop, closeShape }?: {
238
- pointsCount?: number | undefined;
239
- start?: number | undefined;
240
- stop?: number | undefined;
241
- closeShape?: boolean | undefined;
242
- }, approximationConfig?: BSplineApproximationOptions) => Drawing;
243
- //# sourceMappingURL=draw.d.ts.map
@@ -0,0 +1,94 @@
1
+ import { Point2D } from '../2d/lib/index.js';
2
+ import { BSplineApproximationOptions } from '../topology/shapeHelpers.js';
3
+ import { Drawing } from './drawing.js';
4
+ /**
5
+ * Creates the `Drawing` of a rectangle with (optional) rounded corners.
6
+ *
7
+ * The rectangle is centered on [0, 0]
8
+ *
9
+ * @category Drawing
10
+ */
11
+ export declare function drawRoundedRectangle(width: number, height: number, r?: number | {
12
+ rx?: number;
13
+ ry?: number;
14
+ }): Drawing;
15
+ /** Alias for {@link drawRoundedRectangle}. Creates a rectangle (sharp corners when `r` is 0). */
16
+ export declare const drawRectangle: typeof drawRoundedRectangle;
17
+ /**
18
+ * Creates the `Drawing` of a circle as one single curve.
19
+ *
20
+ * The circle is centered on [0, 0]
21
+ *
22
+ * @category Drawing
23
+ */
24
+ export declare function drawSingleCircle(radius: number): Drawing;
25
+ /**
26
+ * Creates the `Drawing` of an ellipse as one single curve.
27
+ *
28
+ * The ellipse is centered on [0, 0], with axes aligned with the coordinates.
29
+ *
30
+ * @category Drawing
31
+ */
32
+ export declare function drawSingleEllipse(majorRadius: number, minorRadius: number): Drawing;
33
+ /**
34
+ * Creates the `Drawing` of a circle.
35
+ *
36
+ * The circle is centered on [0, 0]
37
+ *
38
+ * @category Drawing
39
+ */
40
+ export declare function drawCircle(radius: number): Drawing;
41
+ /**
42
+ * Creates the `Drawing` of an ellipse.
43
+ *
44
+ * The ellipse is centered on [0, 0], with axes aligned with the coordinates.
45
+ *
46
+ * @category Drawing
47
+ */
48
+ export declare function drawEllipse(majorRadius: number, minorRadius: number): Drawing;
49
+ /**
50
+ * Creates the `Drawing` of a polygon in a defined plane
51
+ *
52
+ * The sides of the polygon can be arcs of circle with a defined sagitta.
53
+ * The radius defines the outer radius of the polygon without sagitta
54
+ *
55
+ * @category Drawing
56
+ */
57
+ export declare function drawPolysides(radius: number, sidesCount: number, sagitta?: number): Drawing;
58
+ /**
59
+ * Creates the `Drawing` of a text, in a defined font size and a font family
60
+ * (which will be the default).
61
+ *
62
+ * @category Drawing
63
+ */
64
+ export declare function drawText(text: string, { startX, startY, fontSize, fontFamily }?: {
65
+ startX?: number | undefined;
66
+ startY?: number | undefined;
67
+ fontSize?: number | undefined;
68
+ fontFamily?: string | undefined;
69
+ }): Drawing;
70
+ /**
71
+ * Creates the `Drawing` by interpolating points as a curve
72
+ *
73
+ * The drawing will be a spline approximating the points. Note that the
74
+ * degree should be at maximum 3 if you need to export the drawing as an SVG.
75
+ *
76
+ * @category Drawing
77
+ */
78
+ export declare const drawPointsInterpolation: (points: Point2D[], approximationConfig?: BSplineApproximationOptions, options?: {
79
+ closeShape?: boolean;
80
+ }) => Drawing;
81
+ /**
82
+ * Creates the `Drawing` of parametric function
83
+ *
84
+ * The drawing will be a spline approximating the function. Note that the
85
+ * degree should be at maximum 3 if you need to export the drawing as an SVG.
86
+ *
87
+ * @category Drawing
88
+ */
89
+ export declare const drawParametricFunction: (func: (t: number) => Point2D, { pointsCount, start, stop, closeShape }?: {
90
+ pointsCount?: number | undefined;
91
+ start?: number | undefined;
92
+ stop?: number | undefined;
93
+ closeShape?: boolean | undefined;
94
+ }, approximationConfig?: BSplineApproximationOptions) => Drawing;
@@ -0,0 +1,34 @@
1
+ import { Curve2D, Point2D } from '../2d/lib/index.js';
2
+ import { BaseSketcher2d } from '../2d/blueprints/baseSketcher2d.js';
3
+ import { GenericSketcher } from '../2d/blueprints/genericSketcher.js';
4
+ import { Drawing } from './drawing.js';
5
+ /**
6
+ * DrawingPen is a helper class to draw in 2D. It is used to create drawings
7
+ * by exposing a builder interface. It is not a drawing itself, but it can be
8
+ * used to create a drawing.
9
+ *
10
+ * @category Drawing
11
+ */
12
+ export declare class DrawingPen extends BaseSketcher2d implements GenericSketcher<Drawing> {
13
+ constructor(origin?: Point2D);
14
+ /** Finish drawing and return the resulting {@link Drawing} (does not close the path). */
15
+ done(): Drawing;
16
+ /** Close the path with a straight line to the start point and return the Drawing. */
17
+ close(): Drawing;
18
+ /** Close the path by mirroring all curves about the line from first to last point. */
19
+ closeWithMirror(): Drawing;
20
+ /**
21
+ * Close the path and apply a custom corner treatment between the last and first segments.
22
+ *
23
+ * @param radius - Fillet/chamfer radius.
24
+ * @param mode - Corner treatment type.
25
+ * @returns The closed {@link Drawing}.
26
+ */
27
+ closeWithCustomCorner(radius: number | ((f: Curve2D, s: Curve2D) => Curve2D[]), mode?: 'fillet' | 'chamfer' | 'dogbone'): Drawing;
28
+ }
29
+ /**
30
+ * Creates a drawing pen to programatically draw in 2D.
31
+ *
32
+ * @category Drawing
33
+ */
34
+ export declare function draw(initialPoint?: Point2D): DrawingPen;
@@ -0,0 +1,52 @@
1
+ import { default as Sketch } from './sketch.js';
2
+ import { Wire, Face } from '../core/shapeTypes.js';
3
+ import { GenericSketcher } from '../2d/blueprints/genericSketcher.js';
4
+ import { KernelType } from '../kernel/types.js';
5
+ import { Curve2D, Point2D } from '../2d/lib/index.js';
6
+ import { BaseSketcher2d } from '../2d/blueprints/baseSketcher2d.js';
7
+ type UVBounds = {
8
+ readonly uMin: number;
9
+ readonly uMax: number;
10
+ readonly vMin: number;
11
+ readonly vMax: number;
12
+ };
13
+ /**
14
+ * The FaceSketcher allows you to sketch on a face that is not planar, for
15
+ * instance the sides of a cylinder.
16
+ *
17
+ * The coordinates passed to the methods corresponds to normalised distances on
18
+ * this surface, between 0 and 1 in both direction.
19
+ *
20
+ * Note that if you are drawing on a closed surface (typically a revolution
21
+ * surface or a cylinder), the first parameters represents the angle and can be
22
+ * smaller than 0 or bigger than 1.
23
+ *
24
+ * @category Sketching
25
+ */
26
+ export default class FaceSketcher extends BaseSketcher2d implements GenericSketcher<Sketch> {
27
+ protected face: Face;
28
+ protected _bounds: UVBounds;
29
+ constructor(face: Face, origin?: Point2D);
30
+ protected _convertToUV([x, y]: Point2D): Point2D;
31
+ protected _convertFromUV([u, v]: Point2D): Point2D;
32
+ _adaptSurface(): KernelType;
33
+ /**
34
+ * @ignore
35
+ */
36
+ protected buildWire(): Wire;
37
+ /** Finish drawing and return the resulting {@link Sketch} (does not close the path). */
38
+ done(): Sketch;
39
+ /** Close the path with a straight line to the start point and return the Sketch. */
40
+ close(): Sketch;
41
+ /** Close the path by mirroring all curves about the line from first to last point. */
42
+ closeWithMirror(): Sketch;
43
+ /**
44
+ * Close the path and apply a custom corner treatment between the last and first segments.
45
+ *
46
+ * @param radius - Fillet/chamfer radius, or a custom corner function.
47
+ * @param mode - Corner treatment type.
48
+ * @returns The closed {@link Sketch}.
49
+ */
50
+ closeWithCustomCorner(radius: number | ((f: Curve2D, s: Curve2D) => Curve2D[]), mode?: 'fillet' | 'chamfer' | 'dogbone'): Sketch;
51
+ }
52
+ export {};
@@ -13,4 +13,3 @@ import { Shape3D } from '../core/shapeTypes.js';
13
13
  * ```
14
14
  */
15
15
  export declare const makeBaseBox: (xLength: number, yLength: number, zLength: number) => Shape3D;
16
- //# sourceMappingURL=shortcuts.d.ts.map
@@ -2,8 +2,47 @@ import { Plane } from '../core/planeTypes.js';
2
2
  import { Vec3, PointInput } from '../core/types.js';
3
3
  import { ExtrusionProfile, SweepOptions } from '../operations/extrudeUtils.js';
4
4
  import { LoftOptions } from '../operations/loftFns.js';
5
- import { Face, Wire, Shape3D } from '../core/shapeTypes.js';
6
- import { SketchInterface } from './sketchLib.js';
5
+ import { ClosedWire, Face, PlanarWire, Shape3D, Wire } from '../core/shapeTypes.js';
6
+ /** Common interface for sketch-like objects that can be extruded, revolved, or lofted. */
7
+ export interface SketchInterface {
8
+ /** Transforms the lines into a face. The lines should be closed. */
9
+ face(): Face;
10
+ /**
11
+ * Revolves the drawing on an axis (defined by its direction and an origin
12
+ * (defaults to the sketch origin)
13
+ */
14
+ revolve(revolutionAxis?: PointInput, config?: {
15
+ origin?: PointInput;
16
+ }): Shape3D;
17
+ /**
18
+ * Extrudes the sketch to a certain distance (along the default direction
19
+ * and origin of the sketch).
20
+ *
21
+ * You can define another extrusion direction or origin,
22
+ *
23
+ * It is also possible to twist extrude with an angle (in degrees), or to
24
+ * give a profile to the extrusion (the endFactor will scale the face, and
25
+ * the profile will define how the scale is applied (either linearly or with
26
+ * a s-shape).
27
+ */
28
+ extrude(extrusionDistance: number, extrusionConfig?: {
29
+ extrusionDirection?: PointInput;
30
+ extrusionProfile?: ExtrusionProfile;
31
+ twistAngle?: number;
32
+ origin?: PointInput;
33
+ }): Shape3D;
34
+ /**
35
+ * Loft between this sketch and another sketch (or an array of them)
36
+ *
37
+ * You can also define a `startPoint` for the loft (that will be placed
38
+ * before this sketch) and an `endPoint` after the last one.
39
+ *
40
+ * You can also define if you want the loft to result in a ruled surface.
41
+ *
42
+ * Note that all sketches will be deleted by this operation
43
+ */
44
+ loftWith(otherSketches: this | this[], loftConfig: LoftOptions, returnShell?: boolean): Shape3D;
45
+ }
7
46
  /**
8
47
  * Represent a closed or open wire profile with a default extrusion origin and direction.
9
48
  *
@@ -12,6 +51,10 @@ import { SketchInterface } from './sketchLib.js';
12
51
  * {@link Sketch.revolve}, {@link Sketch.sweepSketch}, and {@link Sketch.loftWith}
13
52
  * know how to act on it without extra arguments.
14
53
  *
54
+ * The class methods are thin delegations to the canonical functions in
55
+ * `sketchFns.ts` (`sketchExtrude`, `sketchRevolve`, etc.). New functionality
56
+ * should be added there.
57
+ *
15
58
  * @remarks Most operations consume (delete) the sketch after producing a solid.
16
59
  *
17
60
  * @see {@link Sketcher} to build a Sketch interactively.
@@ -19,7 +62,14 @@ import { SketchInterface } from './sketchLib.js';
19
62
  * @category Sketching
20
63
  */
21
64
  export default class Sketch implements SketchInterface {
22
- wire: Wire;
65
+ /**
66
+ * The wire is typed as `ClosedWire & PlanarWire` to reflect the contract at
67
+ * Sketcher boundaries: `Sketcher.close()`, `closeWithMirror()`,
68
+ * `closeWithCustomCorner()`, and the canned-sketch factories all produce
69
+ * closed planar wires. Callers constructing `Sketch` from an arbitrary
70
+ * `Wire` must assert validity at the construction site.
71
+ */
72
+ wire: ClosedWire & PlanarWire;
23
73
  /**
24
74
  * @ignore
25
75
  */
@@ -29,7 +79,7 @@ export default class Sketch implements SketchInterface {
29
79
  */
30
80
  _defaultDirection: Vec3;
31
81
  protected _baseFace: Face | null | undefined;
32
- constructor(wire: Wire, { defaultOrigin, defaultDirection, }?: {
82
+ constructor(wire: ClosedWire & PlanarWire, { defaultOrigin, defaultDirection, }?: {
33
83
  defaultOrigin?: PointInput;
34
84
  defaultDirection?: PointInput;
35
85
  });
@@ -47,9 +97,7 @@ export default class Sketch implements SketchInterface {
47
97
  get defaultDirection(): Vec3;
48
98
  /** Set the default extrusion/normal direction. */
49
99
  set defaultDirection(newDirection: PointInput);
50
- /**
51
- * Transforms the lines into a face. The lines should be closed.
52
- */
100
+ /** Transforms the lines into a face. The lines should be closed. */
53
101
  face(): Face;
54
102
  /** Return a clone of the underlying wire. */
55
103
  wires(): Wire;
@@ -58,8 +106,10 @@ export default class Sketch implements SketchInterface {
58
106
  /**
59
107
  * Revolves the drawing on an axis (defined by its direction and an origin
60
108
  * (defaults to the sketch origin)
109
+ *
110
+ * @remarks Consumes the sketch — calling this twice throws on the second call.
61
111
  */
62
- revolve(revolutionAxis?: PointInput, { origin }?: {
112
+ revolve(revolutionAxis?: PointInput, config?: {
63
113
  origin?: PointInput;
64
114
  }): Shape3D;
65
115
  /** Extrudes the sketch to a certain distance (along the default direction
@@ -71,8 +121,10 @@ export default class Sketch implements SketchInterface {
71
121
  * give a profile to the extrusion (the endFactor will scale the face, and
72
122
  * the profile will define how the scale is applied (either linearly or with
73
123
  * a s-shape).
124
+ *
125
+ * @remarks Consumes the sketch — calling this twice throws on the second call.
74
126
  */
75
- extrude(extrusionDistance: number, { extrusionDirection, extrusionProfile, twistAngle, origin, }?: {
127
+ extrude(extrusionDistance: number, config?: {
76
128
  extrusionDirection?: PointInput;
77
129
  extrusionProfile?: ExtrusionProfile;
78
130
  twistAngle?: number;
@@ -81,6 +133,9 @@ export default class Sketch implements SketchInterface {
81
133
  /**
82
134
  * Sweep along this sketch another sketch defined in the function
83
135
  * `sketchOnPlane`.
136
+ *
137
+ * @remarks Consumes both this sketch and the one returned by `sketchOnPlane` —
138
+ * calling either consumer twice throws on the second call.
84
139
  */
85
140
  sweepSketch(sketchOnPlane: (plane: Plane, origin: Vec3) => this, sweepConfig?: SweepOptions): Shape3D;
86
141
  /** Loft between this sketch and another sketch (or an array of them)
@@ -94,4 +149,3 @@ export default class Sketch implements SketchInterface {
94
149
  */
95
150
  loftWith(otherSketches: this | this[], loftConfig?: LoftOptions, returnShell?: boolean): Shape3D;
96
151
  }
97
- //# sourceMappingURL=sketch.d.ts.map