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.
- package/README.md +6 -0
- package/dist/{sketching/sketcher2d.d.ts → 2d/blueprints/baseSketcher2d.d.ts} +4 -91
- package/dist/2d/blueprints/blueprint.d.ts +0 -1
- package/dist/2d/blueprints/blueprintApproximations.d.ts +0 -1
- package/dist/2d/blueprints/blueprintCustomCorners.d.ts +0 -1
- package/dist/2d/blueprints/blueprintFns.d.ts +0 -1
- package/dist/2d/blueprints/blueprintOffset.d.ts +0 -1
- package/dist/2d/blueprints/blueprintSketcher.d.ts +29 -0
- package/dist/2d/blueprints/blueprints.d.ts +0 -1
- package/dist/2d/blueprints/boolean2D.d.ts +0 -1
- package/dist/2d/blueprints/booleanHelpers.d.ts +0 -1
- package/dist/2d/blueprints/booleanOperations.d.ts +0 -1
- package/dist/2d/blueprints/cannedBlueprints.d.ts +0 -1
- package/dist/2d/blueprints/compoundBlueprint.d.ts +0 -1
- package/dist/{sketching → 2d/blueprints}/ellipseUtils.d.ts +19 -2
- package/dist/{sketching/sketcherlib.d.ts → 2d/blueprints/genericSketcher.d.ts} +1 -20
- package/dist/2d/blueprints/index.d.ts +0 -1
- package/dist/2d/blueprints/intersectionSegments.d.ts +0 -1
- package/dist/2d/blueprints/lib.d.ts +0 -1
- package/dist/2d/blueprints/segmentAssembly.d.ts +0 -1
- package/dist/2d/blueprints/svg.d.ts +0 -1
- package/dist/2d/curve2dGeometryFns.d.ts +0 -1
- package/dist/2d/curves.d.ts +0 -1
- package/dist/2d/lib/approximations.d.ts +0 -1
- package/dist/2d/lib/boundingBox2d.d.ts +0 -1
- package/dist/2d/lib/curve2D.d.ts +0 -1
- package/dist/2d/lib/curve2dFns.d.ts +0 -1
- package/dist/2d/lib/customCorners.d.ts +0 -1
- package/dist/2d/lib/definitions.d.ts +0 -1
- package/dist/2d/lib/index.d.ts +0 -1
- package/dist/2d/lib/intersections.d.ts +0 -1
- package/dist/2d/lib/makeCurves.d.ts +0 -1
- package/dist/2d/lib/offset.d.ts +0 -1
- package/dist/2d/lib/precision.d.ts +0 -1
- package/dist/2d/lib/stitching.d.ts +0 -1
- package/dist/2d/lib/svgPath.d.ts +0 -1
- package/dist/2d/lib/utils.d.ts +0 -1
- package/dist/2d/lib/vectorOperations.d.ts +0 -1
- package/dist/2d.cjs +20 -19
- package/dist/2d.d.ts +0 -1
- package/dist/2d.js +7 -6
- package/dist/{blueprint-CscZ0-wr.cjs → blueprint-B8ogGJiQ.cjs} +16 -15
- package/dist/{blueprint-BCoJbaQN.js → blueprint-Dv45Evnu.js} +16 -15
- package/dist/{blueprintFns-DQP4KQHE.cjs → blueprintFns-BK3FYYjO.cjs} +4 -4
- package/dist/{blueprintFns-BZlx6BjG.js → blueprintFns-a9C2g8_E.js} +3 -3
- package/dist/{boolean2D-k1AJmCMp.cjs → blueprintSketcher-Bei866Bt.cjs} +65 -1383
- package/dist/{boolean2D-JvgjbESt.js → blueprintSketcher-xDsl9GXO.js} +70 -1316
- package/dist/boolean2D-DGuiEJHA.cjs +902 -0
- package/dist/boolean2D-Z7P0c012.js +855 -0
- package/dist/{booleanFns-D13Pb-NO.js → booleanFns-CRa80qMX.js} +9 -9
- package/dist/{booleanFns-DQW4lt7H.cjs → booleanFns-qmgMQyDl.cjs} +12 -12
- package/dist/brepjs.cjs +772 -112
- package/dist/brepjs.js +692 -42
- package/dist/cameraFns-1y1NyACI.cjs +315 -0
- package/dist/cameraFns-CUzI5RKS.js +274 -0
- package/dist/core/constants.d.ts +0 -1
- package/dist/core/curve2dHandle.d.ts +0 -1
- package/dist/core/dimensionTypes.d.ts +0 -1
- package/dist/core/disposal.d.ts +0 -1
- package/dist/core/errors.d.ts +0 -1
- package/dist/core/kernelBoundary.d.ts +0 -1
- package/dist/core/kernelCall.d.ts +0 -1
- package/dist/core/kernelErrorTranslation.d.ts +0 -1
- package/dist/core/planeOps.d.ts +0 -1
- package/dist/core/planeTypes.d.ts +0 -1
- package/dist/core/result.d.ts +0 -1
- package/dist/core/shapeTypeCache.d.ts +0 -1
- package/dist/core/shapeTypes.d.ts +0 -1
- package/dist/core/typeDiscriminants.d.ts +0 -1
- package/dist/core/types.d.ts +0 -1
- package/dist/core/validityTypes.d.ts +0 -1
- package/dist/core/vecOps.d.ts +0 -1
- package/dist/core.cjs +6 -6
- package/dist/core.d.ts +0 -1
- package/dist/core.js +6 -6
- package/dist/{cornerFinder-5BYE2cbd.cjs → cornerFinder-CC8EBRCR.cjs} +3 -3
- package/dist/{cornerFinder-Zg7pf2s0.js → cornerFinder-Dix2ghke.js} +3 -3
- package/dist/{curveFns-DhqUp0EI.js → curveFns-B4tWuinR.js} +2 -2
- package/dist/{curveFns-DrT54cm8.cjs → curveFns-CD20-4fM.cjs} +2 -2
- package/dist/{drawFns-lUXjhTYL.js → drawFns-BsarLfUN.js} +163 -769
- package/dist/{drawFns-DmP2o1oF.cjs → drawFns-LlOZoFyp.cjs} +203 -985
- package/dist/{errors-DboJwVCf.js → errors-0fYW_YnO.js} +2 -1
- package/dist/{errors-CXRNVCec.cjs → errors-Dv6pfNct.cjs} +2 -1
- package/dist/{extrudeFns-B9bVCt3C.js → extrudeFns-7pE8dIWz.js} +3 -3
- package/dist/{extrudeFns-BtblHdaJ.cjs → extrudeFns-DD36mWKv.cjs} +3 -3
- package/dist/faceFns-BFWz17_E.js +218 -0
- package/dist/faceFns-DP7i60yJ.cjs +343 -0
- package/dist/gear/gearFns.d.ts +129 -0
- package/dist/gear/gearMath.d.ts +88 -0
- package/dist/gear/gearProfile.d.ts +16 -0
- package/dist/gear/index.d.ts +3 -0
- package/dist/{helpers-BpXNcxuJ.cjs → helpers-Cyj6gaqy.cjs} +14 -13
- package/dist/{helpers-S_Ht6gwX.js → helpers-vV2ONZwD.js} +9 -8
- package/dist/{historyFns-B01hrkcJ.js → historyFns-DGb61ETW.js} +6 -6
- package/dist/{historyFns-RHO-QvEZ.cjs → historyFns-DfyrPjnK.cjs} +6 -6
- package/dist/{importFns-CG49lyTm.cjs → importFns-C-p0vl_h.cjs} +11 -19
- package/dist/{importFns-C0tUyeiW.js → importFns-Ci-L2iB3.js} +11 -19
- package/dist/index.d.ts +16 -8
- package/dist/io/dxfExportFns.d.ts +0 -1
- package/dist/io/dxfImportFns.d.ts +0 -1
- package/dist/io/gltfExportFns.d.ts +0 -1
- package/dist/io/gltfImportFns.d.ts +0 -1
- package/dist/io/importFns.d.ts +0 -1
- package/dist/io/ioUtils.d.ts +0 -1
- package/dist/io/objExportFns.d.ts +0 -1
- package/dist/io/objImportFns.d.ts +0 -1
- package/dist/io/stepConfigFns.d.ts +0 -1
- package/dist/io/svgImportFns.d.ts +0 -1
- package/dist/io/threemfExportFns.d.ts +0 -1
- package/dist/io/threemfImportFns.d.ts +0 -1
- package/dist/io.cjs +2 -2
- package/dist/io.d.ts +0 -1
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/booleanOps.d.ts +23 -1
- package/dist/kernel/brepkit/brepkitAdapter.d.ts +21 -408
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +0 -1
- package/dist/kernel/brepkit/constructionOps.d.ts +51 -1
- package/dist/kernel/brepkit/evolutionOps.d.ts +34 -3
- package/dist/kernel/brepkit/geometryOps.d.ts +63 -2
- package/dist/kernel/brepkit/helpers.d.ts +6 -1
- package/dist/kernel/brepkit/internalOps.d.ts +0 -1
- package/dist/kernel/brepkit/ioOps.d.ts +47 -9
- package/dist/kernel/brepkit/kernel2dOps.d.ts +113 -1
- package/dist/kernel/brepkit/measureOps.d.ts +39 -1
- package/dist/kernel/brepkit/meshOps.d.ts +7 -1
- package/dist/kernel/brepkit/modifierOps.d.ts +15 -1
- package/dist/kernel/brepkit/repairOps.d.ts +14 -1
- package/dist/kernel/brepkit/sketchOps.d.ts +3 -1
- package/dist/kernel/brepkit/sweepOps.d.ts +37 -1
- package/dist/kernel/brepkit/topologyOps.d.ts +16 -1
- package/dist/kernel/brepkit/transformOps.d.ts +18 -1
- package/dist/kernel/geometry2d.d.ts +0 -1
- package/dist/kernel/index.d.ts +0 -1
- package/dist/kernel/interfaces/booleanOps.d.ts +0 -1
- package/dist/kernel/interfaces/builderOps.d.ts +0 -1
- package/dist/kernel/interfaces/core.d.ts +0 -1
- package/dist/kernel/interfaces/curveOps.d.ts +0 -1
- package/dist/kernel/interfaces/evolutionOps.d.ts +0 -1
- package/dist/kernel/interfaces/index.d.ts +0 -1
- package/dist/kernel/interfaces/ioOps.d.ts +0 -1
- package/dist/kernel/interfaces/measureOps.d.ts +0 -1
- package/dist/kernel/interfaces/meshOps.d.ts +0 -1
- package/dist/kernel/interfaces/modifierOps.d.ts +0 -1
- package/dist/kernel/interfaces/primitiveOps.d.ts +0 -1
- package/dist/kernel/interfaces/repairOps.d.ts +0 -1
- package/dist/kernel/interfaces/surfaceOps.d.ts +0 -1
- package/dist/kernel/interfaces/sweepOps.d.ts +0 -1
- package/dist/kernel/interfaces/topologyOps.d.ts +0 -1
- package/dist/kernel/interfaces/transformOps.d.ts +0 -1
- package/dist/kernel/kernel2dTypes.d.ts +0 -1
- package/dist/kernel/occt/advancedOps.d.ts +126 -24
- package/dist/kernel/occt/booleanBatchOps.d.ts +0 -1
- package/dist/kernel/occt/booleanOps.d.ts +11 -1
- package/dist/kernel/occt/booleanPipelineOps.d.ts +10 -1
- package/dist/kernel/occt/constructorOps.d.ts +14 -1
- package/dist/kernel/occt/curveOps.d.ts +13 -1
- package/dist/kernel/occt/defaultAdapter.d.ts +10 -441
- package/dist/kernel/occt/evolutionOps.d.ts +0 -1
- package/dist/kernel/occt/extendedConstructorOps.d.ts +31 -1
- package/dist/kernel/occt/geometryQueryOps.d.ts +40 -1
- package/dist/kernel/occt/healingOps.d.ts +6 -1
- package/dist/kernel/occt/historyOps.d.ts +17 -1
- package/dist/kernel/occt/hullOps.d.ts +14 -1
- package/dist/kernel/occt/ioOps.d.ts +9 -1
- package/dist/kernel/occt/kernel2dOps.d.ts +113 -1
- package/dist/kernel/occt/measureOps.d.ts +19 -1
- package/dist/kernel/occt/meshOps.d.ts +5 -1
- package/dist/kernel/occt/modifierOps.d.ts +24 -1
- package/dist/kernel/occt/nurbsQueryOps.d.ts +5 -1
- package/dist/kernel/occt/sweepOps.d.ts +23 -1
- package/dist/kernel/occt/topologyOps.d.ts +10 -1
- package/dist/kernel/occt/transformOps.d.ts +14 -4
- package/dist/kernel/occt/wasmTypes/externals.d.ts +0 -1
- package/dist/kernel/occt/wasmTypes/index.d.ts +0 -1
- package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +0 -1
- package/dist/kernel/occtWasm/adapterShims.d.ts +4 -0
- package/dist/kernel/occtWasm/booleanOps.d.ts +11 -0
- package/dist/kernel/occtWasm/constructionOps.d.ts +36 -0
- package/dist/kernel/occtWasm/curveOps.d.ts +23 -0
- package/dist/kernel/occtWasm/evolutionOps.d.ts +17 -0
- package/dist/kernel/occtWasm/helpers.d.ts +31 -0
- package/dist/kernel/occtWasm/hullOps.d.ts +12 -0
- package/dist/kernel/occtWasm/ioOps.d.ts +52 -0
- package/dist/kernel/occtWasm/kernel2dOps.d.ts +90 -0
- package/dist/kernel/occtWasm/measureOps.d.ts +31 -0
- package/dist/kernel/occtWasm/meshOps.d.ts +6 -0
- package/dist/kernel/occtWasm/modifierOps.d.ts +14 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +30 -31
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +0 -1
- package/dist/kernel/occtWasm/primitiveOps.d.ts +10 -0
- package/dist/kernel/occtWasm/repairOps.d.ts +10 -0
- package/dist/kernel/occtWasm/surfaceOps.d.ts +28 -0
- package/dist/kernel/occtWasm/sweepOps.d.ts +38 -0
- package/dist/kernel/occtWasm/topologyOps.d.ts +14 -0
- package/dist/kernel/occtWasm/transformOps.d.ts +27 -0
- package/dist/kernel/perfStats.d.ts +0 -1
- package/dist/kernel/solverAdapter.d.ts +0 -1
- package/dist/kernel/types.d.ts +0 -1
- package/dist/{measureFns-C751QGI1.cjs → measureFns-6ifSQfJt.cjs} +6 -5
- package/dist/{measureFns-B8C85hbT.js → measureFns-Io2nHE1k.js} +4 -3
- package/dist/measurement/interferenceFns.d.ts +0 -1
- package/dist/measurement/measureCache.d.ts +0 -1
- package/dist/measurement/measureFns.d.ts +0 -1
- package/dist/measurement/measureTypes.d.ts +0 -1
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.d.ts +0 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-Cdhtbrhm.cjs → meshFns-BCRVZgPi.cjs} +3 -3
- package/dist/{meshFns-BgvsA-xA.js → meshFns-DSdkRFWq.js} +3 -3
- package/dist/ns/booleans.d.ts +0 -1
- package/dist/ns/construction.d.ts +0 -1
- package/dist/ns/ioNs.d.ts +0 -1
- package/dist/ns/measurement.d.ts +0 -1
- package/dist/ns/modifiers.d.ts +0 -1
- package/dist/ns/patterns.d.ts +0 -1
- package/dist/ns/primitives.d.ts +0 -1
- package/dist/ns/query.d.ts +0 -1
- package/dist/ns/transforms.d.ts +0 -1
- package/dist/occtWasmAdapter--TZGP9DX.js +4606 -0
- package/dist/occtWasmAdapter-C2VW-uYg.cjs +4719 -0
- package/dist/operations/api.d.ts +0 -1
- package/dist/operations/assemblyFns.d.ts +0 -1
- package/dist/operations/compoundOpsFns.d.ts +0 -1
- package/dist/operations/convexHullFns.d.ts +0 -1
- package/dist/operations/exporterFns.d.ts +0 -1
- package/dist/operations/exporterUtils.d.ts +0 -1
- package/dist/operations/exporters.d.ts +0 -1
- package/dist/operations/extrudeFns.d.ts +0 -1
- package/dist/operations/extrudeUtils.d.ts +0 -1
- package/dist/operations/guidedSweepFns.d.ts +0 -1
- package/dist/operations/historyFns.d.ts +0 -1
- package/dist/operations/loftFns.d.ts +0 -1
- package/dist/operations/mateFns.d.ts +0 -1
- package/dist/operations/multiSweepFns.d.ts +0 -1
- package/dist/operations/patternFns.d.ts +0 -1
- package/dist/operations/roofFns.d.ts +0 -1
- package/dist/operations/straightSkeleton.d.ts +0 -1
- package/dist/operations/sweepFns.d.ts +0 -1
- package/dist/operations.cjs +2 -2
- package/dist/operations.d.ts +0 -1
- package/dist/operations.js +2 -2
- package/dist/{planeOps-sTrM3dcQ.js → planeOps-4i2qEraD.js} +4 -4
- package/dist/{planeOps-BJOIbn4K.cjs → planeOps-CH4ruLuj.cjs} +4 -4
- package/dist/{primitiveFns-BLxaJ40A.cjs → primitiveFns-BH-JQPzh.cjs} +20 -19
- package/dist/{primitiveFns-fR9sWOEb.js → primitiveFns-C1p92ZcD.js} +8 -7
- package/dist/projection/cameraFns.d.ts +0 -1
- package/dist/projection/makeProjectedEdges.d.ts +0 -1
- package/dist/projection/projectionPlanes.d.ts +0 -1
- package/dist/projection.cjs +9 -0
- package/dist/projection.d.ts +11 -0
- package/dist/projection.js +2 -0
- package/dist/query/cornerFinder.d.ts +0 -1
- package/dist/query/directionUtils.d.ts +0 -1
- package/dist/query/edgeFinder.d.ts +0 -1
- package/dist/query/faceFinder.d.ts +0 -1
- package/dist/query/finderCore.d.ts +0 -1
- package/dist/query/finderFns.d.ts +0 -1
- package/dist/query/helpers.d.ts +0 -1
- package/dist/query/shapeDistanceFilter.d.ts +0 -1
- package/dist/query/shapeFinders.d.ts +0 -1
- package/dist/query/vertexFinder.d.ts +0 -1
- package/dist/query/wireFinder.d.ts +0 -1
- package/dist/query.cjs +2 -2
- package/dist/query.d.ts +0 -1
- package/dist/query.js +2 -2
- package/dist/result.cjs +1 -1
- package/dist/result.d.ts +0 -1
- package/dist/result.js +1 -1
- package/dist/{shapeFns-183zCtMc.cjs → shapeFns-B7x82K11.cjs} +17 -17
- package/dist/{shapeFns-2X3VOi1a.js → shapeFns-BhZ9weSI.js} +4 -4
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.d.ts +0 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-CU1Jwq9C.js → shapeRefFns-B9PsEqWf.js} +6 -4
- package/dist/{shapeRefFns-CFyv5cdW.cjs → shapeRefFns-wDY88A8u.cjs} +8 -6
- package/dist/{shapeTypes-C0MDggKf.cjs → shapeTypes-BTt_LLbk.cjs} +6922 -7884
- package/dist/{shapeTypes-CN0GUoHr.js → shapeTypes-C--1jaT1.js} +6900 -7862
- package/dist/sketching/cannedSketches.d.ts +0 -1
- package/dist/sketching/compoundSketch.d.ts +8 -7
- package/dist/sketching/draw3d.d.ts +1 -2
- package/dist/sketching/drawFns.d.ts +4 -3
- package/dist/sketching/{draw.d.ts → drawing.d.ts} +2 -127
- package/dist/sketching/drawingFactories.d.ts +94 -0
- package/dist/sketching/drawingPen.d.ts +34 -0
- package/dist/sketching/faceSketcher.d.ts +52 -0
- package/dist/sketching/shortcuts.d.ts +0 -1
- package/dist/sketching/sketch.d.ts +64 -10
- package/dist/sketching/sketchFns.d.ts +42 -95
- package/dist/sketching/sketcher.d.ts +2 -3
- package/dist/sketching/sketches.d.ts +5 -6
- package/dist/sketching.cjs +19 -18
- package/dist/sketching.d.ts +8 -5
- package/dist/sketching.js +3 -2
- package/dist/{solidBuilders-DACzFqvX.cjs → solidBuilders-CX_197Xm.cjs} +3 -3
- package/dist/{solidBuilders-BuS5ByIl.js → solidBuilders-Xs7VDMGD.js} +3 -3
- package/dist/{surfaceBuilders-CbH4FIW5.cjs → surfaceBuilders-CYeTNW33.cjs} +25 -3
- package/dist/{surfaceBuilders-BVH2SL-z.js → surfaceBuilders-CinmHCbZ.js} +20 -4
- package/dist/text/fontRegistry.d.ts +22 -0
- package/dist/text/sketchText.d.ts +30 -0
- package/dist/text/textBlueprints.d.ts +0 -91
- package/dist/text/textMetrics.d.ts +39 -0
- package/dist/text.cjs +9 -0
- package/dist/text.d.ts +12 -0
- package/dist/text.js +3 -0
- package/dist/textBlueprints-Do6xNsLt.js +643 -0
- package/dist/textBlueprints-oWhiABaY.cjs +800 -0
- package/dist/textMetrics-BjJ8sn_e.js +69 -0
- package/dist/textMetrics-CUvtglQE.cjs +86 -0
- package/dist/topology/adjacencyFns.d.ts +0 -1
- package/dist/topology/api.d.ts +0 -1
- package/dist/topology/apiTypes.d.ts +0 -1
- package/dist/topology/booleanDiagnosticFns.d.ts +0 -1
- package/dist/topology/booleanFns.d.ts +0 -1
- package/dist/topology/cast.d.ts +0 -1
- package/dist/topology/chamferAngleFns.d.ts +0 -1
- package/dist/topology/compoundOpsFns.d.ts +0 -1
- package/dist/topology/curveBuilders.d.ts +12 -1
- package/dist/topology/curveFns.d.ts +0 -1
- package/dist/topology/evolutionFns.d.ts +0 -1
- package/dist/topology/faceFns.d.ts +0 -1
- package/dist/topology/healingFns.d.ts +0 -1
- package/dist/topology/hullFns.d.ts +0 -1
- package/dist/topology/index.d.ts +0 -1
- package/dist/topology/meshCache.d.ts +0 -1
- package/dist/topology/meshFns.d.ts +0 -1
- package/dist/topology/metadata/colorFns.d.ts +0 -1
- package/dist/topology/metadata/faceTagFns.d.ts +0 -1
- package/dist/topology/metadata/metadataPropagation.d.ts +0 -1
- package/dist/topology/metadata/originTrackingFns.d.ts +0 -1
- package/dist/topology/minkowskiFns.d.ts +0 -1
- package/dist/topology/modifierFns.d.ts +0 -1
- package/dist/topology/nurbsFns.d.ts +0 -1
- package/dist/topology/polyhedronFns.d.ts +0 -1
- package/dist/topology/positionFns.d.ts +0 -1
- package/dist/topology/primitiveFns.d.ts +0 -1
- package/dist/topology/shapeBooleans.d.ts +0 -1
- package/dist/topology/shapeFns.d.ts +0 -1
- package/dist/topology/shapeHelpers.d.ts +0 -1
- package/dist/topology/shapeModifiers.d.ts +0 -1
- package/dist/topology/shapeRef/index.d.ts +0 -1
- package/dist/topology/shapeRef/scoring.d.ts +0 -1
- package/dist/topology/shapeRef/shapeRefFns.d.ts +0 -1
- package/dist/topology/shapeRef/shapeRefTypes.d.ts +0 -1
- package/dist/topology/shapeUtils.d.ts +0 -1
- package/dist/topology/solidBuilders.d.ts +0 -1
- package/dist/topology/surfaceBuilders.d.ts +0 -1
- package/dist/topology/surfaceFns.d.ts +0 -1
- package/dist/topology/threeHelpers.d.ts +0 -1
- package/dist/topology/topologyQueryFns.d.ts +0 -1
- package/dist/topology/transformFns.d.ts +0 -1
- package/dist/topology/wrapperFns.d.ts +0 -1
- package/dist/topology.cjs +18 -17
- package/dist/topology.d.ts +0 -1
- package/dist/topology.js +7 -6
- package/dist/{faceFns-22idS-ht.cjs → topologyQueryFns-BU0qdNJP.cjs} +2 -342
- package/dist/{faceFns-NbWd8-iR.js → topologyQueryFns-Dhf85ZBK.js} +3 -217
- package/dist/utils/arrayAccess.d.ts +0 -1
- package/dist/utils/bug.d.ts +0 -1
- package/dist/utils/ioFilename.d.ts +0 -1
- package/dist/utils/precisionRound.d.ts +0 -1
- package/dist/utils/range.d.ts +0 -1
- package/dist/utils/uuid.d.ts +0 -1
- package/dist/utils/vec2d.d.ts +0 -1
- package/dist/utils/vec3.d.ts +8 -1
- package/dist/utils/zip.d.ts +0 -1
- package/dist/vec3-BRj3eI54.js +25 -0
- package/dist/vec3-S4Oh59IX.cjs +36 -0
- package/dist/vectors.cjs +4 -4
- package/dist/vectors.d.ts +0 -1
- package/dist/vectors.js +4 -4
- package/dist/worker/index.d.ts +0 -1
- package/dist/worker/protocol.d.ts +0 -1
- package/dist/worker/taskQueue.d.ts +0 -1
- package/dist/worker/workerClient.d.ts +0 -1
- package/dist/worker/workerHandler.d.ts +0 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.ts +0 -1
- package/dist/worker.js +1 -1
- package/package.json +35 -14
- package/dist/2d/blueprints/blueprint.d.ts.map +0 -1
- package/dist/2d/blueprints/blueprintApproximations.d.ts.map +0 -1
- package/dist/2d/blueprints/blueprintCustomCorners.d.ts.map +0 -1
- package/dist/2d/blueprints/blueprintFns.d.ts.map +0 -1
- package/dist/2d/blueprints/blueprintOffset.d.ts.map +0 -1
- package/dist/2d/blueprints/blueprints.d.ts.map +0 -1
- package/dist/2d/blueprints/boolean2D.d.ts.map +0 -1
- package/dist/2d/blueprints/booleanHelpers.d.ts.map +0 -1
- package/dist/2d/blueprints/booleanOperations.d.ts.map +0 -1
- package/dist/2d/blueprints/cannedBlueprints.d.ts.map +0 -1
- package/dist/2d/blueprints/compoundBlueprint.d.ts.map +0 -1
- package/dist/2d/blueprints/index.d.ts.map +0 -1
- package/dist/2d/blueprints/intersectionSegments.d.ts.map +0 -1
- package/dist/2d/blueprints/lib.d.ts.map +0 -1
- package/dist/2d/blueprints/segmentAssembly.d.ts.map +0 -1
- package/dist/2d/blueprints/svg.d.ts.map +0 -1
- package/dist/2d/curve2dGeometryFns.d.ts.map +0 -1
- package/dist/2d/curves.d.ts.map +0 -1
- package/dist/2d/lib/approximations.d.ts.map +0 -1
- package/dist/2d/lib/boundingBox2d.d.ts.map +0 -1
- package/dist/2d/lib/curve2D.d.ts.map +0 -1
- package/dist/2d/lib/curve2dFns.d.ts.map +0 -1
- package/dist/2d/lib/customCorners.d.ts.map +0 -1
- package/dist/2d/lib/definitions.d.ts.map +0 -1
- package/dist/2d/lib/index.d.ts.map +0 -1
- package/dist/2d/lib/intersections.d.ts.map +0 -1
- package/dist/2d/lib/makeCurves.d.ts.map +0 -1
- package/dist/2d/lib/offset.d.ts.map +0 -1
- package/dist/2d/lib/precision.d.ts.map +0 -1
- package/dist/2d/lib/stitching.d.ts.map +0 -1
- package/dist/2d/lib/svgPath.d.ts.map +0 -1
- package/dist/2d/lib/utils.d.ts.map +0 -1
- package/dist/2d/lib/vectorOperations.d.ts.map +0 -1
- package/dist/2d.d.ts.map +0 -1
- package/dist/core/constants.d.ts.map +0 -1
- package/dist/core/curve2dHandle.d.ts.map +0 -1
- package/dist/core/dimensionTypes.d.ts.map +0 -1
- package/dist/core/disposal.d.ts.map +0 -1
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/kernelBoundary.d.ts.map +0 -1
- package/dist/core/kernelCall.d.ts.map +0 -1
- package/dist/core/kernelErrorTranslation.d.ts.map +0 -1
- package/dist/core/planeOps.d.ts.map +0 -1
- package/dist/core/planeTypes.d.ts.map +0 -1
- package/dist/core/result.d.ts.map +0 -1
- package/dist/core/shapeTypeCache.d.ts.map +0 -1
- package/dist/core/shapeTypes.d.ts.map +0 -1
- package/dist/core/typeDiscriminants.d.ts.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/validityTypes.d.ts.map +0 -1
- package/dist/core/vecOps.d.ts.map +0 -1
- package/dist/core.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/io/dxfExportFns.d.ts.map +0 -1
- package/dist/io/dxfImportFns.d.ts.map +0 -1
- package/dist/io/gltfExportFns.d.ts.map +0 -1
- package/dist/io/gltfImportFns.d.ts.map +0 -1
- package/dist/io/importFns.d.ts.map +0 -1
- package/dist/io/ioUtils.d.ts.map +0 -1
- package/dist/io/objExportFns.d.ts.map +0 -1
- package/dist/io/objImportFns.d.ts.map +0 -1
- package/dist/io/stepConfigFns.d.ts.map +0 -1
- package/dist/io/svgImportFns.d.ts.map +0 -1
- package/dist/io/threemfExportFns.d.ts.map +0 -1
- package/dist/io/threemfImportFns.d.ts.map +0 -1
- package/dist/io.d.ts.map +0 -1
- package/dist/kernel/brepkit/booleanOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +0 -1
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts.map +0 -1
- package/dist/kernel/brepkit/constructionOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/evolutionOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/geometryOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/helpers.d.ts.map +0 -1
- package/dist/kernel/brepkit/internalOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/ioOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/kernel2dOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/measureOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/meshOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/modifierOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/repairOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/sketchOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/sweepOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/topologyOps.d.ts.map +0 -1
- package/dist/kernel/brepkit/transformOps.d.ts.map +0 -1
- package/dist/kernel/geometry2d.d.ts.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/interfaces/booleanOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/builderOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/core.d.ts.map +0 -1
- package/dist/kernel/interfaces/curveOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/evolutionOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/index.d.ts.map +0 -1
- package/dist/kernel/interfaces/ioOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/measureOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/meshOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/modifierOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/primitiveOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/repairOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/surfaceOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/sweepOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/topologyOps.d.ts.map +0 -1
- package/dist/kernel/interfaces/transformOps.d.ts.map +0 -1
- package/dist/kernel/kernel2dTypes.d.ts.map +0 -1
- package/dist/kernel/occt/advancedOps.d.ts.map +0 -1
- package/dist/kernel/occt/booleanBatchOps.d.ts.map +0 -1
- package/dist/kernel/occt/booleanOps.d.ts.map +0 -1
- package/dist/kernel/occt/booleanPipelineOps.d.ts.map +0 -1
- package/dist/kernel/occt/constructorOps.d.ts.map +0 -1
- package/dist/kernel/occt/curveOps.d.ts.map +0 -1
- package/dist/kernel/occt/defaultAdapter.d.ts.map +0 -1
- package/dist/kernel/occt/evolutionOps.d.ts.map +0 -1
- package/dist/kernel/occt/extendedConstructorOps.d.ts.map +0 -1
- package/dist/kernel/occt/geometryQueryOps.d.ts.map +0 -1
- package/dist/kernel/occt/healingOps.d.ts.map +0 -1
- package/dist/kernel/occt/historyOps.d.ts.map +0 -1
- package/dist/kernel/occt/hullOps.d.ts.map +0 -1
- package/dist/kernel/occt/ioOps.d.ts.map +0 -1
- package/dist/kernel/occt/kernel2dOps.d.ts.map +0 -1
- package/dist/kernel/occt/measureOps.d.ts.map +0 -1
- package/dist/kernel/occt/meshOps.d.ts.map +0 -1
- package/dist/kernel/occt/modifierOps.d.ts.map +0 -1
- package/dist/kernel/occt/nurbsQueryOps.d.ts.map +0 -1
- package/dist/kernel/occt/sweepOps.d.ts.map +0 -1
- package/dist/kernel/occt/topologyOps.d.ts.map +0 -1
- package/dist/kernel/occt/transformOps.d.ts.map +0 -1
- package/dist/kernel/occt/wasmTypes/externals.d.ts.map +0 -1
- package/dist/kernel/occt/wasmTypes/index.d.ts.map +0 -1
- package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +0 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +0 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts.map +0 -1
- package/dist/kernel/perfStats.d.ts.map +0 -1
- package/dist/kernel/solverAdapter.d.ts.map +0 -1
- package/dist/kernel/types.d.ts.map +0 -1
- package/dist/measurement/interferenceFns.d.ts.map +0 -1
- package/dist/measurement/measureCache.d.ts.map +0 -1
- package/dist/measurement/measureFns.d.ts.map +0 -1
- package/dist/measurement/measureTypes.d.ts.map +0 -1
- package/dist/measurement.d.ts.map +0 -1
- package/dist/ns/booleans.d.ts.map +0 -1
- package/dist/ns/construction.d.ts.map +0 -1
- package/dist/ns/ioNs.d.ts.map +0 -1
- package/dist/ns/measurement.d.ts.map +0 -1
- package/dist/ns/modifiers.d.ts.map +0 -1
- package/dist/ns/patterns.d.ts.map +0 -1
- package/dist/ns/primitives.d.ts.map +0 -1
- package/dist/ns/query.d.ts.map +0 -1
- package/dist/ns/transforms.d.ts.map +0 -1
- package/dist/occtWasmAdapter-CuZRRioz.cjs +0 -3947
- package/dist/occtWasmAdapter-DIhUXubY.js +0 -3834
- package/dist/operations/api.d.ts.map +0 -1
- package/dist/operations/assemblyFns.d.ts.map +0 -1
- package/dist/operations/compoundOpsFns.d.ts.map +0 -1
- package/dist/operations/convexHullFns.d.ts.map +0 -1
- package/dist/operations/exporterFns.d.ts.map +0 -1
- package/dist/operations/exporterUtils.d.ts.map +0 -1
- package/dist/operations/exporters.d.ts.map +0 -1
- package/dist/operations/extrudeFns.d.ts.map +0 -1
- package/dist/operations/extrudeUtils.d.ts.map +0 -1
- package/dist/operations/guidedSweepFns.d.ts.map +0 -1
- package/dist/operations/historyFns.d.ts.map +0 -1
- package/dist/operations/loftFns.d.ts.map +0 -1
- package/dist/operations/mateFns.d.ts.map +0 -1
- package/dist/operations/multiSweepFns.d.ts.map +0 -1
- package/dist/operations/patternFns.d.ts.map +0 -1
- package/dist/operations/roofFns.d.ts.map +0 -1
- package/dist/operations/straightSkeleton.d.ts.map +0 -1
- package/dist/operations/sweepFns.d.ts.map +0 -1
- package/dist/operations.d.ts.map +0 -1
- package/dist/projection/cameraFns.d.ts.map +0 -1
- package/dist/projection/makeProjectedEdges.d.ts.map +0 -1
- package/dist/projection/projectionPlanes.d.ts.map +0 -1
- package/dist/query/cornerFinder.d.ts.map +0 -1
- package/dist/query/directionUtils.d.ts.map +0 -1
- package/dist/query/edgeFinder.d.ts.map +0 -1
- package/dist/query/faceFinder.d.ts.map +0 -1
- package/dist/query/finderCore.d.ts.map +0 -1
- package/dist/query/finderFns.d.ts.map +0 -1
- package/dist/query/helpers.d.ts.map +0 -1
- package/dist/query/shapeDistanceFilter.d.ts.map +0 -1
- package/dist/query/shapeFinders.d.ts.map +0 -1
- package/dist/query/vertexFinder.d.ts.map +0 -1
- package/dist/query/wireFinder.d.ts.map +0 -1
- package/dist/query.d.ts.map +0 -1
- package/dist/quick.d.ts.map +0 -1
- package/dist/result.d.ts.map +0 -1
- package/dist/shapeRef.d.ts.map +0 -1
- package/dist/sketching/cannedSketches.d.ts.map +0 -1
- package/dist/sketching/compoundSketch.d.ts.map +0 -1
- package/dist/sketching/draw.d.ts.map +0 -1
- package/dist/sketching/draw3d.d.ts.map +0 -1
- package/dist/sketching/drawFns.d.ts.map +0 -1
- package/dist/sketching/ellipseUtils.d.ts.map +0 -1
- package/dist/sketching/shortcuts.d.ts.map +0 -1
- package/dist/sketching/sketch.d.ts.map +0 -1
- package/dist/sketching/sketchFns.d.ts.map +0 -1
- package/dist/sketching/sketchLib.d.ts +0 -47
- package/dist/sketching/sketchLib.d.ts.map +0 -1
- package/dist/sketching/sketchUtils.d.ts +0 -8
- package/dist/sketching/sketchUtils.d.ts.map +0 -1
- package/dist/sketching/sketcher.d.ts.map +0 -1
- package/dist/sketching/sketcher2d.d.ts.map +0 -1
- package/dist/sketching/sketcherlib.d.ts.map +0 -1
- package/dist/sketching/sketches.d.ts.map +0 -1
- package/dist/sketching.d.ts.map +0 -1
- package/dist/text/textBlueprints.d.ts.map +0 -1
- package/dist/topology/adjacencyFns.d.ts.map +0 -1
- package/dist/topology/api.d.ts.map +0 -1
- package/dist/topology/apiTypes.d.ts.map +0 -1
- package/dist/topology/booleanDiagnosticFns.d.ts.map +0 -1
- package/dist/topology/booleanFns.d.ts.map +0 -1
- package/dist/topology/cast.d.ts.map +0 -1
- package/dist/topology/chamferAngleFns.d.ts.map +0 -1
- package/dist/topology/compoundOpsFns.d.ts.map +0 -1
- package/dist/topology/curveBuilders.d.ts.map +0 -1
- package/dist/topology/curveFns.d.ts.map +0 -1
- package/dist/topology/evolutionFns.d.ts.map +0 -1
- package/dist/topology/faceFns.d.ts.map +0 -1
- package/dist/topology/healingFns.d.ts.map +0 -1
- package/dist/topology/hullFns.d.ts.map +0 -1
- package/dist/topology/index.d.ts.map +0 -1
- package/dist/topology/meshCache.d.ts.map +0 -1
- package/dist/topology/meshFns.d.ts.map +0 -1
- package/dist/topology/metadata/colorFns.d.ts.map +0 -1
- package/dist/topology/metadata/faceTagFns.d.ts.map +0 -1
- package/dist/topology/metadata/metadataPropagation.d.ts.map +0 -1
- package/dist/topology/metadata/originTrackingFns.d.ts.map +0 -1
- package/dist/topology/minkowskiFns.d.ts.map +0 -1
- package/dist/topology/modifierFns.d.ts.map +0 -1
- package/dist/topology/nurbsFns.d.ts.map +0 -1
- package/dist/topology/polyhedronFns.d.ts.map +0 -1
- package/dist/topology/positionFns.d.ts.map +0 -1
- package/dist/topology/primitiveFns.d.ts.map +0 -1
- package/dist/topology/shapeBooleans.d.ts.map +0 -1
- package/dist/topology/shapeFns.d.ts.map +0 -1
- package/dist/topology/shapeHelpers.d.ts.map +0 -1
- package/dist/topology/shapeModifiers.d.ts.map +0 -1
- package/dist/topology/shapeRef/index.d.ts.map +0 -1
- package/dist/topology/shapeRef/scoring.d.ts.map +0 -1
- package/dist/topology/shapeRef/shapeRefFns.d.ts.map +0 -1
- package/dist/topology/shapeRef/shapeRefTypes.d.ts.map +0 -1
- package/dist/topology/shapeUtils.d.ts.map +0 -1
- package/dist/topology/solidBuilders.d.ts.map +0 -1
- package/dist/topology/surfaceBuilders.d.ts.map +0 -1
- package/dist/topology/surfaceFns.d.ts.map +0 -1
- package/dist/topology/threeHelpers.d.ts.map +0 -1
- package/dist/topology/topologyQueryFns.d.ts.map +0 -1
- package/dist/topology/transformFns.d.ts.map +0 -1
- package/dist/topology/wrapperFns.d.ts.map +0 -1
- package/dist/topology.d.ts.map +0 -1
- package/dist/utils/arrayAccess.d.ts.map +0 -1
- package/dist/utils/bug.d.ts.map +0 -1
- package/dist/utils/ioFilename.d.ts.map +0 -1
- package/dist/utils/precisionRound.d.ts.map +0 -1
- package/dist/utils/range.d.ts.map +0 -1
- package/dist/utils/uuid.d.ts.map +0 -1
- package/dist/utils/vec2d.d.ts.map +0 -1
- package/dist/utils/vec3.d.ts.map +0 -1
- package/dist/utils/zip.d.ts.map +0 -1
- package/dist/vectors.d.ts.map +0 -1
- package/dist/worker/index.d.ts.map +0 -1
- package/dist/worker/protocol.d.ts.map +0 -1
- package/dist/worker/taskQueue.d.ts.map +0 -1
- package/dist/worker/workerClient.d.ts.map +0 -1
- package/dist/worker/workerHandler.d.ts.map +0 -1
- package/dist/worker.d.ts.map +0 -1
- /package/dist/{arrayAccess-DsnQpdSD.cjs → arrayAccess-7pTWqkJu.cjs} +0 -0
- /package/dist/{arrayAccess-tCIbjLs5.js → arrayAccess-C5IWcxs9.js} +0 -0
- /package/dist/{constants-csSEYddm.js → constants-Ci5CA3aZ.js} +0 -0
- /package/dist/{constants-BNP_xnBN.cjs → constants-DTorLmes.cjs} +0 -0
- /package/dist/{types--GD-LVc6.js → types-BIdk_GJY.js} +0 -0
- /package/dist/{types-gLi9wL0N.cjs → types-CDkxah-M.cjs} +0 -0
- /package/dist/{vecOps-CODplJp3.cjs → vecOps-D7xplSx8.cjs} +0 -0
- /package/dist/{vecOps-B-PCHgyB.js → vecOps-DVROrqTV.js} +0 -0
- /package/dist/{workerHandler-C-3cFcsQ.cjs → workerHandler-C7seK7H-.cjs} +0 -0
- /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 {
|
|
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():
|
|
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,
|
|
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,
|
|
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 './
|
|
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 './
|
|
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):
|
|
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,
|
|
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 {
|
|
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 {};
|
|
@@ -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,
|
|
6
|
-
|
|
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
|
-
|
|
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:
|
|
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,
|
|
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,
|
|
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
|