@bitbybit-dev/cad-cloud-sdk 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/generated.d.ts +752 -10
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +955 -121
- package/dist/types/pipeline-operations.d.ts.map +1 -1
- package/dist/types/pipeline-operations.js +1 -1
- package/dist/types/pipeline-operations.js.map +1 -1
- package/dist/types/schema-exports.d.ts +77 -1
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +469 -0
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +536 -0
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/types/generated.ts +752 -10
- package/src/types/pipeline-operations.ts +991 -121
- package/src/types/schema-exports.ts +77 -1
- package/src/validation/request-schemas.ts +536 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** All valid pipeline operation paths. */
|
|
2
|
-
export type OperationPath = "color.getBlueParam" | "color.getGreenParam" | "color.getRedParam" | "color.hexColor" | "color.hexToRgb" | "color.hexToRgbMapped" | "color.invert" | "color.linearToSrgb" | "color.rgb1Color" | "color.rgb255Color" | "color.rgba1Color" | "color.rgba255Color" | "color.rgbAtomic1Color" | "color.rgbAtomic255Color" | "color.rgbObjToHex" | "color.rgbToBlue" | "color.rgbToGreen" | "color.rgbToHex" | "color.rgbToRed" | "color.srgbToLinear" | "csv.arrayToCsv" | "csv.getColumnCount" | "csv.getHeaders" | "csv.getRowCount" | "csv.jsonToCsv" | "csv.jsonToCsvAuto" | "csv.parseToArray" | "csv.parseToJson" | "csv.parseToJsonWithHeaders" | "csv.queryColumn" | "csv.queryRowsByValue" | "jscad.booleans.intersect" | "jscad.booleans.intersectTwo" | "jscad.booleans.minkowskiSum" | "jscad.booleans.subtract" | "jscad.booleans.subtractFrom" | "jscad.booleans.subtractTwo" | "jscad.booleans.union" | "jscad.booleans.unionTwo" | "jscad.colors.colorize" | "jscad.downloadGeometry3MF" | "jscad.downloadGeometryDxf" | "jscad.downloadSolidsSTL" | "jscad.downloadSolidSTL" | "jscad.expansions.expand" | "jscad.expansions.offset" | "jscad.extrusions.extrudeLinear" | "jscad.extrusions.extrudeRectangular" | "jscad.extrusions.extrudeRectangularPoints" | "jscad.extrusions.extrudeRotate" | "jscad.hulls.hull" | "jscad.hulls.hullChain" | "jscad.hulls.isConvex" | "jscad.path.appendArc" | "jscad.path.appendPoints" | "jscad.path.appendPolyline" | "jscad.path.close" | "jscad.path.createEmpty" | "jscad.path.createFromPoints" | "jscad.path.createFromPolyline" | "jscad.path.createPathsFromPoints" | "jscad.polygon.circle" | "jscad.polygon.createFromCurve" | "jscad.polygon.createFromPath" | "jscad.polygon.createFromPoints" | "jscad.polygon.createFromPolyline" | "jscad.polygon.ellipse" | "jscad.polygon.rectangle" | "jscad.polygon.roundedRectangle" | "jscad.polygon.square" | "jscad.polygon.star" | "jscad.shapes.cube" | "jscad.shapes.cubesOnCenterPoints" | "jscad.shapes.cuboid" | "jscad.shapes.cuboidsOnCenterPoints" | "jscad.shapes.cylinder" | "jscad.shapes.cylinderElliptic" | "jscad.shapes.cylinderEllipticOnCenterPoints" | "jscad.shapes.cylindersOnCenterPoints" | "jscad.shapes.ellipsoid" | "jscad.shapes.ellipsoidsOnCenterPoints" | "jscad.shapes.fromPolygonPoints" | "jscad.shapes.geodesicSphere" | "jscad.shapes.geodesicSpheresOnCenterPoints" | "jscad.shapes.roundedCuboid" | "jscad.shapes.roundedCuboidsOnCenterPoints" | "jscad.shapes.roundedCylinder" | "jscad.shapes.roundedCylindersOnCenterPoints" | "jscad.shapes.sphere" | "jscad.shapes.spheresOnCenterPoints" | "jscad.shapes.torus" | "jscad.text.createVectorText" | "jscad.text.cylindricalText" | "jscad.text.sphericalText" | "jscad.toPolygonPoints" | "jscad.transformSolid" | "jscad.transformSolids" | "json.createEmpty" | "json.getJsonFromArrayByFirstPropMatch" | "json.getValueOnProp" | "json.parse" | "json.paths" | "json.previewAndSaveJson" | "json.previewJson" | "json.query" | "json.setValue" | "json.setValueOnProp" | "json.setValuesOnPaths" | "json.stringify" | "line.create" | "line.createSegment" | "line.getEndPoint" | "line.getPointOnLine" | "line.getStartPoint" | "line.length" | "line.lineLineIntersection" | "line.linesBetweenPoints" | "line.linesBetweenStartAndEndPoints" | "line.linesToSegments" | "line.lineToSegment" | "line.reverse" | "line.segmentsToLines" | "line.segmentToLine" | "line.transformLine" | "line.transformsForLines" | "lists.addItem" | "lists.addItemAtIndex" | "lists.addItemAtIndexes" | "lists.addItemFirstLast" | "lists.addItemsAtIndexes" | "lists.concatenate" | "lists.createEmptyList" | "lists.findIndex" | "lists.flipLists" | "lists.getByPattern" | "lists.getFirstItem" | "lists.getItem" | "lists.getLastItem" | "lists.getListDepth" | "lists.getLongestListLength" | "lists.getNthItem" | "lists.getSubList" | "lists.groupNth" | "lists.includes" | "lists.interleave" | "lists.listLength" | "lists.mergeElementsOfLists" | "lists.prependItem" | "lists.randomGetThreshold" | "lists.randomRemoveThreshold" | "lists.removeAllItems" | "lists.removeDuplicateNumbers" | "lists.removeDuplicateNumbersTolerance" | "lists.removeDuplicates" | "lists.removeFirstItem" | "lists.removeItemAtIndex" | "lists.removeItemAtIndexFromEnd" | "lists.removeItemsAtIndexes" | "lists.removeLastItem" | "lists.removeNthItem" | "lists.repeat" | "lists.repeatInPattern" | "lists.reverse" | "lists.shuffle" | "lists.sortByPropValue" | "lists.sortNumber" | "lists.sortTexts" | "logic.boolean" | "logic.compare" | "logic.firstDefinedValueGate" | "logic.not" | "logic.notList" | "logic.randomBooleans" | "logic.thresholdBooleanList" | "logic.thresholdGapsBooleanList" | "logic.twoThresholdRandomGradient" | "logic.valueGate" | "manifold.crossSection.booleans.add" | "manifold.crossSection.booleans.difference" | "manifold.crossSection.booleans.differenceTwo" | "manifold.crossSection.booleans.intersect" | "manifold.crossSection.booleans.intersection" | "manifold.crossSection.booleans.intersectionTwo" | "manifold.crossSection.booleans.subtract" | "manifold.crossSection.booleans.union" | "manifold.crossSection.booleans.unionTwo" | "manifold.crossSection.crossSectionFromPoints" | "manifold.crossSection.crossSectionFromPolygons" | "manifold.crossSection.crossSectionsToPoints" | "manifold.crossSection.crossSectionsToPolygons" | "manifold.crossSection.crossSectionToPoints" | "manifold.crossSection.crossSectionToPolygons" | "manifold.crossSection.evaluate.area" | "manifold.crossSection.evaluate.bounds" | "manifold.crossSection.evaluate.isEmpty" | "manifold.crossSection.evaluate.numContour" | "manifold.crossSection.evaluate.numVert" | "manifold.crossSection.operations.compose" | "manifold.crossSection.operations.decompose" | "manifold.crossSection.operations.extrude" | "manifold.crossSection.operations.hull" | "manifold.crossSection.operations.loft" | "manifold.crossSection.operations.offset" | "manifold.crossSection.operations.revolve" | "manifold.crossSection.operations.simplify" | "manifold.crossSection.operations.sweep" | "manifold.crossSection.shapes.circle" | "manifold.crossSection.shapes.create" | "manifold.crossSection.shapes.rectangle" | "manifold.crossSection.shapes.square" | "manifold.crossSection.transforms.mirror" | "manifold.crossSection.transforms.rotate" | "manifold.crossSection.transforms.scale" | "manifold.crossSection.transforms.scale2D" | "manifold.crossSection.transforms.transform" | "manifold.crossSection.transforms.translate" | "manifold.crossSection.transforms.translateXY" | "manifold.decomposeManifoldOrCrossSection" | "manifold.decomposeManifoldsOrCrossSections" | "manifold.deleteManifoldOrCrossSection" | "manifold.deleteManifoldsOrCrossSections" | "manifold.manifold.booleans.add" | "manifold.manifold.booleans.difference" | "manifold.manifold.booleans.differenceTwo" | "manifold.manifold.booleans.intersect" | "manifold.manifold.booleans.intersection" | "manifold.manifold.booleans.intersectionTwo" | "manifold.manifold.booleans.minkowskiDifference" | "manifold.manifold.booleans.minkowskiSum" | "manifold.manifold.booleans.split" | "manifold.manifold.booleans.splitByPlane" | "manifold.manifold.booleans.splitByPlaneOnOffsets" | "manifold.manifold.booleans.subtract" | "manifold.manifold.booleans.trimByPlane" | "manifold.manifold.booleans.union" | "manifold.manifold.booleans.unionTwo" | "manifold.manifold.evaluate.boundingBox" | "manifold.manifold.evaluate.genus" | "manifold.manifold.evaluate.isEmpty" | "manifold.manifold.evaluate.minGap" | "manifold.manifold.evaluate.numEdge" | "manifold.manifold.evaluate.numProp" | "manifold.manifold.evaluate.numPropVert" | "manifold.manifold.evaluate.numTri" | "manifold.manifold.evaluate.numVert" | "manifold.manifold.evaluate.originalID" | "manifold.manifold.evaluate.rayCast" | "manifold.manifold.evaluate.status" | "manifold.manifold.evaluate.surfaceArea" | "manifold.manifold.evaluate.tolerance" | "manifold.manifold.evaluate.volume" | "manifold.manifold.manifoldsToMeshes" | "manifold.manifold.manifoldToMesh" | "manifold.manifold.operations.asOriginal" | "manifold.manifold.operations.calculateCurvature" | "manifold.manifold.operations.calculateNormals" | "manifold.manifold.operations.compose" | "manifold.manifold.operations.decompose" | "manifold.manifold.operations.hull" | "manifold.manifold.operations.hullPoints" | "manifold.manifold.operations.project" | "manifold.manifold.operations.refine" | "manifold.manifold.operations.refineToLength" | "manifold.manifold.operations.refineToTolerance" | "manifold.manifold.operations.reserveIds" | "manifold.manifold.operations.setTolerance" | "manifold.manifold.operations.simplify" | "manifold.manifold.operations.slice" | "manifold.manifold.operations.smoothByNormals" | "manifold.manifold.operations.smoothOut" | "manifold.manifold.shapes.cube" | "manifold.manifold.shapes.cylinder" | "manifold.manifold.shapes.fromPolygonPoints" | "manifold.manifold.shapes.manifoldFromMesh" | "manifold.manifold.shapes.sphere" | "manifold.manifold.shapes.tetrahedron" | "manifold.manifold.transforms.mirror" | "manifold.manifold.transforms.rotate" | "manifold.manifold.transforms.rotateXYZ" | "manifold.manifold.transforms.scale" | "manifold.manifold.transforms.scale3D" | "manifold.manifold.transforms.transform" | "manifold.manifold.transforms.transforms" | "manifold.manifold.transforms.translate" | "manifold.manifold.transforms.translateByVectors" | "manifold.manifold.transforms.translateXYZ" | "manifold.manifoldToMeshPointer" | "manifold.mesh.evaluate.backside" | "manifold.mesh.evaluate.extras" | "manifold.mesh.evaluate.hasNormals" | "manifold.mesh.evaluate.numProp" | "manifold.mesh.evaluate.numRun" | "manifold.mesh.evaluate.numTri" | "manifold.mesh.evaluate.numVert" | "manifold.mesh.evaluate.position" | "manifold.mesh.evaluate.tangent" | "manifold.mesh.evaluate.transform" | "manifold.mesh.evaluate.verts" | "manifold.mesh.operations.merge" | "manifold.recipes.build" | "manifold.recipes.meshes" | "manifold.recipes.surfaceMeshes" | "manifold.toPolygonPoints" | "math.abs" | "math.acos" | "math.add" | "math.asin" | "math.atan" | "math.ceil" | "math.clamp" | "math.convertLength" | "math.cos" | "math.degToRad" | "math.divide" | "math.ease" | "math.evalArithmetic" | "math.exp" | "math.floor" | "math.fract" | "math.inverseLerp" | "math.lerp" | "math.ln" | "math.log10" | "math.millimetresPerUnit" | "math.modulus" | "math.moveTowards" | "math.multiply" | "math.negate" | "math.number" | "math.oneNrOperation" | "math.pi" | "math.pingPong" | "math.power" | "math.radToDeg" | "math.random" | "math.randomNumber" | "math.randomNumbers" | "math.remap" | "math.round" | "math.roundAndRemoveTrailingZeros" | "math.roundToDecimals" | "math.sign" | "math.sin" | "math.smoothstep" | "math.sqrt" | "math.subtract" | "math.tan" | "math.tenPow" | "math.toFixed" | "math.toFractionText" | "math.twoNrOperation" | "math.wrap" | "occt.analysis.clashes.betweenShapes" | "occt.analysis.clashes.facesWithin" | "occt.analysis.clashes.selfIntersections" | "occt.analysis.curves.closestPoints" | "occt.analysis.curves.curvatureComb" | "occt.analysis.curves.curvaturesAtLengths" | "occt.analysis.curves.curvaturesAtParams" | "occt.analysis.curves.curveType" | "occt.analysis.curves.extremesAlong" | "occt.analysis.curves.intersectCurves" | "occt.analysis.curves.intersectCurveWithFace" | "occt.analysis.curves.kinks" | "occt.analysis.measure.angleBetween" | "occt.analysis.measure.boundingBoxInFrame" | "occt.analysis.measure.dihedralAngle" | "occt.analysis.measure.extrema" | "occt.analysis.measure.minCurvatureRadius" | "occt.analysis.measure.orientedBoundingBox" | "occt.analysis.measure.principalFrame" | "occt.analysis.measure.tightBoundingBox" | "occt.analysis.signatures" | "occt.analysis.surfaces.closestPoints" | "occt.analysis.surfaces.curvaturesOnUVs" | "occt.analysis.surfaces.surfaceType" | "occt.assembly.manager.buildAssemblyDocument" | "occt.assembly.manager.combineStructure" | "occt.assembly.manager.createAssemblyNode" | "occt.assembly.manager.createImportedPart" | "occt.assembly.manager.createInstanceNode" | "occt.assembly.manager.createPart" | "occt.assembly.manager.createPartUpdate" | "occt.assembly.manager.deleteDocument" | "occt.assembly.manager.exportDocumentToGltf" | "occt.assembly.manager.exportDocumentToGltfWithDraco" | "occt.assembly.manager.exportDocumentToObj" | "occt.assembly.manager.exportDocumentToPly" | "occt.assembly.manager.exportDocumentToStep" | "occt.assembly.manager.loadGltfToDoc" | "occt.assembly.manager.loadObjToDoc" | "occt.assembly.manager.loadStepToDoc" | "occt.assembly.manager.setDocLabelColor" | "occt.assembly.manager.setDocLabelName" | "occt.assembly.query.getAssemblyHierarchy" | "occt.assembly.query.getDocumentParts" | "occt.assembly.query.getDocumentPmi" | "occt.assembly.query.getLabelColor" | "occt.assembly.query.getLabelInfo" | "occt.assembly.query.getLabelTransform" | "occt.assembly.query.getShapeFromLabel" | "occt.booleans.difference" | "occt.booleans.differenceWithHistory" | "occt.booleans.intersection" | "occt.booleans.intersectionWithHistory" | "occt.booleans.meshMeshIntersectionOfShapesPoints" | "occt.booleans.meshMeshIntersectionOfShapesWires" | "occt.booleans.meshMeshIntersectionPoints" | "occt.booleans.meshMeshIntersectionWires" | "occt.booleans.union" | "occt.booleans.unionWithHistory" | "occt.brepGraph.analyze" | "occt.brepGraph.assembly" | "occt.brepGraph.containment" | "occt.brepGraph.dump" | "occt.brepGraph.edgeFaceMap" | "occt.brepGraph.edgeInfo" | "occt.brepGraph.faceAdjacency" | "occt.brepGraph.faceInfo" | "occt.brepGraph.nodeOfShape" | "occt.brepGraph.reconstruct" | "occt.brepGraph.validate" | "occt.brepGraph.vertexEdgeMap" | "occt.brepGraph.wireInfo" | "occt.cleanAllCache" | "occt.corners.chamferCornerByPoint" | "occt.corners.classifyCornerByPoint" | "occt.corners.cornerByPointReport" | "occt.corners.filletCornerByPoint" | "occt.deleteShape" | "occt.deleteShapes" | "occt.design.build" | "occt.design.clashes" | "occt.design.validate" | "occt.design.versionOf" | "occt.dimensions.pinWithLabel" | "occt.dimensions.simpleAngularDimension" | "occt.dimensions.simpleLinearLengthDimension" | "occt.docToMesh" | "occt.docToMeshes" | "occt.draft.draftAngle" | "occt.draft.draftAngleWithHistory" | "occt.draft.makeDraft" | "occt.draft.makeDraftToShape" | "occt.draft.makeDraftToShapeWithHistory" | "occt.draft.makeDraftWithHistory" | "occt.features.boss" | "occt.features.bossWithHistory" | "occt.features.counterboredHoles" | "occt.features.counterboredHolesWithHistory" | "occt.features.countersunkHoles" | "occt.features.countersunkHolesWithHistory" | "occt.features.groove" | "occt.features.grooveWithHistory" | "occt.features.holes" | "occt.features.holesWithHistory" | "occt.features.pocket" | "occt.features.pocketWithHistory" | "occt.features.pushPullFaces" | "occt.features.pushPullFacesWithHistory" | "occt.features.removeFaces" | "occt.features.removeFacesWithHistory" | "occt.features.revolvedBoss" | "occt.features.revolvedBossWithHistory" | "occt.features.revolvedPocket" | "occt.features.revolvedPocketWithHistory" | "occt.features.rib" | "occt.features.ribWithHistory" | "occt.features.taperedBoss" | "occt.features.taperedBossWithHistory" | "occt.features.taperedPocket" | "occt.features.taperedPocketWithHistory" | "occt.fillets.chamfer2dVertices" | "occt.fillets.chamferEdgeDistAngle" | "occt.fillets.chamferEdgeDistAngleWithHistory" | "occt.fillets.chamferEdges" | "occt.fillets.chamferEdgesDistAngle" | "occt.fillets.chamferEdgesDistAngleWithHistory" | "occt.fillets.chamferEdgesDistsAngles" | "occt.fillets.chamferEdgesDistsAnglesWithHistory" | "occt.fillets.chamferEdgesList" | "occt.fillets.chamferEdgesListWithHistory" | "occt.fillets.chamferEdgesTwoDistances" | "occt.fillets.chamferEdgesTwoDistancesLists" | "occt.fillets.chamferEdgesTwoDistancesListsWithHistory" | "occt.fillets.chamferEdgesTwoDistancesWithHistory" | "occt.fillets.chamferEdgesWithHistory" | "occt.fillets.chamferEdgeTwoDistances" | "occt.fillets.chamferEdgeTwoDistancesWithHistory" | "occt.fillets.fillet2d" | "occt.fillets.fillet2dShapes" | "occt.fillets.fillet3DWire" | "occt.fillets.fillet3DWires" | "occt.fillets.filletEdges" | "occt.fillets.filletEdgesList" | "occt.fillets.filletEdgesListOneRadius" | "occt.fillets.filletEdgesListOneRadiusWithHistory" | "occt.fillets.filletEdgesListWithHistory" | "occt.fillets.filletEdgesSameVariableRadius" | "occt.fillets.filletEdgesSameVariableRadiusWithHistory" | "occt.fillets.filletEdgesVariableRadius" | "occt.fillets.filletEdgesVariableRadiusWithHistory" | "occt.fillets.filletEdgesWithHistory" | "occt.fillets.filletEdgeVariableRadius" | "occt.fillets.filletEdgeVariableRadiusWithHistory" | "occt.fillets.filletTwoEdgesInPlaneIntoAWire" | "occt.geom.curves.geom2dEllipse" | "occt.geom.curves.geom2dSegment" | "occt.geom.curves.geom2dTrimmedCurve" | "occt.geom.curves.geomCircleCurve" | "occt.geom.curves.geomEllipseCurve" | "occt.geom.curves.get2dPointFrom2dCurveOnParam" | "occt.geom.surfaces.cylindricalSurface" | "occt.geom.surfaces.surfaceFromFace" | "occt.io.convertStepToGltf" | "occt.io.convertStepToGltfAdvanced" | "occt.io.convertStepToGltfAdvancedWithDraco" | "occt.io.convertStepToGltfWithDraco" | "occt.io.dxfCreate" | "occt.io.dxfPathsWithLayer" | "occt.io.fileLengthUnit" | "occt.io.loadBrep" | "occt.io.loadBrepBinary" | "occt.io.loadSTEPorIGES" | "occt.io.loadStl" | "occt.io.parseStepToJson" | "occt.io.saveShapeBrep" | "occt.io.saveShapeBrepAndReturn" | "occt.io.saveShapeBrepBinary" | "occt.io.saveShapeBrepBinaryAndReturn" | "occt.io.saveShapeObj" | "occt.io.saveShapeObjAndReturn" | "occt.io.saveShapePly" | "occt.io.saveShapePlyAndReturn" | "occt.io.saveShapeSTEP" | "occt.io.saveShapeSTEPAndReturn" | "occt.io.saveShapeStl" | "occt.io.saveShapeStlAndReturn" | "occt.io.saveShapeSvg" | "occt.io.saveShapeSvgAndReturn" | "occt.io.shapeToDxfPaths" | "occt.operations.boundingBoxCenterOfShape" | "occt.operations.boundingBoxMaxOfShape" | "occt.operations.boundingBoxMinOfShape" | "occt.operations.boundingBoxOfShape" | "occt.operations.boundingBoxShapeOfShape" | "occt.operations.boundingBoxSizeOfShape" | "occt.operations.boundingSphereCenterOfShape" | "occt.operations.boundingSphereOfShape" | "occt.operations.boundingSphereRadiusOfShape" | "occt.operations.boundingSphereShapeOfShape" | "occt.operations.closestPointsBetweenTwoShapes" | "occt.operations.closestPointsOnShapeFromPoints" | "occt.operations.closestPointsOnShapesFromPoints" | "occt.operations.cutByFrames" | "occt.operations.distancesToShapeFromPoints" | "occt.operations.extrude" | "occt.operations.extrudeShapes" | "occt.operations.extrudeWithHistory" | "occt.operations.hiddenLines" | "occt.operations.loft" | "occt.operations.loftAdvanced" | "occt.operations.loftAdvancedWithHistory" | "occt.operations.loftWithHistory" | "occt.operations.makeThickSolidByJoin" | "occt.operations.makeThickSolidByJoinWithHistory" | "occt.operations.makeThickSolidSimple" | "occt.operations.makeThickSolidSimpleWithHistory" | "occt.operations.offset" | "occt.operations.offset3DWire" | "occt.operations.offsetAdv" | "occt.operations.offsetAdvWithHistory" | "occt.operations.offsetWithHistory" | "occt.operations.pipe" | "occt.operations.pipePolylineWireNGon" | "occt.operations.pipePolylineWireNGonWithHistory" | "occt.operations.pipeWireCylindrical" | "occt.operations.pipeWireCylindricalWithHistory" | "occt.operations.pipeWiresCylindrical" | "occt.operations.pipeWithHistory" | "occt.operations.pipeWithScaling" | "occt.operations.revolve" | "occt.operations.revolveWithHistory" | "occt.operations.rotatedExtrude" | "occt.operations.rotatedExtrudeWithHistory" | "occt.operations.sectionByFrames" | "occt.operations.sectionWires" | "occt.operations.slice" | "occt.operations.sliceByFrames" | "occt.operations.sliceInStepPattern" | "occt.operations.splitByFrame" | "occt.operations.splitFaceByWires" | "occt.operations.splitShapeWithShapes" | "occt.operations.splitShapeWithShapesWithHistory" | "occt.operations.sweepEvolved" | "occt.parts.mechanical.bearings.ansi.ballBearing" | "occt.parts.mechanical.bearings.ansi.ballBearingWithRoles" | "occt.parts.mechanical.bearings.iso.ballBearing" | "occt.parts.mechanical.bearings.iso.ballBearingWithRoles" | "occt.parts.mechanical.fasteners.ansi.hexBolt" | "occt.parts.mechanical.fasteners.ansi.hexBoltWithRoles" | "occt.parts.mechanical.fasteners.ansi.hexNut" | "occt.parts.mechanical.fasteners.ansi.hexNutWithRoles" | "occt.parts.mechanical.fasteners.ansi.setScrew" | "occt.parts.mechanical.fasteners.ansi.setScrewWithRoles" | "occt.parts.mechanical.fasteners.ansi.socketHeadCapScrew" | "occt.parts.mechanical.fasteners.ansi.socketHeadCapScrewWithRoles" | "occt.parts.mechanical.fasteners.ansi.washer" | "occt.parts.mechanical.fasteners.ansi.washerWithRoles" | "occt.parts.mechanical.fasteners.dowelPin" | "occt.parts.mechanical.fasteners.dowelPinWithRoles" | "occt.parts.mechanical.fasteners.iso.hexBolt" | "occt.parts.mechanical.fasteners.iso.hexBoltWithRoles" | "occt.parts.mechanical.fasteners.iso.hexNut" | "occt.parts.mechanical.fasteners.iso.hexNutWithRoles" | "occt.parts.mechanical.fasteners.iso.setScrew" | "occt.parts.mechanical.fasteners.iso.setScrewWithRoles" | "occt.parts.mechanical.fasteners.iso.socketHeadCapScrew" | "occt.parts.mechanical.fasteners.iso.socketHeadCapScrewWithRoles" | "occt.parts.mechanical.fasteners.iso.washer" | "occt.parts.mechanical.fasteners.iso.washerWithRoles" | "occt.parts.mechanical.gears.bevelGear" | "occt.parts.mechanical.gears.bevelGearWithRoles" | "occt.parts.mechanical.gears.helicalGear" | "occt.parts.mechanical.gears.helicalGearWithRoles" | "occt.parts.mechanical.gears.rack" | "occt.parts.mechanical.gears.rackProfile" | "occt.parts.mechanical.gears.rackWithRoles" | "occt.parts.mechanical.gears.ringGear" | "occt.parts.mechanical.gears.ringGearProfile" | "occt.parts.mechanical.gears.ringGearWithRoles" | "occt.parts.mechanical.gears.spurGear" | "occt.parts.mechanical.gears.spurGearProfile" | "occt.parts.mechanical.gears.spurGearWithRoles" | "occt.parts.mechanical.keys.ansi.parallelKey" | "occt.parts.mechanical.keys.ansi.parallelKeyWithRoles" | "occt.parts.mechanical.keys.din.parallelKey" | "occt.parts.mechanical.keys.din.parallelKeyWithRoles" | "occt.parts.mechanical.machining.ansi.keyway" | "occt.parts.mechanical.machining.ansi.keywayTool" | "occt.parts.mechanical.machining.ansi.knurl" | "occt.parts.mechanical.machining.ansi.knurlTool" | "occt.parts.mechanical.machining.ansi.ringGroove" | "occt.parts.mechanical.machining.ansi.ringGrooveTool" | "occt.parts.mechanical.machining.ansi.splinedHub" | "occt.parts.mechanical.machining.ansi.splinedHubTool" | "occt.parts.mechanical.machining.ansi.splinedShaft" | "occt.parts.mechanical.machining.ansi.thread" | "occt.parts.mechanical.machining.ansi.threadTool" | "occt.parts.mechanical.machining.din.keyway" | "occt.parts.mechanical.machining.din.keywayTool" | "occt.parts.mechanical.machining.din.knurl" | "occt.parts.mechanical.machining.din.knurlTool" | "occt.parts.mechanical.machining.din.ringGroove" | "occt.parts.mechanical.machining.din.ringGrooveTool" | "occt.parts.mechanical.machining.din.splinedHub" | "occt.parts.mechanical.machining.din.splinedHubTool" | "occt.parts.mechanical.machining.din.splinedShaft" | "occt.parts.mechanical.machining.flat" | "occt.parts.mechanical.machining.flatTool" | "occt.parts.mechanical.machining.iso.thread" | "occt.parts.mechanical.machining.iso.threadTool" | "occt.parts.mechanical.retainingRings.ansi.retainingRing" | "occt.parts.mechanical.retainingRings.ansi.retainingRingWithRoles" | "occt.parts.mechanical.retainingRings.din.retainingRing" | "occt.parts.mechanical.retainingRings.din.retainingRingWithRoles" | "occt.parts.mechanical.springs.compressionSpring" | "occt.parts.mechanical.springs.compressionSpringPath" | "occt.parts.mechanical.springs.compressionSpringWithRoles" | "occt.path.shapeFromPath" | "occt.recipes.build" | "occt.recipes.buildDocument" | "occt.recipes.describe" | "occt.select.edges.along" | "occt.select.edges.between" | "occt.select.edges.byLength" | "occt.select.edges.byRadius" | "occt.select.edges.concave" | "occt.select.edges.convex" | "occt.select.edges.extreme" | "occt.select.edges.groupAlong" | "occt.select.edges.inBox" | "occt.select.edges.inSphere" | "occt.select.edges.nearest" | "occt.select.edges.ofFaces" | "occt.select.edges.ofType" | "occt.select.edges.onPlane" | "occt.select.edges.sortAlong" | "occt.select.edges.tangentChain" | "occt.select.faces.adjacentTo" | "occt.select.faces.byRadius" | "occt.select.faces.bySize" | "occt.select.faces.extreme" | "occt.select.faces.facing" | "occt.select.faces.groupAlong" | "occt.select.faces.inBox" | "occt.select.faces.inSphere" | "occt.select.faces.nearest" | "occt.select.faces.ofEdges" | "occt.select.faces.ofType" | "occt.select.faces.onPlane" | "occt.select.faces.sortAlong" | "occt.shapeFacesToPolygonPoints" | "occt.shapeFix.basicShapeRepair" | "occt.shapeFix.fixEdgeOrientationsAlongWire" | "occt.shapeFix.fixShell" | "occt.shapeFix.fixSmallEdgeOnWire" | "occt.shapeFix.fixSolid" | "occt.shapeFix.freeBoundaries" | "occt.shapeFix.isValid" | "occt.shapeFix.orientClosedSolid" | "occt.shapeFix.sewWithReport" | "occt.shapeFix.validityReport" | "occt.shapes.compound.getShapesOfCompound" | "occt.shapes.compound.makeCompound" | "occt.shapes.edge.arcFromCircleAndTwoAngles" | "occt.shapes.edge.arcFromCircleAndTwoPoints" | "occt.shapes.edge.arcFromCirclePointAndAngle" | "occt.shapes.edge.arcThroughThreePoints" | "occt.shapes.edge.arcThroughTwoPointsAndTangent" | "occt.shapes.edge.blendBetweenEdges" | "occt.shapes.edge.circlesTangentToThree" | "occt.shapes.edge.circlesTangentToTwoCenteredOn" | "occt.shapes.edge.circlesTangentToTwoWithRadius" | "occt.shapes.edge.constraintTanCirclesOnCircleAndPnt" | "occt.shapes.edge.constraintTanCirclesOnTwoCircles" | "occt.shapes.edge.constraintTanLinesFromPtToCircle" | "occt.shapes.edge.constraintTanLinesFromTwoPtsToCircle" | "occt.shapes.edge.constraintTanLinesOnTwoCircles" | "occt.shapes.edge.createCircleEdge" | "occt.shapes.edge.createEllipseEdge" | "occt.shapes.edge.debugInfo" | "occt.shapes.edge.divideEdgeByEqualDistanceToPoints" | "occt.shapes.edge.divideEdgeByParamsToPoints" | "occt.shapes.edge.divideEdgesByEqualDistanceToPoints" | "occt.shapes.edge.divideEdgesByParamsToPoints" | "occt.shapes.edge.edgesToPoints" | "occt.shapes.edge.endPointOnEdge" | "occt.shapes.edge.endPointsOnEdges" | "occt.shapes.edge.extendEdge" | "occt.shapes.edge.frameOnEdgeAtLength" | "occt.shapes.edge.frameOnEdgeAtParam" | "occt.shapes.edge.framesOnEdgeAtLengths" | "occt.shapes.edge.framesOnEdgeAtParams" | "occt.shapes.edge.fromBaseLine" | "occt.shapes.edge.fromBaseLines" | "occt.shapes.edge.fromBaseMesh" | "occt.shapes.edge.fromBasePolyline" | "occt.shapes.edge.fromBaseSegment" | "occt.shapes.edge.fromBaseSegments" | "occt.shapes.edge.fromBaseTriangle" | "occt.shapes.edge.fromPoints" | "occt.shapes.edge.getCircularEdgeCenterPoint" | "occt.shapes.edge.getCircularEdgePlaneDirection" | "occt.shapes.edge.getCircularEdgeRadius" | "occt.shapes.edge.getCircularEdgesAlongWire" | "occt.shapes.edge.getCornerPointsOfEdgesForShape" | "occt.shapes.edge.getEdge" | "occt.shapes.edge.getEdgeCenterOfMass" | "occt.shapes.edge.getEdgeLength" | "occt.shapes.edge.getEdgeLengthsOfShape" | "occt.shapes.edge.getEdges" | "occt.shapes.edge.getEdgesAlongWire" | "occt.shapes.edge.getEdgesCentersOfMass" | "occt.shapes.edge.getEdgesLengths" | "occt.shapes.edge.getLinearEdgesAlongWire" | "occt.shapes.edge.isEdgeCircular" | "occt.shapes.edge.isEdgeLinear" | "occt.shapes.edge.line" | "occt.shapes.edge.linesTangentAtAngle" | "occt.shapes.edge.linesTangentToTwo" | "occt.shapes.edge.makeEdgeFromGeom2dCurveAndSurface" | "occt.shapes.edge.moveEdgeSeamByLength" | "occt.shapes.edge.moveEdgeSeamByParameter" | "occt.shapes.edge.pointOnEdgeAtLength" | "occt.shapes.edge.pointOnEdgeAtParam" | "occt.shapes.edge.pointsOnEdgesAtLength" | "occt.shapes.edge.pointsOnEdgesAtParam" | "occt.shapes.edge.rebuildEdgeDegree" | "occt.shapes.edge.removeInternalEdges" | "occt.shapes.edge.reversedEdge" | "occt.shapes.edge.splitEdgeAtLengths" | "occt.shapes.edge.splitEdgeAtParams" | "occt.shapes.edge.startPointOnEdge" | "occt.shapes.edge.startPointsOnEdges" | "occt.shapes.edge.tangentOnEdgeAtLength" | "occt.shapes.edge.tangentOnEdgeAtParam" | "occt.shapes.edge.tangentsOnEdgesAtLength" | "occt.shapes.edge.tangentsOnEdgesAtParam" | "occt.shapes.face.boundaryPatch" | "occt.shapes.face.createChristmasTreeFace" | "occt.shapes.face.createCircleFace" | "occt.shapes.face.createEllipseFace" | "occt.shapes.face.createFaceBoundedByWiresOnFace" | "occt.shapes.face.createFaceFromMultipleCircleTanWireCollections" | "occt.shapes.face.createFaceFromMultipleCircleTanWires" | "occt.shapes.face.createFaceFromWire" | "occt.shapes.face.createFaceFromWireOnFace" | "occt.shapes.face.createFaceFromWires" | "occt.shapes.face.createFaceFromWiresOnFace" | "occt.shapes.face.createFacesFromWires" | "occt.shapes.face.createFacesFromWiresOnFace" | "occt.shapes.face.createHBeamProfileFace" | "occt.shapes.face.createHeartFace" | "occt.shapes.face.createIBeamProfileFace" | "occt.shapes.face.createLPolygonFace" | "occt.shapes.face.createNGonFace" | "occt.shapes.face.createParallelogramFace" | "occt.shapes.face.createPolygonFace" | "occt.shapes.face.createRectangleFace" | "occt.shapes.face.createSquareFace" | "occt.shapes.face.createStarFace" | "occt.shapes.face.createTBeamProfileFace" | "occt.shapes.face.createUBeamProfileFace" | "occt.shapes.face.debugInfo" | "occt.shapes.face.faceFromSurface" | "occt.shapes.face.faceFromSurfaceAndWire" | "occt.shapes.face.fillPatch" | "occt.shapes.face.filterFacePoints" | "occt.shapes.face.filterFacesPoints" | "occt.shapes.face.flipFaceUV" | "occt.shapes.face.frameNearestPoint" | "occt.shapes.face.frameOnUV" | "occt.shapes.face.framesNearestPoints" | "occt.shapes.face.framesOnUVs" | "occt.shapes.face.fromBaseMesh" | "occt.shapes.face.fromBaseTriangle" | "occt.shapes.face.fromPointGrid" | "occt.shapes.face.getFace" | "occt.shapes.face.getFaceArea" | "occt.shapes.face.getFaceCenterOfMass" | "occt.shapes.face.getFaces" | "occt.shapes.face.getFacesAreas" | "occt.shapes.face.getFacesCentersOfMass" | "occt.shapes.face.getUMaxBound" | "occt.shapes.face.getUMinBound" | "occt.shapes.face.getVMaxBound" | "occt.shapes.face.getVMinBound" | "occt.shapes.face.hexagonsInGrid" | "occt.shapes.face.isoCurves" | "occt.shapes.face.normalizeFaceParametrization" | "occt.shapes.face.normalOnUV" | "occt.shapes.face.normalsOnUVs" | "occt.shapes.face.pointOnUV" | "occt.shapes.face.pointsOnUVs" | "occt.shapes.face.rebuildFaceDegree" | "occt.shapes.face.reversedFace" | "occt.shapes.face.ruledBetween" | "occt.shapes.face.subdivideToFrames" | "occt.shapes.face.subdivideToHexagonHoles" | "occt.shapes.face.subdivideToHexagonWires" | "occt.shapes.face.subdivideToNormals" | "occt.shapes.face.subdivideToPoints" | "occt.shapes.face.subdivideToPointsControlled" | "occt.shapes.face.subdivideToPointsOnParam" | "occt.shapes.face.subdivideToRectangleHoles" | "occt.shapes.face.subdivideToRectangleWires" | "occt.shapes.face.subdivideToUV" | "occt.shapes.face.subdivideToWires" | "occt.shapes.face.unroll" | "occt.shapes.face.wireAlongParam" | "occt.shapes.face.wiresAlongParams" | "occt.shapes.shape.getOrientation" | "occt.shapes.shape.getShapeType" | "occt.shapes.shape.isChecked" | "occt.shapes.shape.isClosed" | "occt.shapes.shape.isConvex" | "occt.shapes.shape.isEqual" | "occt.shapes.shape.isFree" | "occt.shapes.shape.isInfinite" | "occt.shapes.shape.isLocked" | "occt.shapes.shape.isModified" | "occt.shapes.shape.isNotEqual" | "occt.shapes.shape.isNull" | "occt.shapes.shape.isPartner" | "occt.shapes.shape.isSame" | "occt.shapes.shape.purgeInternalEdges" | "occt.shapes.shape.unifySameDomain" | "occt.shapes.shape.unifySameDomainWithHistory" | "occt.shapes.shell.debugInfo" | "occt.shapes.shell.getShellSurfaceArea" | "occt.shapes.shell.sewFaces" | "occt.shapes.shell.sewFacesWithHistory" | "occt.shapes.solid.createBox" | "occt.shapes.solid.createBoxFromCorner" | "occt.shapes.solid.createChristmasTreeSolid" | "occt.shapes.solid.createCone" | "occt.shapes.solid.createCube" | "occt.shapes.solid.createCylinder" | "occt.shapes.solid.createCylindersOnLines" | "occt.shapes.solid.createHBeamProfileSolid" | "occt.shapes.solid.createHeartSolid" | "occt.shapes.solid.createIBeamProfileSolid" | "occt.shapes.solid.createLPolygonSolid" | "occt.shapes.solid.createNGonSolid" | "occt.shapes.solid.createParallelogramSolid" | "occt.shapes.solid.createSphere" | "occt.shapes.solid.createStarSolid" | "occt.shapes.solid.createTBeamProfileSolid" | "occt.shapes.solid.createTorus" | "occt.shapes.solid.createUBeamProfileSolid" | "occt.shapes.solid.debugInfo" | "occt.shapes.solid.filterSolidPoints" | "occt.shapes.solid.fromClosedShell" | "occt.shapes.solid.fromFaces" | "occt.shapes.solid.fromFacesWithHistory" | "occt.shapes.solid.getSolidCenterOfMass" | "occt.shapes.solid.getSolids" | "occt.shapes.solid.getSolidsCentersOfMass" | "occt.shapes.solid.getSolidSurfaceArea" | "occt.shapes.solid.getSolidsVolumes" | "occt.shapes.solid.getSolidVolume" | "occt.shapes.vertex.getVertices" | "occt.shapes.vertex.getVerticesAsPoints" | "occt.shapes.vertex.projectPoints" | "occt.shapes.vertex.vertexFromPoint" | "occt.shapes.vertex.vertexFromXYZ" | "occt.shapes.vertex.vertexToPoint" | "occt.shapes.vertex.verticesCompoundFromPoints" | "occt.shapes.vertex.verticesFromPoints" | "occt.shapes.vertex.verticesToPoints" | "occt.shapes.wire.addEdgesAndWiresToWire" | "occt.shapes.wire.closeOpenWire" | "occt.shapes.wire.combineEdgesAndWiresIntoAWire" | "occt.shapes.wire.createBezier" | "occt.shapes.wire.createBezierWeights" | "occt.shapes.wire.createBezierWires" | "occt.shapes.wire.createBSpline" | "occt.shapes.wire.createBSplines" | "occt.shapes.wire.createChristmasTreeWire" | "occt.shapes.wire.createCircleWire" | "occt.shapes.wire.createEllipseWire" | "occt.shapes.wire.createFlatSpiralWire" | "occt.shapes.wire.createHBeamProfileWire" | "occt.shapes.wire.createHeartWire" | "occt.shapes.wire.createHelixWire" | "occt.shapes.wire.createHelixWireByTurns" | "occt.shapes.wire.createIBeamProfileWire" | "occt.shapes.wire.createLines" | "occt.shapes.wire.createLineWire" | "occt.shapes.wire.createLineWireWithExtensions" | "occt.shapes.wire.createLPolygonWire" | "occt.shapes.wire.createNGonWire" | "occt.shapes.wire.createParallelogramWire" | "occt.shapes.wire.createPolygons" | "occt.shapes.wire.createPolygonWire" | "occt.shapes.wire.createPolylines" | "occt.shapes.wire.createPolylineWire" | "occt.shapes.wire.createRectangleWire" | "occt.shapes.wire.createSquareWire" | "occt.shapes.wire.createStarWire" | "occt.shapes.wire.createTaperedHelixWire" | "occt.shapes.wire.createTBeamProfileWire" | "occt.shapes.wire.createUBeamProfileWire" | "occt.shapes.wire.createWireFromEdge" | "occt.shapes.wire.createWireFromTwoCirclesTan" | "occt.shapes.wire.createWiresBetweenStartEndPointsOfWiresAndEdges" | "occt.shapes.wire.createWiresBetweenSubdividedPointsOfWiresAndEdges" | "occt.shapes.wire.createZigZagBetweenTwoWires" | "occt.shapes.wire.debugInfo" | "occt.shapes.wire.derivativesOnWireAtLength" | "occt.shapes.wire.derivativesOnWireAtParam" | "occt.shapes.wire.divideWireByEqualDistanceToPoints" | "occt.shapes.wire.divideWireByParamsToPoints" | "occt.shapes.wire.divideWiresByEqualDistanceToPoints" | "occt.shapes.wire.divideWiresByParamsToPoints" | "occt.shapes.wire.endPointOnWire" | "occt.shapes.wire.frameOnWireAtLength" | "occt.shapes.wire.frameOnWireAtParam" | "occt.shapes.wire.framesAlongWire" | "occt.shapes.wire.framesOnWireAtLengths" | "occt.shapes.wire.framesOnWireAtParams" | "occt.shapes.wire.fromBaseLine" | "occt.shapes.wire.fromBaseLines" | "occt.shapes.wire.fromBaseMesh" | "occt.shapes.wire.fromBasePolyline" | "occt.shapes.wire.fromBaseSegment" | "occt.shapes.wire.fromBaseSegments" | "occt.shapes.wire.fromBaseTriangle" | "occt.shapes.wire.fromPoints" | "occt.shapes.wire.getWire" | "occt.shapes.wire.getWireCenterOfMass" | "occt.shapes.wire.getWireLength" | "occt.shapes.wire.getWires" | "occt.shapes.wire.getWiresCentersOfMass" | "occt.shapes.wire.getWiresLengths" | "occt.shapes.wire.hexagonsInGrid" | "occt.shapes.wire.interpolatePoints" | "occt.shapes.wire.interpolatePointsSymmetric" | "occt.shapes.wire.interpolateWires" | "occt.shapes.wire.isWireClosed" | "occt.shapes.wire.midPointOnWire" | "occt.shapes.wire.moveWireSeamByLength" | "occt.shapes.wire.moveWireSeamByParameter" | "occt.shapes.wire.offsetOpen" | "occt.shapes.wire.placeWireOnFace" | "occt.shapes.wire.placeWiresOnFace" | "occt.shapes.wire.pointOnWireAtLength" | "occt.shapes.wire.pointOnWireAtParam" | "occt.shapes.wire.pointsOnWireAtEqualLength" | "occt.shapes.wire.pointsOnWireAtLengths" | "occt.shapes.wire.pointsOnWireAtPatternOfLengths" | "occt.shapes.wire.project" | "occt.shapes.wire.projectConical" | "occt.shapes.wire.projectNormal" | "occt.shapes.wire.projectWires" | "occt.shapes.wire.rebuildWireDegree" | "occt.shapes.wire.reversedWire" | "occt.shapes.wire.reversedWireFromReversedEdges" | "occt.shapes.wire.splitOnPoints" | "occt.shapes.wire.splitWireAtLengths" | "occt.shapes.wire.splitWireAtParams" | "occt.shapes.wire.startPointOnWire" | "occt.shapes.wire.tangentOnWireAtLength" | "occt.shapes.wire.tangentOnWireAtParam" | "occt.shapes.wire.textWires" | "occt.shapes.wire.textWiresWithData" | "occt.shapes.wire.wiresToPoints" | "occt.shapes.wire.wrapWiresOnFace" | "occt.shapesToMeshes" | "occt.shapeToManifoldMesh" | "occt.shapeToMesh" | "occt.sketch.commands.bulgeArc" | "occt.sketch.commands.chamferCorner" | "occt.sketch.commands.close" | "occt.sketch.commands.cubic" | "occt.sketch.commands.filletCorner" | "occt.sketch.commands.hLine" | "occt.sketch.commands.line" | "occt.sketch.commands.polarLine" | "occt.sketch.commands.quadratic" | "occt.sketch.commands.sagittaArc" | "occt.sketch.commands.tangentArc" | "occt.sketch.commands.tangentLine" | "occt.sketch.commands.threePointArc" | "occt.sketch.commands.vLine" | "occt.sketch.hull" | "occt.sketch.pen" | "occt.sketch.penWithSegments" | "occt.sketch.stroke" | "occt.svg.loadSVG" | "occt.svg.loadSVGStructured" | "occt.transforms.align" | "occt.transforms.alignAndTranslate" | "occt.transforms.alignAndTranslateShapes" | "occt.transforms.alignNormAndAxis" | "occt.transforms.alignShapes" | "occt.transforms.composeTransform" | "occt.transforms.getShapeTransform" | "occt.transforms.identityTransform" | "occt.transforms.invertTransform" | "occt.transforms.mirror" | "occt.transforms.mirrorAboutPoint" | "occt.transforms.mirrorAlongNormal" | "occt.transforms.mirrorAlongNormalShapes" | "occt.transforms.mirrorAxisToMatrix" | "occt.transforms.mirrorPlaneToMatrix" | "occt.transforms.mirrorPointToMatrix" | "occt.transforms.mirrorShapes" | "occt.transforms.multiplyTransforms" | "occt.transforms.orient" | "occt.transforms.placeByMatrices" | "occt.transforms.placeOnFrames" | "occt.transforms.quaternionToMatrix" | "occt.transforms.rotate" | "occt.transforms.rotateAroundCenter" | "occt.transforms.rotateAroundCenterShapes" | "occt.transforms.rotateByQuaternion" | "occt.transforms.rotateShapes" | "occt.transforms.rotationAxisAngleToMatrix" | "occt.transforms.scale" | "occt.transforms.scale3d" | "occt.transforms.scale3dShapes" | "occt.transforms.scaleFromCenter" | "occt.transforms.scaleShapes" | "occt.transforms.scaleUniformToMatrix" | "occt.transforms.transform" | "occt.transforms.transformByMatrix" | "occt.transforms.transformShapes" | "occt.transforms.transformShapesByMatrix" | "occt.transforms.translate" | "occt.transforms.translateShapes" | "occt.transforms.translationToMatrix" | "occtPro.sheetMetal.unfoldFaceReport" | "occtPro.sheetMetal.unfoldFaceToFlat" | "occtPro.sheetMetal.unfoldSolidReport" | "occtPro.sheetMetal.unfoldSolidToFlat" | "point.arcThroughThreePoints" | "point.averagePoint" | "point.boundingBoxOfPoints" | "point.closestPointFromPoints" | "point.closestPointFromPointsDistance" | "point.closestPointFromPointsIndex" | "point.distance" | "point.distancesToPoints" | "point.getX" | "point.getY" | "point.getZ" | "point.hexGrid" | "point.hexGridScaledToFit" | "point.maxFilletRadius" | "point.maxFilletRadiusHalfLine" | "point.maxFilletsHalfLine" | "point.multiplyPoint" | "point.normalFromThreePoints" | "point.pointXY" | "point.pointXYZ" | "point.removeConsecutiveDuplicates" | "point.rotatePointsCenterAxis" | "point.safestPointsMaxFilletHalfLine" | "point.scalePointsCenterXYZ" | "point.sortPoints" | "point.spiral" | "point.stretchPointsDirFromCenter" | "point.transformPoint" | "point.transformPoints" | "point.transformsForPoints" | "point.translatePoints" | "point.translatePointsWithVectors" | "point.translateXYZPoints" | "point.twoPointsAlmostEqual" | "polyline.countPoints" | "polyline.create" | "polyline.getPoints" | "polyline.isPointInside2d" | "polyline.length" | "polyline.maxFilletsHalfLine" | "polyline.orient2d" | "polyline.perimeter2d" | "polyline.polygonArea" | "polyline.polygonNormal" | "polyline.polylineSelfIntersection" | "polyline.polylineToLines" | "polyline.polylineToSegments" | "polyline.reverse" | "polyline.roundCorners" | "polyline.roundCorners2d" | "polyline.safestFilletRadius" | "polyline.signedArea2d" | "polyline.sortSegmentsIntoPolylines" | "polyline.sweepFrames" | "polyline.sweepPlacements" | "polyline.tangents" | "polyline.transformPolyline" | "polyline.twoPolylineIntersection" | "text.charAt" | "text.concat" | "text.create" | "text.endsWith" | "text.format" | "text.includes" | "text.indexOf" | "text.isEmpty" | "text.join" | "text.lastIndexOf" | "text.length" | "text.padEnd" | "text.padStart" | "text.regexMatch" | "text.regexReplace" | "text.regexSearch" | "text.regexSplit" | "text.regexTest" | "text.repeat" | "text.replaceAll" | "text.reverse" | "text.slice" | "text.split" | "text.startsWith" | "text.substring" | "text.toLowerCase" | "text.toLowerCaseFirst" | "text.toString" | "text.toStringEach" | "text.toUpperCase" | "text.toUpperCaseFirst" | "text.trim" | "text.trimEnd" | "text.trimStart" | "text.vectorChar" | "text.vectorText" | "vector.add" | "vector.addAll" | "vector.all" | "vector.angleBetween" | "vector.angleBetweenNormalized2d" | "vector.cross" | "vector.dist" | "vector.distSquared" | "vector.div" | "vector.domain" | "vector.dot" | "vector.finite" | "vector.isZero" | "vector.length" | "vector.lengthSq" | "vector.lerp" | "vector.max" | "vector.min" | "vector.mul" | "vector.neg" | "vector.norm" | "vector.normalized" | "vector.normSquared" | "vector.onRay" | "vector.parseNumbers" | "vector.positiveAngleBetween" | "vector.range" | "vector.removeAllDuplicateVectors" | "vector.removeConsecutiveDuplicateVectors" | "vector.signedAngleBetween" | "vector.span" | "vector.spanEaseItems" | "vector.spanLinearItems" | "vector.sub" | "vector.sum" | "vector.vectorsTheSame" | "vector.vectorXY" | "vector.vectorXYZ";
|
|
2
|
+
export type OperationPath = "color.getBlueParam" | "color.getGreenParam" | "color.getRedParam" | "color.hexColor" | "color.hexToRgb" | "color.hexToRgba" | "color.hexToRgbMapped" | "color.hslToHex" | "color.invert" | "color.linearToSrgb" | "color.rgb1Color" | "color.rgb255Color" | "color.rgba1Color" | "color.rgba255Color" | "color.rgbAtomic1Color" | "color.rgbAtomic255Color" | "color.rgbObjToHex" | "color.rgbToBlue" | "color.rgbToGreen" | "color.rgbToHex" | "color.rgbToRed" | "color.srgbToLinear" | "csv.arrayToCsv" | "csv.getColumnCount" | "csv.getHeaders" | "csv.getRowCount" | "csv.jsonToCsv" | "csv.jsonToCsvAuto" | "csv.parseToArray" | "csv.parseToJson" | "csv.parseToJsonWithHeaders" | "csv.queryColumn" | "csv.queryRowsByValue" | "io.drawing.arcSegment" | "io.drawing.circleSegment" | "io.drawing.dxfToSvg" | "io.drawing.ellipseSegment" | "io.drawing.lineSegment" | "io.drawing.part" | "io.drawing.path" | "io.drawing.polylineSegment" | "io.drawing.splineSegment" | "io.drawing.svgToDxf" | "io.dxf.arcSegment" | "io.dxf.circleSegment" | "io.dxf.dxfCreate" | "io.dxf.dxfRead" | "io.dxf.ellipseSegment" | "io.dxf.lineSegment" | "io.dxf.path" | "io.dxf.pathsPart" | "io.dxf.polylineSegment" | "io.dxf.splineSegment" | "io.svg.pathData" | "io.svg.svgCreate" | "io.svg.svgRead" | "jscad.booleans.intersect" | "jscad.booleans.intersectTwo" | "jscad.booleans.minkowskiSum" | "jscad.booleans.subtract" | "jscad.booleans.subtractFrom" | "jscad.booleans.subtractTwo" | "jscad.booleans.union" | "jscad.booleans.unionTwo" | "jscad.colors.colorize" | "jscad.downloadGeometry3MF" | "jscad.downloadGeometryDxf" | "jscad.downloadSolidsSTL" | "jscad.downloadSolidSTL" | "jscad.expansions.expand" | "jscad.expansions.offset" | "jscad.extrusions.extrudeLinear" | "jscad.extrusions.extrudeRectangular" | "jscad.extrusions.extrudeRectangularPoints" | "jscad.extrusions.extrudeRotate" | "jscad.hulls.hull" | "jscad.hulls.hullChain" | "jscad.hulls.isConvex" | "jscad.path.appendArc" | "jscad.path.appendPoints" | "jscad.path.appendPolyline" | "jscad.path.close" | "jscad.path.createEmpty" | "jscad.path.createFromPoints" | "jscad.path.createFromPolyline" | "jscad.path.createPathsFromPoints" | "jscad.polygon.circle" | "jscad.polygon.createFromCurve" | "jscad.polygon.createFromPath" | "jscad.polygon.createFromPoints" | "jscad.polygon.createFromPolyline" | "jscad.polygon.ellipse" | "jscad.polygon.rectangle" | "jscad.polygon.roundedRectangle" | "jscad.polygon.square" | "jscad.polygon.star" | "jscad.shapes.cube" | "jscad.shapes.cubesOnCenterPoints" | "jscad.shapes.cuboid" | "jscad.shapes.cuboidsOnCenterPoints" | "jscad.shapes.cylinder" | "jscad.shapes.cylinderElliptic" | "jscad.shapes.cylinderEllipticOnCenterPoints" | "jscad.shapes.cylindersOnCenterPoints" | "jscad.shapes.ellipsoid" | "jscad.shapes.ellipsoidsOnCenterPoints" | "jscad.shapes.fromPolygonPoints" | "jscad.shapes.geodesicSphere" | "jscad.shapes.geodesicSpheresOnCenterPoints" | "jscad.shapes.roundedCuboid" | "jscad.shapes.roundedCuboidsOnCenterPoints" | "jscad.shapes.roundedCylinder" | "jscad.shapes.roundedCylindersOnCenterPoints" | "jscad.shapes.sphere" | "jscad.shapes.spheresOnCenterPoints" | "jscad.shapes.torus" | "jscad.text.createVectorText" | "jscad.text.cylindricalText" | "jscad.text.sphericalText" | "jscad.toPolygonPoints" | "jscad.transformSolid" | "jscad.transformSolids" | "json.createEmpty" | "json.getJsonFromArrayByFirstPropMatch" | "json.getValueOnProp" | "json.parse" | "json.paths" | "json.previewAndSaveJson" | "json.previewJson" | "json.query" | "json.setValue" | "json.setValueOnProp" | "json.setValuesOnPaths" | "json.stringify" | "line.create" | "line.createSegment" | "line.distanceToPoint" | "line.getEndPoint" | "line.getPointOnLine" | "line.getStartPoint" | "line.length" | "line.lineLineIntersection" | "line.linesBetweenPoints" | "line.linesBetweenStartAndEndPoints" | "line.linesToSegments" | "line.lineToSegment" | "line.reverse" | "line.segmentsToLines" | "line.segmentToLine" | "line.transformLine" | "line.transformsForLines" | "lists.addItem" | "lists.addItemAtIndex" | "lists.addItemAtIndexes" | "lists.addItemFirstLast" | "lists.addItemsAtIndexes" | "lists.concatenate" | "lists.createEmptyList" | "lists.findIndex" | "lists.flipLists" | "lists.getByPattern" | "lists.getFirstItem" | "lists.getItem" | "lists.getLastItem" | "lists.getListDepth" | "lists.getLongestListLength" | "lists.getNthItem" | "lists.getSubList" | "lists.groupNth" | "lists.includes" | "lists.interleave" | "lists.listLength" | "lists.mergeElementsOfLists" | "lists.prependItem" | "lists.randomGetThreshold" | "lists.randomRemoveThreshold" | "lists.removeAllItems" | "lists.removeDuplicateNumbers" | "lists.removeDuplicateNumbersTolerance" | "lists.removeDuplicates" | "lists.removeFirstItem" | "lists.removeItemAtIndex" | "lists.removeItemAtIndexFromEnd" | "lists.removeItemsAtIndexes" | "lists.removeLastItem" | "lists.removeNthItem" | "lists.repeat" | "lists.repeatInPattern" | "lists.reverse" | "lists.shuffle" | "lists.sortByPropValue" | "lists.sortNumber" | "lists.sortTexts" | "logic.boolean" | "logic.compare" | "logic.firstDefinedValueGate" | "logic.not" | "logic.notList" | "logic.randomBooleans" | "logic.thresholdBooleanList" | "logic.thresholdGapsBooleanList" | "logic.twoThresholdRandomGradient" | "logic.valueGate" | "manifold.crossSection.booleans.add" | "manifold.crossSection.booleans.difference" | "manifold.crossSection.booleans.differenceTwo" | "manifold.crossSection.booleans.intersect" | "manifold.crossSection.booleans.intersection" | "manifold.crossSection.booleans.intersectionTwo" | "manifold.crossSection.booleans.subtract" | "manifold.crossSection.booleans.union" | "manifold.crossSection.booleans.unionTwo" | "manifold.crossSection.crossSectionFromPoints" | "manifold.crossSection.crossSectionFromPolygons" | "manifold.crossSection.crossSectionsToPoints" | "manifold.crossSection.crossSectionsToPolygons" | "manifold.crossSection.crossSectionToPoints" | "manifold.crossSection.crossSectionToPolygons" | "manifold.crossSection.evaluate.area" | "manifold.crossSection.evaluate.bounds" | "manifold.crossSection.evaluate.isEmpty" | "manifold.crossSection.evaluate.numContour" | "manifold.crossSection.evaluate.numVert" | "manifold.crossSection.operations.compose" | "manifold.crossSection.operations.decompose" | "manifold.crossSection.operations.extrude" | "manifold.crossSection.operations.hull" | "manifold.crossSection.operations.loft" | "manifold.crossSection.operations.offset" | "manifold.crossSection.operations.revolve" | "manifold.crossSection.operations.simplify" | "manifold.crossSection.operations.sweep" | "manifold.crossSection.shapes.circle" | "manifold.crossSection.shapes.create" | "manifold.crossSection.shapes.rectangle" | "manifold.crossSection.shapes.square" | "manifold.crossSection.transforms.mirror" | "manifold.crossSection.transforms.rotate" | "manifold.crossSection.transforms.scale" | "manifold.crossSection.transforms.scale2D" | "manifold.crossSection.transforms.transform" | "manifold.crossSection.transforms.translate" | "manifold.crossSection.transforms.translateXY" | "manifold.decomposeManifoldOrCrossSection" | "manifold.decomposeManifoldsOrCrossSections" | "manifold.deleteManifoldOrCrossSection" | "manifold.deleteManifoldsOrCrossSections" | "manifold.manifold.booleans.add" | "manifold.manifold.booleans.difference" | "manifold.manifold.booleans.differenceTwo" | "manifold.manifold.booleans.intersect" | "manifold.manifold.booleans.intersection" | "manifold.manifold.booleans.intersectionTwo" | "manifold.manifold.booleans.minkowskiDifference" | "manifold.manifold.booleans.minkowskiSum" | "manifold.manifold.booleans.split" | "manifold.manifold.booleans.splitByPlane" | "manifold.manifold.booleans.splitByPlaneOnOffsets" | "manifold.manifold.booleans.subtract" | "manifold.manifold.booleans.trimByPlane" | "manifold.manifold.booleans.union" | "manifold.manifold.booleans.unionTwo" | "manifold.manifold.evaluate.boundingBox" | "manifold.manifold.evaluate.genus" | "manifold.manifold.evaluate.isEmpty" | "manifold.manifold.evaluate.minGap" | "manifold.manifold.evaluate.numEdge" | "manifold.manifold.evaluate.numProp" | "manifold.manifold.evaluate.numPropVert" | "manifold.manifold.evaluate.numTri" | "manifold.manifold.evaluate.numVert" | "manifold.manifold.evaluate.originalID" | "manifold.manifold.evaluate.rayCast" | "manifold.manifold.evaluate.status" | "manifold.manifold.evaluate.surfaceArea" | "manifold.manifold.evaluate.tolerance" | "manifold.manifold.evaluate.volume" | "manifold.manifold.manifoldsToMeshes" | "manifold.manifold.manifoldToMesh" | "manifold.manifold.operations.asOriginal" | "manifold.manifold.operations.calculateCurvature" | "manifold.manifold.operations.calculateNormals" | "manifold.manifold.operations.compose" | "manifold.manifold.operations.decompose" | "manifold.manifold.operations.hull" | "manifold.manifold.operations.hullPoints" | "manifold.manifold.operations.project" | "manifold.manifold.operations.refine" | "manifold.manifold.operations.refineToLength" | "manifold.manifold.operations.refineToTolerance" | "manifold.manifold.operations.reserveIds" | "manifold.manifold.operations.setTolerance" | "manifold.manifold.operations.simplify" | "manifold.manifold.operations.slice" | "manifold.manifold.operations.smoothByNormals" | "manifold.manifold.operations.smoothOut" | "manifold.manifold.shapes.cube" | "manifold.manifold.shapes.cylinder" | "manifold.manifold.shapes.fromPolygonPoints" | "manifold.manifold.shapes.manifoldFromMesh" | "manifold.manifold.shapes.sphere" | "manifold.manifold.shapes.tetrahedron" | "manifold.manifold.transforms.mirror" | "manifold.manifold.transforms.rotate" | "manifold.manifold.transforms.rotateXYZ" | "manifold.manifold.transforms.scale" | "manifold.manifold.transforms.scale3D" | "manifold.manifold.transforms.transform" | "manifold.manifold.transforms.transforms" | "manifold.manifold.transforms.translate" | "manifold.manifold.transforms.translateByVectors" | "manifold.manifold.transforms.translateXYZ" | "manifold.manifoldToMeshPointer" | "manifold.mesh.evaluate.backside" | "manifold.mesh.evaluate.extras" | "manifold.mesh.evaluate.hasNormals" | "manifold.mesh.evaluate.numProp" | "manifold.mesh.evaluate.numRun" | "manifold.mesh.evaluate.numTri" | "manifold.mesh.evaluate.numVert" | "manifold.mesh.evaluate.position" | "manifold.mesh.evaluate.tangent" | "manifold.mesh.evaluate.transform" | "manifold.mesh.evaluate.verts" | "manifold.mesh.operations.merge" | "manifold.recipes.build" | "manifold.recipes.meshes" | "manifold.recipes.surfaceMeshes" | "manifold.toPolygonPoints" | "math.abs" | "math.acos" | "math.add" | "math.asin" | "math.atan" | "math.ceil" | "math.clamp" | "math.convertLength" | "math.cos" | "math.degToRad" | "math.divide" | "math.ease" | "math.evalArithmetic" | "math.exp" | "math.floor" | "math.fract" | "math.inverseLerp" | "math.lerp" | "math.ln" | "math.log10" | "math.millimetresPerUnit" | "math.modulus" | "math.moveTowards" | "math.multiply" | "math.negate" | "math.niceStep" | "math.number" | "math.oneNrOperation" | "math.pi" | "math.pingPong" | "math.power" | "math.radToDeg" | "math.random" | "math.randomNumber" | "math.randomNumbers" | "math.remap" | "math.round" | "math.roundAndRemoveTrailingZeros" | "math.roundToDecimals" | "math.shortestAngle" | "math.sign" | "math.sin" | "math.smoothstep" | "math.sqrt" | "math.subtract" | "math.tan" | "math.tenPow" | "math.toFixed" | "math.toFractionText" | "math.twoNrOperation" | "math.wrap" | "occt.analysis.clashes.betweenShapes" | "occt.analysis.clashes.facesWithin" | "occt.analysis.clashes.selfIntersections" | "occt.analysis.curves.closestPoints" | "occt.analysis.curves.curvatureComb" | "occt.analysis.curves.curvaturesAtLengths" | "occt.analysis.curves.curvaturesAtParams" | "occt.analysis.curves.curveType" | "occt.analysis.curves.extremesAlong" | "occt.analysis.curves.intersectCurves" | "occt.analysis.curves.intersectCurveWithFace" | "occt.analysis.curves.kinks" | "occt.analysis.measure.angleBetween" | "occt.analysis.measure.boundingBoxInFrame" | "occt.analysis.measure.dihedralAngle" | "occt.analysis.measure.extrema" | "occt.analysis.measure.minCurvatureRadius" | "occt.analysis.measure.orientedBoundingBox" | "occt.analysis.measure.principalFrame" | "occt.analysis.measure.tightBoundingBox" | "occt.analysis.signatures" | "occt.analysis.surfaces.closestPoints" | "occt.analysis.surfaces.curvaturesOnUVs" | "occt.analysis.surfaces.surfaceType" | "occt.assembly.manager.buildAssemblyDocument" | "occt.assembly.manager.combineStructure" | "occt.assembly.manager.createAssemblyNode" | "occt.assembly.manager.createImportedPart" | "occt.assembly.manager.createInstanceNode" | "occt.assembly.manager.createPart" | "occt.assembly.manager.createPartUpdate" | "occt.assembly.manager.deleteDocument" | "occt.assembly.manager.exportDocumentToGltf" | "occt.assembly.manager.exportDocumentToGltfWithDraco" | "occt.assembly.manager.exportDocumentToObj" | "occt.assembly.manager.exportDocumentToPly" | "occt.assembly.manager.exportDocumentToStep" | "occt.assembly.manager.loadGltfToDoc" | "occt.assembly.manager.loadObjToDoc" | "occt.assembly.manager.loadStepToDoc" | "occt.assembly.manager.setDocLabelColor" | "occt.assembly.manager.setDocLabelName" | "occt.assembly.query.getAssemblyHierarchy" | "occt.assembly.query.getDocumentParts" | "occt.assembly.query.getDocumentPmi" | "occt.assembly.query.getLabelColor" | "occt.assembly.query.getLabelInfo" | "occt.assembly.query.getLabelTransform" | "occt.assembly.query.getShapeFromLabel" | "occt.booleans.difference" | "occt.booleans.differenceWithHistory" | "occt.booleans.intersection" | "occt.booleans.intersectionWithHistory" | "occt.booleans.meshMeshIntersectionOfShapesPoints" | "occt.booleans.meshMeshIntersectionOfShapesWires" | "occt.booleans.meshMeshIntersectionPoints" | "occt.booleans.meshMeshIntersectionWires" | "occt.booleans.union" | "occt.booleans.unionWithHistory" | "occt.brepGraph.analyze" | "occt.brepGraph.assembly" | "occt.brepGraph.containment" | "occt.brepGraph.dump" | "occt.brepGraph.edgeFaceMap" | "occt.brepGraph.edgeInfo" | "occt.brepGraph.faceAdjacency" | "occt.brepGraph.faceInfo" | "occt.brepGraph.nodeOfShape" | "occt.brepGraph.reconstruct" | "occt.brepGraph.validate" | "occt.brepGraph.vertexEdgeMap" | "occt.brepGraph.wireInfo" | "occt.cleanAllCache" | "occt.corners.chamferCornerByPoint" | "occt.corners.classifyCornerByPoint" | "occt.corners.cornerByPointReport" | "occt.corners.filletCornerByPoint" | "occt.deleteShape" | "occt.deleteShapes" | "occt.design.build" | "occt.design.clashes" | "occt.design.validate" | "occt.design.versionOf" | "occt.dimensions.pinWithLabel" | "occt.dimensions.simpleAngularDimension" | "occt.dimensions.simpleLinearLengthDimension" | "occt.docToMesh" | "occt.docToMeshes" | "occt.draft.draftAngle" | "occt.draft.draftAngleWithHistory" | "occt.draft.makeDraft" | "occt.draft.makeDraftToShape" | "occt.draft.makeDraftToShapeWithHistory" | "occt.draft.makeDraftWithHistory" | "occt.features.boss" | "occt.features.bossWithHistory" | "occt.features.counterboredHoles" | "occt.features.counterboredHolesWithHistory" | "occt.features.countersunkHoles" | "occt.features.countersunkHolesWithHistory" | "occt.features.groove" | "occt.features.grooveWithHistory" | "occt.features.holes" | "occt.features.holesWithHistory" | "occt.features.pocket" | "occt.features.pocketWithHistory" | "occt.features.pushPullFaces" | "occt.features.pushPullFacesWithHistory" | "occt.features.removeFaces" | "occt.features.removeFacesWithHistory" | "occt.features.revolvedBoss" | "occt.features.revolvedBossWithHistory" | "occt.features.revolvedPocket" | "occt.features.revolvedPocketWithHistory" | "occt.features.rib" | "occt.features.ribWithHistory" | "occt.features.taperedBoss" | "occt.features.taperedBossWithHistory" | "occt.features.taperedPocket" | "occt.features.taperedPocketWithHistory" | "occt.fillets.chamfer2dVertices" | "occt.fillets.chamferEdgeDistAngle" | "occt.fillets.chamferEdgeDistAngleWithHistory" | "occt.fillets.chamferEdges" | "occt.fillets.chamferEdgesDistAngle" | "occt.fillets.chamferEdgesDistAngleWithHistory" | "occt.fillets.chamferEdgesDistsAngles" | "occt.fillets.chamferEdgesDistsAnglesWithHistory" | "occt.fillets.chamferEdgesList" | "occt.fillets.chamferEdgesListWithHistory" | "occt.fillets.chamferEdgesTwoDistances" | "occt.fillets.chamferEdgesTwoDistancesLists" | "occt.fillets.chamferEdgesTwoDistancesListsWithHistory" | "occt.fillets.chamferEdgesTwoDistancesWithHistory" | "occt.fillets.chamferEdgesWithHistory" | "occt.fillets.chamferEdgeTwoDistances" | "occt.fillets.chamferEdgeTwoDistancesWithHistory" | "occt.fillets.fillet2d" | "occt.fillets.fillet2dShapes" | "occt.fillets.fillet3DWire" | "occt.fillets.fillet3DWires" | "occt.fillets.filletEdges" | "occt.fillets.filletEdgesList" | "occt.fillets.filletEdgesListOneRadius" | "occt.fillets.filletEdgesListOneRadiusWithHistory" | "occt.fillets.filletEdgesListWithHistory" | "occt.fillets.filletEdgesSameVariableRadius" | "occt.fillets.filletEdgesSameVariableRadiusWithHistory" | "occt.fillets.filletEdgesVariableRadius" | "occt.fillets.filletEdgesVariableRadiusWithHistory" | "occt.fillets.filletEdgesWithHistory" | "occt.fillets.filletEdgeVariableRadius" | "occt.fillets.filletEdgeVariableRadiusWithHistory" | "occt.fillets.filletTwoEdgesInPlaneIntoAWire" | "occt.geom.curves.geom2dEllipse" | "occt.geom.curves.geom2dSegment" | "occt.geom.curves.geom2dTrimmedCurve" | "occt.geom.curves.geomCircleCurve" | "occt.geom.curves.geomEllipseCurve" | "occt.geom.curves.get2dPointFrom2dCurveOnParam" | "occt.geom.surfaces.cylindricalSurface" | "occt.geom.surfaces.surfaceFromFace" | "occt.io.convertStepToGltf" | "occt.io.convertStepToGltfAdvanced" | "occt.io.convertStepToGltfAdvancedWithDraco" | "occt.io.convertStepToGltfWithDraco" | "occt.io.dxfCreate" | "occt.io.dxfPathsWithLayer" | "occt.io.fileLengthUnit" | "occt.io.loadBrep" | "occt.io.loadBrepBinary" | "occt.io.loadDxf" | "occt.io.loadDxfStructured" | "occt.io.loadSTEPorIGES" | "occt.io.loadStl" | "occt.io.parseStepToJson" | "occt.io.saveShapeBrep" | "occt.io.saveShapeBrepAndReturn" | "occt.io.saveShapeBrepBinary" | "occt.io.saveShapeBrepBinaryAndReturn" | "occt.io.saveShapeDxf" | "occt.io.saveShapeDxfAndReturn" | "occt.io.saveShapeObj" | "occt.io.saveShapeObjAndReturn" | "occt.io.saveShapePly" | "occt.io.saveShapePlyAndReturn" | "occt.io.saveShapeSTEP" | "occt.io.saveShapeSTEPAndReturn" | "occt.io.saveShapeStl" | "occt.io.saveShapeStlAndReturn" | "occt.io.saveShapeSvg" | "occt.io.saveShapeSvgAndReturn" | "occt.io.shapeToDxfPaths" | "occt.io.svgCreate" | "occt.io.svgLayer" | "occt.operations.boundingBoxCenterOfShape" | "occt.operations.boundingBoxMaxOfShape" | "occt.operations.boundingBoxMinOfShape" | "occt.operations.boundingBoxOfShape" | "occt.operations.boundingBoxShapeOfShape" | "occt.operations.boundingBoxSizeOfShape" | "occt.operations.boundingSphereCenterOfShape" | "occt.operations.boundingSphereOfShape" | "occt.operations.boundingSphereRadiusOfShape" | "occt.operations.boundingSphereShapeOfShape" | "occt.operations.closestPointsBetweenTwoShapes" | "occt.operations.closestPointsOnShapeFromPoints" | "occt.operations.closestPointsOnShapesFromPoints" | "occt.operations.cutByFrames" | "occt.operations.distancesToShapeFromPoints" | "occt.operations.extrude" | "occt.operations.extrudeShapes" | "occt.operations.extrudeWithHistory" | "occt.operations.hiddenLines" | "occt.operations.loft" | "occt.operations.loftAdvanced" | "occt.operations.loftAdvancedWithHistory" | "occt.operations.loftWithHistory" | "occt.operations.makeThickSolidByJoin" | "occt.operations.makeThickSolidByJoinWithHistory" | "occt.operations.makeThickSolidSimple" | "occt.operations.makeThickSolidSimpleWithHistory" | "occt.operations.offset" | "occt.operations.offset3DWire" | "occt.operations.offsetAdv" | "occt.operations.offsetAdvWithHistory" | "occt.operations.offsetWithHistory" | "occt.operations.pipe" | "occt.operations.pipePolylineWireNGon" | "occt.operations.pipePolylineWireNGonWithHistory" | "occt.operations.pipeWireCylindrical" | "occt.operations.pipeWireCylindricalWithHistory" | "occt.operations.pipeWiresCylindrical" | "occt.operations.pipeWithHistory" | "occt.operations.pipeWithScaling" | "occt.operations.revolve" | "occt.operations.revolveWithHistory" | "occt.operations.rotatedExtrude" | "occt.operations.rotatedExtrudeWithHistory" | "occt.operations.sectionByFrames" | "occt.operations.sectionWires" | "occt.operations.slice" | "occt.operations.sliceByFrames" | "occt.operations.sliceInStepPattern" | "occt.operations.splitByFrame" | "occt.operations.splitFaceByWires" | "occt.operations.splitShapeWithShapes" | "occt.operations.splitShapeWithShapesWithHistory" | "occt.operations.sweepEvolved" | "occt.parts.mechanical.bearings.ansi.ballBearing" | "occt.parts.mechanical.bearings.ansi.ballBearingWithRoles" | "occt.parts.mechanical.bearings.iso.ballBearing" | "occt.parts.mechanical.bearings.iso.ballBearingWithRoles" | "occt.parts.mechanical.fasteners.ansi.hexBolt" | "occt.parts.mechanical.fasteners.ansi.hexBoltWithRoles" | "occt.parts.mechanical.fasteners.ansi.hexNut" | "occt.parts.mechanical.fasteners.ansi.hexNutWithRoles" | "occt.parts.mechanical.fasteners.ansi.setScrew" | "occt.parts.mechanical.fasteners.ansi.setScrewWithRoles" | "occt.parts.mechanical.fasteners.ansi.socketHeadCapScrew" | "occt.parts.mechanical.fasteners.ansi.socketHeadCapScrewWithRoles" | "occt.parts.mechanical.fasteners.ansi.washer" | "occt.parts.mechanical.fasteners.ansi.washerWithRoles" | "occt.parts.mechanical.fasteners.dowelPin" | "occt.parts.mechanical.fasteners.dowelPinWithRoles" | "occt.parts.mechanical.fasteners.iso.hexBolt" | "occt.parts.mechanical.fasteners.iso.hexBoltWithRoles" | "occt.parts.mechanical.fasteners.iso.hexNut" | "occt.parts.mechanical.fasteners.iso.hexNutWithRoles" | "occt.parts.mechanical.fasteners.iso.setScrew" | "occt.parts.mechanical.fasteners.iso.setScrewWithRoles" | "occt.parts.mechanical.fasteners.iso.socketHeadCapScrew" | "occt.parts.mechanical.fasteners.iso.socketHeadCapScrewWithRoles" | "occt.parts.mechanical.fasteners.iso.washer" | "occt.parts.mechanical.fasteners.iso.washerWithRoles" | "occt.parts.mechanical.gears.bevelGear" | "occt.parts.mechanical.gears.bevelGearWithRoles" | "occt.parts.mechanical.gears.helicalGear" | "occt.parts.mechanical.gears.helicalGearWithRoles" | "occt.parts.mechanical.gears.rack" | "occt.parts.mechanical.gears.rackProfile" | "occt.parts.mechanical.gears.rackWithRoles" | "occt.parts.mechanical.gears.ringGear" | "occt.parts.mechanical.gears.ringGearProfile" | "occt.parts.mechanical.gears.ringGearWithRoles" | "occt.parts.mechanical.gears.spurGear" | "occt.parts.mechanical.gears.spurGearProfile" | "occt.parts.mechanical.gears.spurGearWithRoles" | "occt.parts.mechanical.keys.ansi.parallelKey" | "occt.parts.mechanical.keys.ansi.parallelKeyWithRoles" | "occt.parts.mechanical.keys.din.parallelKey" | "occt.parts.mechanical.keys.din.parallelKeyWithRoles" | "occt.parts.mechanical.machining.ansi.keyway" | "occt.parts.mechanical.machining.ansi.keywayTool" | "occt.parts.mechanical.machining.ansi.knurl" | "occt.parts.mechanical.machining.ansi.knurlTool" | "occt.parts.mechanical.machining.ansi.ringGroove" | "occt.parts.mechanical.machining.ansi.ringGrooveTool" | "occt.parts.mechanical.machining.ansi.splinedHub" | "occt.parts.mechanical.machining.ansi.splinedHubTool" | "occt.parts.mechanical.machining.ansi.splinedShaft" | "occt.parts.mechanical.machining.ansi.thread" | "occt.parts.mechanical.machining.ansi.threadTool" | "occt.parts.mechanical.machining.din.keyway" | "occt.parts.mechanical.machining.din.keywayTool" | "occt.parts.mechanical.machining.din.knurl" | "occt.parts.mechanical.machining.din.knurlTool" | "occt.parts.mechanical.machining.din.ringGroove" | "occt.parts.mechanical.machining.din.ringGrooveTool" | "occt.parts.mechanical.machining.din.splinedHub" | "occt.parts.mechanical.machining.din.splinedHubTool" | "occt.parts.mechanical.machining.din.splinedShaft" | "occt.parts.mechanical.machining.flat" | "occt.parts.mechanical.machining.flatTool" | "occt.parts.mechanical.machining.iso.thread" | "occt.parts.mechanical.machining.iso.threadTool" | "occt.parts.mechanical.retainingRings.ansi.retainingRing" | "occt.parts.mechanical.retainingRings.ansi.retainingRingWithRoles" | "occt.parts.mechanical.retainingRings.din.retainingRing" | "occt.parts.mechanical.retainingRings.din.retainingRingWithRoles" | "occt.parts.mechanical.springs.compressionSpring" | "occt.parts.mechanical.springs.compressionSpringPath" | "occt.parts.mechanical.springs.compressionSpringWithRoles" | "occt.path.shapeFromPath" | "occt.recipes.build" | "occt.recipes.buildDocument" | "occt.recipes.describe" | "occt.select.edges.along" | "occt.select.edges.between" | "occt.select.edges.byLength" | "occt.select.edges.byRadius" | "occt.select.edges.concave" | "occt.select.edges.convex" | "occt.select.edges.extreme" | "occt.select.edges.groupAlong" | "occt.select.edges.inBox" | "occt.select.edges.inSphere" | "occt.select.edges.nearest" | "occt.select.edges.ofFaces" | "occt.select.edges.ofType" | "occt.select.edges.onPlane" | "occt.select.edges.sortAlong" | "occt.select.edges.tangentChain" | "occt.select.faces.adjacentTo" | "occt.select.faces.byRadius" | "occt.select.faces.bySize" | "occt.select.faces.extreme" | "occt.select.faces.facing" | "occt.select.faces.groupAlong" | "occt.select.faces.inBox" | "occt.select.faces.inSphere" | "occt.select.faces.nearest" | "occt.select.faces.ofEdges" | "occt.select.faces.ofType" | "occt.select.faces.onPlane" | "occt.select.faces.sortAlong" | "occt.shapeFacesToPolygonPoints" | "occt.shapeFix.basicShapeRepair" | "occt.shapeFix.fixEdgeOrientationsAlongWire" | "occt.shapeFix.fixShell" | "occt.shapeFix.fixSmallEdgeOnWire" | "occt.shapeFix.fixSolid" | "occt.shapeFix.freeBoundaries" | "occt.shapeFix.isValid" | "occt.shapeFix.orientClosedSolid" | "occt.shapeFix.sewWithReport" | "occt.shapeFix.validityReport" | "occt.shapes.compound.getShapesOfCompound" | "occt.shapes.compound.makeCompound" | "occt.shapes.edge.arcFromCircleAndTwoAngles" | "occt.shapes.edge.arcFromCircleAndTwoPoints" | "occt.shapes.edge.arcFromCirclePointAndAngle" | "occt.shapes.edge.arcThroughThreePoints" | "occt.shapes.edge.arcThroughTwoPointsAndTangent" | "occt.shapes.edge.blendBetweenEdges" | "occt.shapes.edge.circlesTangentToThree" | "occt.shapes.edge.circlesTangentToTwoCenteredOn" | "occt.shapes.edge.circlesTangentToTwoWithRadius" | "occt.shapes.edge.constraintTanCirclesOnCircleAndPnt" | "occt.shapes.edge.constraintTanCirclesOnTwoCircles" | "occt.shapes.edge.constraintTanLinesFromPtToCircle" | "occt.shapes.edge.constraintTanLinesFromTwoPtsToCircle" | "occt.shapes.edge.constraintTanLinesOnTwoCircles" | "occt.shapes.edge.createCircleEdge" | "occt.shapes.edge.createEllipseEdge" | "occt.shapes.edge.debugInfo" | "occt.shapes.edge.divideEdgeByEqualDistanceToPoints" | "occt.shapes.edge.divideEdgeByParamsToPoints" | "occt.shapes.edge.divideEdgesByEqualDistanceToPoints" | "occt.shapes.edge.divideEdgesByParamsToPoints" | "occt.shapes.edge.edgesToPoints" | "occt.shapes.edge.endPointOnEdge" | "occt.shapes.edge.endPointsOnEdges" | "occt.shapes.edge.extendEdge" | "occt.shapes.edge.frameOnEdgeAtLength" | "occt.shapes.edge.frameOnEdgeAtParam" | "occt.shapes.edge.framesOnEdgeAtLengths" | "occt.shapes.edge.framesOnEdgeAtParams" | "occt.shapes.edge.fromBaseLine" | "occt.shapes.edge.fromBaseLines" | "occt.shapes.edge.fromBaseMesh" | "occt.shapes.edge.fromBasePolyline" | "occt.shapes.edge.fromBaseSegment" | "occt.shapes.edge.fromBaseSegments" | "occt.shapes.edge.fromBaseTriangle" | "occt.shapes.edge.fromPoints" | "occt.shapes.edge.getCircularEdgeCenterPoint" | "occt.shapes.edge.getCircularEdgePlaneDirection" | "occt.shapes.edge.getCircularEdgeRadius" | "occt.shapes.edge.getCircularEdgesAlongWire" | "occt.shapes.edge.getCornerPointsOfEdgesForShape" | "occt.shapes.edge.getEdge" | "occt.shapes.edge.getEdgeCenterOfMass" | "occt.shapes.edge.getEdgeLength" | "occt.shapes.edge.getEdgeLengthsOfShape" | "occt.shapes.edge.getEdges" | "occt.shapes.edge.getEdgesAlongWire" | "occt.shapes.edge.getEdgesCentersOfMass" | "occt.shapes.edge.getEdgesLengths" | "occt.shapes.edge.getLinearEdgesAlongWire" | "occt.shapes.edge.isEdgeCircular" | "occt.shapes.edge.isEdgeLinear" | "occt.shapes.edge.line" | "occt.shapes.edge.linesTangentAtAngle" | "occt.shapes.edge.linesTangentToTwo" | "occt.shapes.edge.makeEdgeFromGeom2dCurveAndSurface" | "occt.shapes.edge.moveEdgeSeamByLength" | "occt.shapes.edge.moveEdgeSeamByParameter" | "occt.shapes.edge.pointOnEdgeAtLength" | "occt.shapes.edge.pointOnEdgeAtParam" | "occt.shapes.edge.pointsOnEdgesAtLength" | "occt.shapes.edge.pointsOnEdgesAtParam" | "occt.shapes.edge.rebuildEdgeDegree" | "occt.shapes.edge.removeInternalEdges" | "occt.shapes.edge.reversedEdge" | "occt.shapes.edge.splitEdgeAtLengths" | "occt.shapes.edge.splitEdgeAtParams" | "occt.shapes.edge.startPointOnEdge" | "occt.shapes.edge.startPointsOnEdges" | "occt.shapes.edge.tangentOnEdgeAtLength" | "occt.shapes.edge.tangentOnEdgeAtParam" | "occt.shapes.edge.tangentsOnEdgesAtLength" | "occt.shapes.edge.tangentsOnEdgesAtParam" | "occt.shapes.face.boundaryPatch" | "occt.shapes.face.createChristmasTreeFace" | "occt.shapes.face.createCircleFace" | "occt.shapes.face.createEllipseFace" | "occt.shapes.face.createFaceBoundedByWiresOnFace" | "occt.shapes.face.createFaceFromMultipleCircleTanWireCollections" | "occt.shapes.face.createFaceFromMultipleCircleTanWires" | "occt.shapes.face.createFaceFromWire" | "occt.shapes.face.createFaceFromWireOnFace" | "occt.shapes.face.createFaceFromWires" | "occt.shapes.face.createFaceFromWiresOnFace" | "occt.shapes.face.createFacesFromWires" | "occt.shapes.face.createFacesFromWiresOnFace" | "occt.shapes.face.createHBeamProfileFace" | "occt.shapes.face.createHeartFace" | "occt.shapes.face.createIBeamProfileFace" | "occt.shapes.face.createLPolygonFace" | "occt.shapes.face.createNGonFace" | "occt.shapes.face.createParallelogramFace" | "occt.shapes.face.createPolygonFace" | "occt.shapes.face.createRectangleFace" | "occt.shapes.face.createSquareFace" | "occt.shapes.face.createStarFace" | "occt.shapes.face.createTBeamProfileFace" | "occt.shapes.face.createUBeamProfileFace" | "occt.shapes.face.debugInfo" | "occt.shapes.face.faceFromSurface" | "occt.shapes.face.faceFromSurfaceAndWire" | "occt.shapes.face.fillPatch" | "occt.shapes.face.filterFacePoints" | "occt.shapes.face.filterFacesPoints" | "occt.shapes.face.flipFaceUV" | "occt.shapes.face.frameNearestPoint" | "occt.shapes.face.frameOnUV" | "occt.shapes.face.framesNearestPoints" | "occt.shapes.face.framesOnUVs" | "occt.shapes.face.fromBaseMesh" | "occt.shapes.face.fromBaseTriangle" | "occt.shapes.face.fromPointGrid" | "occt.shapes.face.getFace" | "occt.shapes.face.getFaceArea" | "occt.shapes.face.getFaceCenterOfMass" | "occt.shapes.face.getFaces" | "occt.shapes.face.getFacesAreas" | "occt.shapes.face.getFacesCentersOfMass" | "occt.shapes.face.getUMaxBound" | "occt.shapes.face.getUMinBound" | "occt.shapes.face.getVMaxBound" | "occt.shapes.face.getVMinBound" | "occt.shapes.face.hexagonsInGrid" | "occt.shapes.face.isoCurves" | "occt.shapes.face.normalizeFaceParametrization" | "occt.shapes.face.normalOnUV" | "occt.shapes.face.normalsOnUVs" | "occt.shapes.face.pointOnUV" | "occt.shapes.face.pointsOnUVs" | "occt.shapes.face.rebuildFaceDegree" | "occt.shapes.face.reversedFace" | "occt.shapes.face.ruledBetween" | "occt.shapes.face.subdivideToFrames" | "occt.shapes.face.subdivideToHexagonHoles" | "occt.shapes.face.subdivideToHexagonWires" | "occt.shapes.face.subdivideToNormals" | "occt.shapes.face.subdivideToPoints" | "occt.shapes.face.subdivideToPointsControlled" | "occt.shapes.face.subdivideToPointsOnParam" | "occt.shapes.face.subdivideToRectangleHoles" | "occt.shapes.face.subdivideToRectangleWires" | "occt.shapes.face.subdivideToUV" | "occt.shapes.face.subdivideToWires" | "occt.shapes.face.unroll" | "occt.shapes.face.wireAlongParam" | "occt.shapes.face.wiresAlongParams" | "occt.shapes.shape.getOrientation" | "occt.shapes.shape.getShapeType" | "occt.shapes.shape.isChecked" | "occt.shapes.shape.isClosed" | "occt.shapes.shape.isConvex" | "occt.shapes.shape.isEqual" | "occt.shapes.shape.isFree" | "occt.shapes.shape.isInfinite" | "occt.shapes.shape.isLocked" | "occt.shapes.shape.isModified" | "occt.shapes.shape.isNotEqual" | "occt.shapes.shape.isNull" | "occt.shapes.shape.isPartner" | "occt.shapes.shape.isSame" | "occt.shapes.shape.purgeInternalEdges" | "occt.shapes.shape.unifySameDomain" | "occt.shapes.shape.unifySameDomainWithHistory" | "occt.shapes.shell.debugInfo" | "occt.shapes.shell.getShellSurfaceArea" | "occt.shapes.shell.sewFaces" | "occt.shapes.shell.sewFacesWithHistory" | "occt.shapes.solid.createBox" | "occt.shapes.solid.createBoxFromCorner" | "occt.shapes.solid.createChristmasTreeSolid" | "occt.shapes.solid.createCone" | "occt.shapes.solid.createCube" | "occt.shapes.solid.createCylinder" | "occt.shapes.solid.createCylindersOnLines" | "occt.shapes.solid.createHBeamProfileSolid" | "occt.shapes.solid.createHeartSolid" | "occt.shapes.solid.createIBeamProfileSolid" | "occt.shapes.solid.createLPolygonSolid" | "occt.shapes.solid.createNGonSolid" | "occt.shapes.solid.createParallelogramSolid" | "occt.shapes.solid.createSphere" | "occt.shapes.solid.createStarSolid" | "occt.shapes.solid.createTBeamProfileSolid" | "occt.shapes.solid.createTorus" | "occt.shapes.solid.createUBeamProfileSolid" | "occt.shapes.solid.debugInfo" | "occt.shapes.solid.filterSolidPoints" | "occt.shapes.solid.fromClosedShell" | "occt.shapes.solid.fromFaces" | "occt.shapes.solid.fromFacesWithHistory" | "occt.shapes.solid.getSolidCenterOfMass" | "occt.shapes.solid.getSolids" | "occt.shapes.solid.getSolidsCentersOfMass" | "occt.shapes.solid.getSolidSurfaceArea" | "occt.shapes.solid.getSolidsVolumes" | "occt.shapes.solid.getSolidVolume" | "occt.shapes.vertex.getVertices" | "occt.shapes.vertex.getVerticesAsPoints" | "occt.shapes.vertex.projectPoints" | "occt.shapes.vertex.vertexFromPoint" | "occt.shapes.vertex.vertexFromXYZ" | "occt.shapes.vertex.vertexToPoint" | "occt.shapes.vertex.verticesCompoundFromPoints" | "occt.shapes.vertex.verticesFromPoints" | "occt.shapes.vertex.verticesToPoints" | "occt.shapes.wire.addEdgesAndWiresToWire" | "occt.shapes.wire.closeOpenWire" | "occt.shapes.wire.combineEdgesAndWiresIntoAWire" | "occt.shapes.wire.createBezier" | "occt.shapes.wire.createBezierWeights" | "occt.shapes.wire.createBezierWires" | "occt.shapes.wire.createBSpline" | "occt.shapes.wire.createBSplines" | "occt.shapes.wire.createChristmasTreeWire" | "occt.shapes.wire.createCircleWire" | "occt.shapes.wire.createEllipseWire" | "occt.shapes.wire.createFlatSpiralWire" | "occt.shapes.wire.createHBeamProfileWire" | "occt.shapes.wire.createHeartWire" | "occt.shapes.wire.createHelixWire" | "occt.shapes.wire.createHelixWireByTurns" | "occt.shapes.wire.createIBeamProfileWire" | "occt.shapes.wire.createLines" | "occt.shapes.wire.createLineWire" | "occt.shapes.wire.createLineWireWithExtensions" | "occt.shapes.wire.createLPolygonWire" | "occt.shapes.wire.createNGonWire" | "occt.shapes.wire.createParallelogramWire" | "occt.shapes.wire.createPolygons" | "occt.shapes.wire.createPolygonWire" | "occt.shapes.wire.createPolylines" | "occt.shapes.wire.createPolylineWire" | "occt.shapes.wire.createRectangleWire" | "occt.shapes.wire.createSquareWire" | "occt.shapes.wire.createStarWire" | "occt.shapes.wire.createTaperedHelixWire" | "occt.shapes.wire.createTBeamProfileWire" | "occt.shapes.wire.createUBeamProfileWire" | "occt.shapes.wire.createWireFromEdge" | "occt.shapes.wire.createWireFromTwoCirclesTan" | "occt.shapes.wire.createWiresBetweenStartEndPointsOfWiresAndEdges" | "occt.shapes.wire.createWiresBetweenSubdividedPointsOfWiresAndEdges" | "occt.shapes.wire.createZigZagBetweenTwoWires" | "occt.shapes.wire.debugInfo" | "occt.shapes.wire.derivativesOnWireAtLength" | "occt.shapes.wire.derivativesOnWireAtParam" | "occt.shapes.wire.divideWireByEqualDistanceToPoints" | "occt.shapes.wire.divideWireByParamsToPoints" | "occt.shapes.wire.divideWiresByEqualDistanceToPoints" | "occt.shapes.wire.divideWiresByParamsToPoints" | "occt.shapes.wire.endPointOnWire" | "occt.shapes.wire.frameOnWireAtLength" | "occt.shapes.wire.frameOnWireAtParam" | "occt.shapes.wire.framesAlongWire" | "occt.shapes.wire.framesOnWireAtLengths" | "occt.shapes.wire.framesOnWireAtParams" | "occt.shapes.wire.fromBaseLine" | "occt.shapes.wire.fromBaseLines" | "occt.shapes.wire.fromBaseMesh" | "occt.shapes.wire.fromBasePolyline" | "occt.shapes.wire.fromBaseSegment" | "occt.shapes.wire.fromBaseSegments" | "occt.shapes.wire.fromBaseTriangle" | "occt.shapes.wire.fromPoints" | "occt.shapes.wire.getWire" | "occt.shapes.wire.getWireCenterOfMass" | "occt.shapes.wire.getWireLength" | "occt.shapes.wire.getWires" | "occt.shapes.wire.getWiresCentersOfMass" | "occt.shapes.wire.getWiresLengths" | "occt.shapes.wire.hexagonsInGrid" | "occt.shapes.wire.interpolatePoints" | "occt.shapes.wire.interpolatePointsSymmetric" | "occt.shapes.wire.interpolateWires" | "occt.shapes.wire.isWireClosed" | "occt.shapes.wire.midPointOnWire" | "occt.shapes.wire.moveWireSeamByLength" | "occt.shapes.wire.moveWireSeamByParameter" | "occt.shapes.wire.offsetOpen" | "occt.shapes.wire.placeWireOnFace" | "occt.shapes.wire.placeWiresOnFace" | "occt.shapes.wire.pointOnWireAtLength" | "occt.shapes.wire.pointOnWireAtParam" | "occt.shapes.wire.pointsOnWireAtEqualLength" | "occt.shapes.wire.pointsOnWireAtLengths" | "occt.shapes.wire.pointsOnWireAtPatternOfLengths" | "occt.shapes.wire.project" | "occt.shapes.wire.projectConical" | "occt.shapes.wire.projectNormal" | "occt.shapes.wire.projectWires" | "occt.shapes.wire.rebuildWireDegree" | "occt.shapes.wire.reversedWire" | "occt.shapes.wire.reversedWireFromReversedEdges" | "occt.shapes.wire.splitOnPoints" | "occt.shapes.wire.splitWireAtLengths" | "occt.shapes.wire.splitWireAtParams" | "occt.shapes.wire.startPointOnWire" | "occt.shapes.wire.tangentOnWireAtLength" | "occt.shapes.wire.tangentOnWireAtParam" | "occt.shapes.wire.textWires" | "occt.shapes.wire.textWiresWithData" | "occt.shapes.wire.wiresToPoints" | "occt.shapes.wire.wrapWiresOnFace" | "occt.shapesToMeshes" | "occt.shapeToManifoldMesh" | "occt.shapeToMesh" | "occt.sketch.commands.bulgeArc" | "occt.sketch.commands.chamferCorner" | "occt.sketch.commands.close" | "occt.sketch.commands.cubic" | "occt.sketch.commands.filletCorner" | "occt.sketch.commands.hLine" | "occt.sketch.commands.line" | "occt.sketch.commands.polarLine" | "occt.sketch.commands.quadratic" | "occt.sketch.commands.sagittaArc" | "occt.sketch.commands.tangentArc" | "occt.sketch.commands.tangentLine" | "occt.sketch.commands.threePointArc" | "occt.sketch.commands.vLine" | "occt.sketch.hull" | "occt.sketch.pen" | "occt.sketch.penWithSegments" | "occt.sketch.stroke" | "occt.svg.loadSVG" | "occt.svg.loadSVGStructured" | "occt.transforms.align" | "occt.transforms.alignAndTranslate" | "occt.transforms.alignAndTranslateShapes" | "occt.transforms.alignNormAndAxis" | "occt.transforms.alignShapes" | "occt.transforms.composeTransform" | "occt.transforms.getShapeTransform" | "occt.transforms.identityTransform" | "occt.transforms.invertTransform" | "occt.transforms.mirror" | "occt.transforms.mirrorAboutPoint" | "occt.transforms.mirrorAlongNormal" | "occt.transforms.mirrorAlongNormalShapes" | "occt.transforms.mirrorAxisToMatrix" | "occt.transforms.mirrorPlaneToMatrix" | "occt.transforms.mirrorPointToMatrix" | "occt.transforms.mirrorShapes" | "occt.transforms.multiplyTransforms" | "occt.transforms.orient" | "occt.transforms.placeByMatrices" | "occt.transforms.placeOnFrames" | "occt.transforms.quaternionToMatrix" | "occt.transforms.rotate" | "occt.transforms.rotateAroundCenter" | "occt.transforms.rotateAroundCenterShapes" | "occt.transforms.rotateByQuaternion" | "occt.transforms.rotateShapes" | "occt.transforms.rotationAxisAngleToMatrix" | "occt.transforms.scale" | "occt.transforms.scale3d" | "occt.transforms.scale3dShapes" | "occt.transforms.scaleFromCenter" | "occt.transforms.scaleShapes" | "occt.transforms.scaleUniformToMatrix" | "occt.transforms.transform" | "occt.transforms.transformByMatrix" | "occt.transforms.transformShapes" | "occt.transforms.transformShapesByMatrix" | "occt.transforms.translate" | "occt.transforms.translateShapes" | "occt.transforms.translationToMatrix" | "occtPro.nesting.inspect" | "occtPro.nesting.nest" | "occtPro.sheetMetal.unfoldFaceReport" | "occtPro.sheetMetal.unfoldFaceToFlat" | "occtPro.sheetMetal.unfoldSolidReport" | "occtPro.sheetMetal.unfoldSolidToFlat" | "point.arcThroughThreePoints" | "point.averagePoint" | "point.boundingBoxOfPoints" | "point.closestPointFromPoints" | "point.closestPointFromPointsDistance" | "point.closestPointFromPointsIndex" | "point.distance" | "point.distancesToPoints" | "point.getX" | "point.getY" | "point.getZ" | "point.hexGrid" | "point.hexGridScaledToFit" | "point.maxFilletRadius" | "point.maxFilletRadiusHalfLine" | "point.maxFilletsHalfLine" | "point.multiplyPoint" | "point.normalFromThreePoints" | "point.pointXY" | "point.pointXYZ" | "point.removeConsecutiveDuplicates" | "point.rotatePointsCenterAxis" | "point.safestPointsMaxFilletHalfLine" | "point.scalePointsCenterXYZ" | "point.sortPoints" | "point.spiral" | "point.stretchPointsDirFromCenter" | "point.transformPoint" | "point.transformPoints" | "point.transformsForPoints" | "point.translatePoints" | "point.translatePointsWithVectors" | "point.translateXYZPoints" | "point.twoPointsAlmostEqual" | "polyline.countPoints" | "polyline.create" | "polyline.getPoints" | "polyline.isPointInside2d" | "polyline.length" | "polyline.maxFilletsHalfLine" | "polyline.orient2d" | "polyline.perimeter2d" | "polyline.polygonArea" | "polyline.polygonNormal" | "polyline.polylineSelfIntersection" | "polyline.polylineToLines" | "polyline.polylineToSegments" | "polyline.reverse" | "polyline.roundCorners" | "polyline.roundCorners2d" | "polyline.safestFilletRadius" | "polyline.signedArea2d" | "polyline.sortSegmentsIntoPolylines" | "polyline.sweepFrames" | "polyline.sweepPlacements" | "polyline.tangents" | "polyline.transformPolyline" | "polyline.twoPolylineIntersection" | "text.charAt" | "text.concat" | "text.create" | "text.endsWith" | "text.format" | "text.includes" | "text.indexOf" | "text.isEmpty" | "text.join" | "text.lastIndexOf" | "text.length" | "text.padEnd" | "text.padStart" | "text.regexMatch" | "text.regexReplace" | "text.regexSearch" | "text.regexSplit" | "text.regexTest" | "text.repeat" | "text.replaceAll" | "text.reverse" | "text.slice" | "text.split" | "text.startsWith" | "text.substring" | "text.toLowerCase" | "text.toLowerCaseFirst" | "text.toString" | "text.toStringEach" | "text.toUpperCase" | "text.toUpperCaseFirst" | "text.trim" | "text.trimEnd" | "text.trimStart" | "text.vectorChar" | "text.vectorText" | "vector.add" | "vector.addAll" | "vector.all" | "vector.angleBetween" | "vector.angleBetweenNormalized2d" | "vector.cross" | "vector.dist" | "vector.distSquared" | "vector.div" | "vector.domain" | "vector.dot" | "vector.finite" | "vector.isZero" | "vector.length" | "vector.lengthSq" | "vector.lerp" | "vector.max" | "vector.min" | "vector.mul" | "vector.neg" | "vector.norm" | "vector.normalized" | "vector.normSquared" | "vector.onRay" | "vector.parseNumbers" | "vector.positiveAngleBetween" | "vector.range" | "vector.removeAllDuplicateVectors" | "vector.removeConsecutiveDuplicateVectors" | "vector.signedAngleBetween" | "vector.span" | "vector.spanEaseItems" | "vector.spanLinearItems" | "vector.sub" | "vector.sum" | "vector.vectorsTheSame" | "vector.vectorXY" | "vector.vectorXYZ";
|
|
3
3
|
/** Pipeline reference string (e.g. "$ref:0", "$file:0", "$item", "$index", "$prev", "$local:0", "$mapResult"). */
|
|
4
4
|
export type PipelineRef = `$ref:${number}` | `$file:${number}` | `$file:${number}:${string}` | "$item" | "$index" | "$prev" | `$local:${number}` | "$mapResult";
|
|
5
5
|
/** Maps each operation path to its typed parameters. */
|
|
@@ -49,19 +49,35 @@ export interface OperationParams {
|
|
|
49
49
|
* Example: '#FF5733' -> '#FF5733'
|
|
50
50
|
*/
|
|
51
51
|
"color.hexColor": {
|
|
52
|
-
/** The color as a hex text such as `#ff5733`, with or without the `#`. */
|
|
52
|
+
/** The color as a hex text such as `#ff5733` or `#f53`, with or without the `#`. */
|
|
53
53
|
color?: unknown | PipelineRef;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
56
|
* Reads a hex color into an `{ r, g, b }` object with channels from 0 to 255.
|
|
57
57
|
*
|
|
58
|
-
* The text
|
|
59
|
-
*
|
|
58
|
+
* The text holds six hex digits or three, each standing for a pair, with or without `#`;
|
|
59
|
+
* anything else throws an error.
|
|
60
|
+
* Example: '#FF5733' -> { r: 255, g: 87, b: 51 }, '#f53' -> { r: 255, g: 85, b: 51 }
|
|
60
61
|
*/
|
|
61
62
|
"color.hexToRgb": {
|
|
62
|
-
/** The color as a hex text such as `#ff5733`, with or without the `#`. */
|
|
63
|
+
/** The color as a hex text such as `#ff5733` or `#f53`, with or without the `#`. */
|
|
63
64
|
color?: unknown | PipelineRef;
|
|
64
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* Writes a hex color with an opacity as a CSS `rgba()` color, for a style that needs to see
|
|
68
|
+
* through.
|
|
69
|
+
*
|
|
70
|
+
* Example: '#ff5733' with alpha 0.5 -> 'rgba(255, 87, 51, 0.5)'
|
|
71
|
+
*/
|
|
72
|
+
"color.hexToRgba": {
|
|
73
|
+
/** The color as a hex text such as `#ff5733` or `#f53`, with or without the `#`. */
|
|
74
|
+
color?: unknown | PipelineRef;
|
|
75
|
+
/**
|
|
76
|
+
* How opaque the color is, from 0 for fully transparent to 1 for solid; a value outside that is held
|
|
77
|
+
* at the nearer end.
|
|
78
|
+
*/
|
|
79
|
+
alpha?: number | PipelineRef;
|
|
80
|
+
};
|
|
65
81
|
/**
|
|
66
82
|
* Reads a hex color into an `{ r, g, b }` object with the channels remapped to a range of your
|
|
67
83
|
* choice.
|
|
@@ -76,6 +92,30 @@ export interface OperationParams {
|
|
|
76
92
|
/** The value a channel of 255 maps to; 1 gives channels from 0 to 1. */
|
|
77
93
|
to?: number | PipelineRef;
|
|
78
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* Writes a color given by hue, saturation and lightness as a hex color: a way to pick colors
|
|
97
|
+
* that differ by hue alone, such as a palette spread round the wheel.
|
|
98
|
+
*
|
|
99
|
+
* The hue wraps round; saturation and lightness are held between 0 and 1.
|
|
100
|
+
* Example: hue 0, saturation 1, lightness 0.5 -> '#ff0000'; hue 210, 0.6, 0.5 -> '#3380cc'
|
|
101
|
+
*/
|
|
102
|
+
"color.hslToHex": {
|
|
103
|
+
/**
|
|
104
|
+
* The hue in degrees round the color wheel: 0 red, 120 green, 240 blue; any angle is taken
|
|
105
|
+
* whole turns aside.
|
|
106
|
+
*/
|
|
107
|
+
hue?: number | PipelineRef;
|
|
108
|
+
/**
|
|
109
|
+
* How strong the color is, from 0 for grey to 1 for the purest hue; a value outside that is held at
|
|
110
|
+
* the nearer end.
|
|
111
|
+
*/
|
|
112
|
+
saturation?: number | PipelineRef;
|
|
113
|
+
/**
|
|
114
|
+
* How light the color is, from 0 for black through 0.5 for the full hue to 1 for white; a value
|
|
115
|
+
* outside that is held at the nearer end.
|
|
116
|
+
*/
|
|
117
|
+
lightness?: number | PipelineRef;
|
|
118
|
+
};
|
|
79
119
|
/**
|
|
80
120
|
* Inverts a hex color, turning each channel into its opposite: 255 minus the value.
|
|
81
121
|
*
|
|
@@ -540,6 +580,468 @@ export interface OperationParams {
|
|
|
540
580
|
/** Header names whose cells are parsed as numbers, in the result and in the comparison */
|
|
541
581
|
numberColumns?: unknown[] | PipelineRef;
|
|
542
582
|
};
|
|
583
|
+
/**
|
|
584
|
+
* Makes a circular arc of a drawing path, running counterclockwise about its `center` from
|
|
585
|
+
* `startAngle` to `endAngle`, in degrees, in the XY plane unless a `normal` tilts it.
|
|
586
|
+
*/
|
|
587
|
+
"io.drawing.arcSegment": {
|
|
588
|
+
/** The center of the arc's circle. */
|
|
589
|
+
center: [number, number, number] | PipelineRef;
|
|
590
|
+
/** Distance from the center to the arc, in drawing units. */
|
|
591
|
+
radius: number | PipelineRef;
|
|
592
|
+
/**
|
|
593
|
+
* Where the arc starts, in degrees counterclockwise from the X axis (the X axis CAD programs
|
|
594
|
+
* derive from the `normal` when one is given).
|
|
595
|
+
*/
|
|
596
|
+
startAngle: number | PipelineRef;
|
|
597
|
+
/**
|
|
598
|
+
* Where the arc ends, in degrees; the arc runs counterclockwise from the start, through 0
|
|
599
|
+
* when the end is below the start.
|
|
600
|
+
*/
|
|
601
|
+
endAngle: number | PipelineRef;
|
|
602
|
+
/**
|
|
603
|
+
* The direction the arc's plane faces, counterclockwise seen from its tip. Leave it out for an
|
|
604
|
+
* arc in the XY plane facing +Z.
|
|
605
|
+
*/
|
|
606
|
+
normal?: [number, number, number] | PipelineRef;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* Makes a whole circle of a drawing path from its `center` and `radius`, in the XY plane unless a
|
|
610
|
+
* `normal` tilts it.
|
|
611
|
+
*/
|
|
612
|
+
"io.drawing.circleSegment": {
|
|
613
|
+
/** Where the circle's center lies; without a Z it lies at Z 0. */
|
|
614
|
+
center: [number, number, number] | PipelineRef;
|
|
615
|
+
/** Distance from the center to the circle, in drawing units. */
|
|
616
|
+
radius: number | PipelineRef;
|
|
617
|
+
/** The direction the circle's plane faces. Leave it out for a circle in the XY plane. */
|
|
618
|
+
normal?: [number, number, number] | PipelineRef;
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* Converts a DXF file into an SVG file, reading it as `io.dxf.dxfRead` does and writing it as
|
|
622
|
+
* `io.svg.svgCreate` does.
|
|
623
|
+
*
|
|
624
|
+
* Layers become Inkscape layers and the SVG takes its true size from the unit the DXF states.
|
|
625
|
+
* Splines given only by fit points are left out and named in `warnings`; a drawing too large to
|
|
626
|
+
* write throws.
|
|
627
|
+
*/
|
|
628
|
+
"io.drawing.dxfToSvg": {
|
|
629
|
+
/**
|
|
630
|
+
* An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the
|
|
631
|
+
* header's code page, or as Windows-1252.
|
|
632
|
+
*/
|
|
633
|
+
dxf: unknown | PipelineRef;
|
|
634
|
+
/** When true, layers the file has switched off or frozen are written as well. */
|
|
635
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
636
|
+
/**
|
|
637
|
+
* How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger
|
|
638
|
+
* side.
|
|
639
|
+
*/
|
|
640
|
+
strokeWidth?: number | PipelineRef;
|
|
641
|
+
/**
|
|
642
|
+
* The empty border around the drawing, in drawing units. Left out, a fortieth of the
|
|
643
|
+
* drawing's larger side.
|
|
644
|
+
*/
|
|
645
|
+
margin?: number | PipelineRef;
|
|
646
|
+
/**
|
|
647
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational
|
|
648
|
+
* or higher degree spline) and the cubic curves that stand in for it.
|
|
649
|
+
*/
|
|
650
|
+
tolerance?: number | PipelineRef;
|
|
651
|
+
};
|
|
652
|
+
/**
|
|
653
|
+
* Makes an ellipse, or an arc of one, for a drawing path.
|
|
654
|
+
*
|
|
655
|
+
* The ellipse is given by its center, the vector to the end of its major axis and the minor to
|
|
656
|
+
* major ratio; parameters in radians pick the arc, running counterclockwise about the normal.
|
|
657
|
+
*/
|
|
658
|
+
"io.drawing.ellipseSegment": {
|
|
659
|
+
/** Where the ellipse's center lies; without a Z it lies at Z 0. */
|
|
660
|
+
center: [number, number, number] | PipelineRef;
|
|
661
|
+
/**
|
|
662
|
+
* The vector from the center to one end of the major axis; its length is the major radius,
|
|
663
|
+
* in drawing units.
|
|
664
|
+
*/
|
|
665
|
+
majorAxis: [number, number, number] | PipelineRef;
|
|
666
|
+
/** The minor radius divided by the major radius. */
|
|
667
|
+
ratio: number | PipelineRef;
|
|
668
|
+
/**
|
|
669
|
+
* Where the arc starts, as the ellipse's parameter t in radians (the point center +
|
|
670
|
+
* cos(t) `majorAxis` + sin(t) minor axis), the angle only when `ratio` is 1.
|
|
671
|
+
*/
|
|
672
|
+
startParameter?: number | PipelineRef;
|
|
673
|
+
/**
|
|
674
|
+
* Where the arc ends, as the same parameter in radians; the arc runs counterclockwise from the
|
|
675
|
+
* start, through 0 when the end is below the start.
|
|
676
|
+
*/
|
|
677
|
+
endParameter?: number | PipelineRef;
|
|
678
|
+
/**
|
|
679
|
+
* The direction the ellipse's plane faces, perpendicular to `majorAxis`. Leave it out for an
|
|
680
|
+
* ellipse in the XY plane facing +Z.
|
|
681
|
+
*/
|
|
682
|
+
normal?: [number, number, number] | PipelineRef;
|
|
683
|
+
};
|
|
684
|
+
/** Makes a straight segment of a drawing path, from `start` to `end`. */
|
|
685
|
+
"io.drawing.lineSegment": {
|
|
686
|
+
/** Where the line starts. */
|
|
687
|
+
start: [number, number, number] | PipelineRef;
|
|
688
|
+
/** Where the line ends. */
|
|
689
|
+
end: [number, number, number] | PipelineRef;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* Puts paths on a named layer with a color and a line type, making one part of a drawing.
|
|
693
|
+
*
|
|
694
|
+
* A drawing may hold several parts; `io.dxf.dxfCreate` writes them as DXF and `io.svg.svgCreate`
|
|
695
|
+
* as SVG.
|
|
696
|
+
*/
|
|
697
|
+
"io.drawing.part": {
|
|
698
|
+
/** The paths of the part, each a run of segments. */
|
|
699
|
+
paths: unknown[] | PipelineRef;
|
|
700
|
+
/**
|
|
701
|
+
* The layer the paths go on. Parts may share a layer, which takes the first part's color and
|
|
702
|
+
* line type; every part's paths keep their own.
|
|
703
|
+
*/
|
|
704
|
+
layer?: string | PipelineRef;
|
|
705
|
+
/** The color of every path in the part, as a hex string such as `#000000`. */
|
|
706
|
+
color?: unknown | PipelineRef;
|
|
707
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
708
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
709
|
+
};
|
|
710
|
+
/**
|
|
711
|
+
* Joins segments into one path, drawn in order like the edges of a wire; segments that meet
|
|
712
|
+
* are drawn as one stroke in SVG.
|
|
713
|
+
*/
|
|
714
|
+
"io.drawing.path": {
|
|
715
|
+
/**
|
|
716
|
+
* The segments of the path, in order; where one ends at the next one's start, SVG draws them
|
|
717
|
+
* as one stroke.
|
|
718
|
+
*/
|
|
719
|
+
segments: unknown[] | PipelineRef;
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* Makes connected straight segments through `points`, which `bulges` can bend into arcs;
|
|
723
|
+
* `closed` joins the last point back to the first.
|
|
724
|
+
*/
|
|
725
|
+
"io.drawing.polylineSegment": {
|
|
726
|
+
/**
|
|
727
|
+
* The vertices, in order. A last point equal to the first closes the polyline as `closed`
|
|
728
|
+
* does.
|
|
729
|
+
*/
|
|
730
|
+
points: [number, number, number][] | PipelineRef;
|
|
731
|
+
/** Whether a segment joins the last vertex back to the first. */
|
|
732
|
+
closed?: boolean | PipelineRef;
|
|
733
|
+
/**
|
|
734
|
+
* One per vertex, bending the segment after it into an arc: the tangent of a quarter of its
|
|
735
|
+
* turn, 0 for straight, positive counterclockwise. Left out, every segment is straight.
|
|
736
|
+
*/
|
|
737
|
+
bulges?: number[] | PipelineRef;
|
|
738
|
+
};
|
|
739
|
+
/**
|
|
740
|
+
* Makes a B-spline or NURBS curve of a drawing path from its control points and degree, with
|
|
741
|
+
* its knots and weights when they are given.
|
|
742
|
+
*/
|
|
743
|
+
"io.drawing.splineSegment": {
|
|
744
|
+
/**
|
|
745
|
+
* The control points the curve is pulled towards; there must be more of them than the
|
|
746
|
+
* degree.
|
|
747
|
+
*/
|
|
748
|
+
controlPoints: [number, number, number][] | PipelineRef;
|
|
749
|
+
/** The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves. */
|
|
750
|
+
degree?: number | PipelineRef;
|
|
751
|
+
/**
|
|
752
|
+
* Without `knots`, whether the curve wraps around its control points into a smooth closed
|
|
753
|
+
* loop. With `knots`, the knots decide, and this is ignored.
|
|
754
|
+
*/
|
|
755
|
+
closed?: boolean | PipelineRef;
|
|
756
|
+
/**
|
|
757
|
+
* The full knot vector: never decreasing, one more value than the control points and the
|
|
758
|
+
* degree together. Left out, the curve starts and ends at its end points.
|
|
759
|
+
*/
|
|
760
|
+
knots?: number[] | PipelineRef;
|
|
761
|
+
/**
|
|
762
|
+
* One positive weight per control point, which makes the curve rational (a NURBS curve). Leave
|
|
763
|
+
* it out for a weight of 1 everywhere.
|
|
764
|
+
*/
|
|
765
|
+
weights?: number[] | PipelineRef;
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
* Converts an SVG file into a DXF file, reading it as `io.svg.svgRead` does and writing it as
|
|
769
|
+
* `io.dxf.dxfCreate` does.
|
|
770
|
+
*
|
|
771
|
+
* Inkscape layers, stroke colors and dash patterns become DXF layers, colors and line types, and
|
|
772
|
+
* curves stay exact. With `unit` the drawing is read at true size and the DXF states that unit. A
|
|
773
|
+
* drawing too large to write throws.
|
|
774
|
+
*/
|
|
775
|
+
"io.drawing.svgToDxf": {
|
|
776
|
+
/** The whole text of an SVG file. */
|
|
777
|
+
svg: string | PipelineRef;
|
|
778
|
+
/**
|
|
779
|
+
* The unit to read the drawing in at true size, also stated in the DXF (`AC1015` only). Left
|
|
780
|
+
* out, user units are written and no unit is stated.
|
|
781
|
+
*/
|
|
782
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
783
|
+
/** When true, elements hidden by `display` or `visibility` are written as well. */
|
|
784
|
+
includeInvisible?: boolean | PipelineRef;
|
|
785
|
+
/**
|
|
786
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 index colors, or `truecolor`,
|
|
787
|
+
* the exact color beside that index (`AC1015` only; `AC1009` writes the index).
|
|
788
|
+
*/
|
|
789
|
+
colorFormat?: unknown | PipelineRef;
|
|
790
|
+
/**
|
|
791
|
+
* The DXF version: `AC1015` (AutoCAD 2000), which keeps splines and ellipses exact, or `AC1009`
|
|
792
|
+
* (AutoCAD R12) for old software, where they become polylines within `curveTolerance`.
|
|
793
|
+
*/
|
|
794
|
+
acadVersion?: unknown | PipelineRef;
|
|
795
|
+
/**
|
|
796
|
+
* The largest distance, in drawing units, between a curve and the polyline that stands in for
|
|
797
|
+
* it where the version cannot hold the curve exactly.
|
|
798
|
+
*/
|
|
799
|
+
curveTolerance?: number | PipelineRef;
|
|
800
|
+
};
|
|
801
|
+
/** Makes a circular arc for a drawing, under its former DXF name. */
|
|
802
|
+
"io.dxf.arcSegment": {
|
|
803
|
+
/** The center of the arc's circle. */
|
|
804
|
+
center: [number, number, number] | PipelineRef;
|
|
805
|
+
/** Distance from the center to the arc, in drawing units. */
|
|
806
|
+
radius: number | PipelineRef;
|
|
807
|
+
/**
|
|
808
|
+
* Where the arc starts, in degrees counterclockwise from the X axis (the X axis CAD programs
|
|
809
|
+
* derive from the `normal` when one is given).
|
|
810
|
+
*/
|
|
811
|
+
startAngle: number | PipelineRef;
|
|
812
|
+
/**
|
|
813
|
+
* Where the arc ends, in degrees; the arc runs counterclockwise from the start, through 0
|
|
814
|
+
* when the end is below the start.
|
|
815
|
+
*/
|
|
816
|
+
endAngle: number | PipelineRef;
|
|
817
|
+
/**
|
|
818
|
+
* The direction the arc's plane faces, counterclockwise seen from its tip. Leave it out for an
|
|
819
|
+
* arc in the XY plane facing +Z.
|
|
820
|
+
*/
|
|
821
|
+
normal?: [number, number, number] | PipelineRef;
|
|
822
|
+
};
|
|
823
|
+
/** Makes a whole circle for a drawing, under its former DXF name. */
|
|
824
|
+
"io.dxf.circleSegment": {
|
|
825
|
+
/** Where the circle's center lies; without a Z it lies at Z 0. */
|
|
826
|
+
center: [number, number, number] | PipelineRef;
|
|
827
|
+
/** Distance from the center to the circle, in drawing units. */
|
|
828
|
+
radius: number | PipelineRef;
|
|
829
|
+
/** The direction the circle's plane faces. Leave it out for a circle in the XY plane. */
|
|
830
|
+
normal?: [number, number, number] | PipelineRef;
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* Writes a DXF file from path parts, each on its layer with its color and line type.
|
|
834
|
+
*
|
|
835
|
+
* `AC1015` keeps every curve exact. `AC1009` (R12) writes splines and ellipses as polylines
|
|
836
|
+
* within `curveTolerance`, never finer than a millionth of the drawing. Points off one Z make a
|
|
837
|
+
* 3D polyline; a drawing too large to write throws.
|
|
838
|
+
*/
|
|
839
|
+
"io.dxf.dxfCreate": {
|
|
840
|
+
/** Array of path parts, each containing paths with segments */
|
|
841
|
+
dxfPathsParts: unknown[] | PipelineRef;
|
|
842
|
+
/**
|
|
843
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 index colors, or `truecolor`,
|
|
844
|
+
* the exact color beside that index (`AC1015` only; `AC1009` writes the index).
|
|
845
|
+
*/
|
|
846
|
+
colorFormat?: unknown | PipelineRef;
|
|
847
|
+
/**
|
|
848
|
+
* The DXF version: `AC1015` (AutoCAD 2000), which keeps splines and ellipses exact, or `AC1009`
|
|
849
|
+
* (AutoCAD R12) for old software, where they become polylines within `curveTolerance`.
|
|
850
|
+
*/
|
|
851
|
+
acadVersion?: unknown | PipelineRef;
|
|
852
|
+
/**
|
|
853
|
+
* The unit the drawing is in, written into its header so CAD programs open it at true size;
|
|
854
|
+
* `AC1015` only. Left out, no unit is stated.
|
|
855
|
+
*/
|
|
856
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
857
|
+
/**
|
|
858
|
+
* The largest distance, in drawing units, between a curve and the polyline that stands in for
|
|
859
|
+
* it where the version cannot hold the curve exactly.
|
|
860
|
+
*/
|
|
861
|
+
curveTolerance?: number | PipelineRef;
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* Reads a DXF file into path parts by layer, color and line type, the model `dxfCreate` writes.
|
|
865
|
+
*
|
|
866
|
+
* Lines, arcs, circles, ellipses, polylines and splines are read exactly in the file's
|
|
867
|
+
* coordinates, block inserts expanded. Text, dimensions and hatches are left out and named in
|
|
868
|
+
* `warnings`; splines given only by fit points are read by `occt.io.loadDxf`.
|
|
869
|
+
*/
|
|
870
|
+
"io.dxf.dxfRead": {
|
|
871
|
+
/**
|
|
872
|
+
* An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the
|
|
873
|
+
* header's code page, or as Windows-1252.
|
|
874
|
+
*/
|
|
875
|
+
dxf: unknown | PipelineRef;
|
|
876
|
+
/** When true, layers the file has switched off or frozen are read as well. */
|
|
877
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
878
|
+
};
|
|
879
|
+
/** Makes an ellipse or an arc of one for a drawing, under its former DXF name. */
|
|
880
|
+
"io.dxf.ellipseSegment": {
|
|
881
|
+
/** Where the ellipse's center lies; without a Z it lies at Z 0. */
|
|
882
|
+
center: [number, number, number] | PipelineRef;
|
|
883
|
+
/**
|
|
884
|
+
* The vector from the center to one end of the major axis; its length is the major radius,
|
|
885
|
+
* in drawing units.
|
|
886
|
+
*/
|
|
887
|
+
majorAxis: [number, number, number] | PipelineRef;
|
|
888
|
+
/** The minor radius divided by the major radius. */
|
|
889
|
+
ratio: number | PipelineRef;
|
|
890
|
+
/**
|
|
891
|
+
* Where the arc starts, as the ellipse's parameter t in radians (the point center +
|
|
892
|
+
* cos(t) `majorAxis` + sin(t) minor axis), the angle only when `ratio` is 1.
|
|
893
|
+
*/
|
|
894
|
+
startParameter?: number | PipelineRef;
|
|
895
|
+
/**
|
|
896
|
+
* Where the arc ends, as the same parameter in radians; the arc runs counterclockwise from the
|
|
897
|
+
* start, through 0 when the end is below the start.
|
|
898
|
+
*/
|
|
899
|
+
endParameter?: number | PipelineRef;
|
|
900
|
+
/**
|
|
901
|
+
* The direction the ellipse's plane faces, perpendicular to `majorAxis`. Leave it out for an
|
|
902
|
+
* ellipse in the XY plane facing +Z.
|
|
903
|
+
*/
|
|
904
|
+
normal?: [number, number, number] | PipelineRef;
|
|
905
|
+
};
|
|
906
|
+
/** Makes a straight segment for a drawing, under its former DXF name. */
|
|
907
|
+
"io.dxf.lineSegment": {
|
|
908
|
+
/** Where the line starts. */
|
|
909
|
+
start: [number, number, number] | PipelineRef;
|
|
910
|
+
/** Where the line ends. */
|
|
911
|
+
end: [number, number, number] | PipelineRef;
|
|
912
|
+
};
|
|
913
|
+
/** Makes a path joined from segments for a drawing, under its former DXF name. */
|
|
914
|
+
"io.dxf.path": {
|
|
915
|
+
/**
|
|
916
|
+
* The segments of the path, in order; where one ends at the next one's start, SVG draws them
|
|
917
|
+
* as one stroke.
|
|
918
|
+
*/
|
|
919
|
+
segments: unknown[] | PipelineRef;
|
|
920
|
+
};
|
|
921
|
+
/** Makes a part of a drawing on one layer for a drawing, under its former DXF name. */
|
|
922
|
+
"io.dxf.pathsPart": {
|
|
923
|
+
/** The paths of the part, each a run of segments. */
|
|
924
|
+
paths: unknown[] | PipelineRef;
|
|
925
|
+
/**
|
|
926
|
+
* The layer the paths go on. Parts may share a layer, which takes the first part's color and
|
|
927
|
+
* line type; every part's paths keep their own.
|
|
928
|
+
*/
|
|
929
|
+
layer?: string | PipelineRef;
|
|
930
|
+
/** The color of every path in the part, as a hex string such as `#000000`. */
|
|
931
|
+
color?: unknown | PipelineRef;
|
|
932
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
933
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
934
|
+
};
|
|
935
|
+
/** Makes connected straight segments for a drawing, under its former DXF name. */
|
|
936
|
+
"io.dxf.polylineSegment": {
|
|
937
|
+
/**
|
|
938
|
+
* The vertices, in order. A last point equal to the first closes the polyline as `closed`
|
|
939
|
+
* does.
|
|
940
|
+
*/
|
|
941
|
+
points: [number, number, number][] | PipelineRef;
|
|
942
|
+
/** Whether a segment joins the last vertex back to the first. */
|
|
943
|
+
closed?: boolean | PipelineRef;
|
|
944
|
+
/**
|
|
945
|
+
* One per vertex, bending the segment after it into an arc: the tangent of a quarter of its
|
|
946
|
+
* turn, 0 for straight, positive counterclockwise. Left out, every segment is straight.
|
|
947
|
+
*/
|
|
948
|
+
bulges?: number[] | PipelineRef;
|
|
949
|
+
};
|
|
950
|
+
/** Makes a B-spline or NURBS curve for a drawing, under its former DXF name. */
|
|
951
|
+
"io.dxf.splineSegment": {
|
|
952
|
+
/**
|
|
953
|
+
* The control points the curve is pulled towards; there must be more of them than the
|
|
954
|
+
* degree.
|
|
955
|
+
*/
|
|
956
|
+
controlPoints: [number, number, number][] | PipelineRef;
|
|
957
|
+
/** The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves. */
|
|
958
|
+
degree?: number | PipelineRef;
|
|
959
|
+
/**
|
|
960
|
+
* Without `knots`, whether the curve wraps around its control points into a smooth closed
|
|
961
|
+
* loop. With `knots`, the knots decide, and this is ignored.
|
|
962
|
+
*/
|
|
963
|
+
closed?: boolean | PipelineRef;
|
|
964
|
+
/**
|
|
965
|
+
* The full knot vector: never decreasing, one more value than the control points and the
|
|
966
|
+
* degree together. Left out, the curve starts and ends at its end points.
|
|
967
|
+
*/
|
|
968
|
+
knots?: number[] | PipelineRef;
|
|
969
|
+
/**
|
|
970
|
+
* One positive weight per control point, which makes the curve rational (a NURBS curve). Leave
|
|
971
|
+
* it out for a weight of 1 everywhere.
|
|
972
|
+
*/
|
|
973
|
+
weights?: number[] | PipelineRef;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* Writes one drawing path as SVG path data, the text of a `path` element's `d` attribute.
|
|
977
|
+
*
|
|
978
|
+
* Segments that meet are drawn as one stroke, reversed where a segment ends where the stroke is,
|
|
979
|
+
* and a stroke that returns to its start is closed. Curves are kept exact as `svgCreate` keeps
|
|
980
|
+
* them.
|
|
981
|
+
*/
|
|
982
|
+
"io.svg.pathData": {
|
|
983
|
+
/** The path to write as SVG path data. */
|
|
984
|
+
path: unknown | PipelineRef;
|
|
985
|
+
/**
|
|
986
|
+
* Whether Y is negated, as an SVG file needs (its Y runs down); leave it off for data drawn
|
|
987
|
+
* inside a group that flips Y itself.
|
|
988
|
+
*/
|
|
989
|
+
flipY?: boolean | PipelineRef;
|
|
990
|
+
/**
|
|
991
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly and the
|
|
992
|
+
* cubic curves that stand in for it.
|
|
993
|
+
*/
|
|
994
|
+
tolerance?: number | PipelineRef;
|
|
995
|
+
};
|
|
996
|
+
/**
|
|
997
|
+
* Writes an SVG file from path parts, each layer an Inkscape layer.
|
|
998
|
+
*
|
|
999
|
+
* Arcs, circles, ellipses and bulges stay exact arcs, unweighted splines up to degree 3 exact
|
|
1000
|
+
* Beziers, others cubics within `tolerance` (at least a millionth of the drawing). Y points up, Z
|
|
1001
|
+
* is dropped and `unit` gives the true size. A drawing too large to write throws.
|
|
1002
|
+
*/
|
|
1003
|
+
"io.svg.svgCreate": {
|
|
1004
|
+
/** The parts of the drawing; each layer becomes a group that Inkscape reads as a layer. */
|
|
1005
|
+
parts: unknown[] | PipelineRef;
|
|
1006
|
+
/**
|
|
1007
|
+
* The unit the drawing is in, which gives the file its true width and height. Left out, the
|
|
1008
|
+
* file states no size and viewers fit it to the window.
|
|
1009
|
+
*/
|
|
1010
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
1011
|
+
/**
|
|
1012
|
+
* How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger
|
|
1013
|
+
* side.
|
|
1014
|
+
*/
|
|
1015
|
+
strokeWidth?: number | PipelineRef;
|
|
1016
|
+
/**
|
|
1017
|
+
* The empty border around the drawing, in drawing units. Left out, a fortieth of the
|
|
1018
|
+
* drawing's larger side.
|
|
1019
|
+
*/
|
|
1020
|
+
margin?: number | PipelineRef;
|
|
1021
|
+
/**
|
|
1022
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational
|
|
1023
|
+
* or higher degree spline) and the cubic curves that stand in for it.
|
|
1024
|
+
*/
|
|
1025
|
+
tolerance?: number | PipelineRef;
|
|
1026
|
+
};
|
|
1027
|
+
/**
|
|
1028
|
+
* Reads an SVG file into path parts by layer, color and line type, the model `svgCreate` writes.
|
|
1029
|
+
*
|
|
1030
|
+
* Lines, arcs and Bezier curves are read exactly, transforms applied and Y turned up. Inkscape
|
|
1031
|
+
* layers are layers, each stroke color (else fill) a color, each dash pattern a line type. Text
|
|
1032
|
+
* and images are left out and named in `warnings`.
|
|
1033
|
+
*/
|
|
1034
|
+
"io.svg.svgRead": {
|
|
1035
|
+
/** The whole text of an SVG file. */
|
|
1036
|
+
svg: string | PipelineRef;
|
|
1037
|
+
/**
|
|
1038
|
+
* The unit to read the drawing in at its true size, with the page's top left corner at the
|
|
1039
|
+
* origin. Left out, coordinates stay in the file's own user units.
|
|
1040
|
+
*/
|
|
1041
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
1042
|
+
/** When true, elements hidden by `display` or `visibility` are read as well. */
|
|
1043
|
+
includeInvisible?: boolean | PipelineRef;
|
|
1044
|
+
};
|
|
543
1045
|
/**
|
|
544
1046
|
* Keeps only the volume or area that all the inputs share, dropping everything else.
|
|
545
1047
|
*
|
|
@@ -1803,6 +2305,18 @@ export interface OperationParams {
|
|
|
1803
2305
|
/** The second point of the line, where it finishes; the direction runs from start to end. */
|
|
1804
2306
|
end: [number, number, number] | PipelineRef;
|
|
1805
2307
|
};
|
|
2308
|
+
/**
|
|
2309
|
+
* Measures how far a point lies from a line, to the nearest point between its start and end.
|
|
2310
|
+
*
|
|
2311
|
+
* A point beside the line is measured square to it, and one past either end to that end. A line
|
|
2312
|
+
* whose ends meet is measured to that one point.
|
|
2313
|
+
*/
|
|
2314
|
+
"line.distanceToPoint": {
|
|
2315
|
+
/** The line to measure to; nothing past its start or its end counts. */
|
|
2316
|
+
line: unknown | PipelineRef;
|
|
2317
|
+
/** The point to measure from. */
|
|
2318
|
+
point: [number, number, number] | PipelineRef;
|
|
2319
|
+
};
|
|
1806
2320
|
/**
|
|
1807
2321
|
* Reads the end point of a line.
|
|
1808
2322
|
*
|
|
@@ -4036,9 +4550,9 @@ export interface OperationParams {
|
|
|
4036
4550
|
/**
|
|
4037
4551
|
* Builds each root of a recipe as a solid placed by its matrix, in root order.
|
|
4038
4552
|
*
|
|
4039
|
-
* Shared nodes are built once. An invalid recipe throws; a root the kernel cannot build
|
|
4040
|
-
*
|
|
4041
|
-
*
|
|
4553
|
+
* Shared nodes are built once. An invalid recipe throws; a root the kernel cannot build throws
|
|
4554
|
+
* unless `emptyWhenFailed` is set. A cut ending within `tolerance` of a side of the bounding box,
|
|
4555
|
+
* or of a face its end lies wholly on, goes through.
|
|
4042
4556
|
*/
|
|
4043
4557
|
"manifold.recipes.build": {
|
|
4044
4558
|
/**
|
|
@@ -4402,6 +4916,19 @@ export interface OperationParams {
|
|
|
4402
4916
|
/** The number the method works on; for the trigonometric methods an angle in radians. */
|
|
4403
4917
|
number?: number | PipelineRef;
|
|
4404
4918
|
};
|
|
4919
|
+
/**
|
|
4920
|
+
* Rounds a positive number to a step on the 1, 2, 5 scale - 0.1, 0.2, 0.5, 1, 2, 5, 10 - the
|
|
4921
|
+
* sizes a grid, a ruler or a slider reads well in.
|
|
4922
|
+
*
|
|
4923
|
+
* A number within a billionth of a step counts as that step.
|
|
4924
|
+
* Example: 0.37 up -> 0.5, down -> 0.2, nearest -> 0.5
|
|
4925
|
+
*/
|
|
4926
|
+
"math.niceStep": {
|
|
4927
|
+
/** The rough size to turn into a step, such as a span divided by the number of ticks wanted. */
|
|
4928
|
+
number?: number | PipelineRef;
|
|
4929
|
+
/** Whether the step may be larger than `number`, smaller, or whichever is closer. */
|
|
4930
|
+
direction?: "up" | "down" | "nearest" | PipelineRef;
|
|
4931
|
+
};
|
|
4405
4932
|
/**
|
|
4406
4933
|
* Passes a number through unchanged, so a value can be given a name and reused.
|
|
4407
4934
|
*
|
|
@@ -4536,6 +5063,7 @@ export interface OperationParams {
|
|
|
4536
5063
|
/**
|
|
4537
5064
|
* Rounds a number to a given number of decimal places.
|
|
4538
5065
|
*
|
|
5066
|
+
* A small negative number rounds to 0, never to -0.
|
|
4539
5067
|
* Example: 1.32156 to 3 places -> 1.322
|
|
4540
5068
|
*/
|
|
4541
5069
|
"math.roundToDecimals": {
|
|
@@ -4544,6 +5072,24 @@ export interface OperationParams {
|
|
|
4544
5072
|
/** How many digits to keep after the decimal point; 0 rounds to a whole number. */
|
|
4545
5073
|
decimalPlaces?: number | PipelineRef;
|
|
4546
5074
|
};
|
|
5075
|
+
/**
|
|
5076
|
+
* Gives the angle that `to` names, whole turns aside, nearest to `from`, so going from `from` to
|
|
5077
|
+
* it is the short way round.
|
|
5078
|
+
*
|
|
5079
|
+
* Animating an angle toward the result never spins the long way. `fullTurn` sets the unit.
|
|
5080
|
+
* Example: 10 to 350 in degrees -> -10, 350 to 10 -> 370
|
|
5081
|
+
*/
|
|
5082
|
+
"math.shortestAngle": {
|
|
5083
|
+
/** The angle the turn starts from, in the unit `fullTurn` sets. */
|
|
5084
|
+
from?: number | PipelineRef;
|
|
5085
|
+
/**
|
|
5086
|
+
* The angle to arrive at, in the same unit as `from`; any number of whole turns may be added
|
|
5087
|
+
* to it without changing the answer.
|
|
5088
|
+
*/
|
|
5089
|
+
to?: number | PipelineRef;
|
|
5090
|
+
/** How large a whole turn is in the unit the angles use: 360 for degrees, two pi for radians. */
|
|
5091
|
+
fullTurn?: number | PipelineRef;
|
|
5092
|
+
};
|
|
4547
5093
|
/**
|
|
4548
5094
|
* Tells the sign of a number: -1 when negative, 0 when zero, 1 when positive.
|
|
4549
5095
|
*
|
|
@@ -6349,8 +6895,8 @@ export interface OperationParams {
|
|
|
6349
6895
|
*/
|
|
6350
6896
|
relativeDeflection?: boolean | PipelineRef;
|
|
6351
6897
|
/**
|
|
6352
|
-
* When true, the mesh is
|
|
6353
|
-
*
|
|
6898
|
+
* When true, the mesh is made Z-up for tools that treat Z as up: turned a quarter about X under
|
|
6899
|
+
* right-handed conventions, with Y and Z swapped otherwise.
|
|
6354
6900
|
*/
|
|
6355
6901
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6356
6902
|
/**
|
|
@@ -6400,8 +6946,8 @@ export interface OperationParams {
|
|
|
6400
6946
|
*/
|
|
6401
6947
|
relativeDeflection?: boolean | PipelineRef;
|
|
6402
6948
|
/**
|
|
6403
|
-
* When true, the meshes are
|
|
6404
|
-
*
|
|
6949
|
+
* When true, the meshes are made Z-up for tools that treat Z as up: turned a quarter about X under
|
|
6950
|
+
* right-handed conventions, with Y and Z swapped otherwise.
|
|
6405
6951
|
*/
|
|
6406
6952
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6407
6953
|
/**
|
|
@@ -7782,8 +8328,8 @@ export interface OperationParams {
|
|
|
7782
8328
|
/**
|
|
7783
8329
|
* Rounds several edges of a shape, each with the same radius profile that changes along it.
|
|
7784
8330
|
*
|
|
7785
|
-
* `
|
|
7786
|
-
*
|
|
8331
|
+
* `radiusList` holds the radius at each `paramsU` position on every edge, read as
|
|
8332
|
+
* `filletEdgeVariableRadius` reads them. The lists must be equally long, or an error is thrown.
|
|
7787
8333
|
*/
|
|
7788
8334
|
"occt.fillets.filletEdgesSameVariableRadius": {
|
|
7789
8335
|
/** The shape the edges belong to. */
|
|
@@ -7792,7 +8338,10 @@ export interface OperationParams {
|
|
|
7792
8338
|
edges: unknown[] | PipelineRef;
|
|
7793
8339
|
/** The radius in model units at each position in `paramsU`; the lists must have the same length. */
|
|
7794
8340
|
radiusList: number[] | PipelineRef;
|
|
7795
|
-
/**
|
|
8341
|
+
/**
|
|
8342
|
+
* Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: first and
|
|
8343
|
+
* last positions at the curve's ends, those between along its parameter.
|
|
8344
|
+
*/
|
|
7796
8345
|
paramsU: number[] | PipelineRef;
|
|
7797
8346
|
};
|
|
7798
8347
|
/**
|
|
@@ -7806,15 +8355,18 @@ export interface OperationParams {
|
|
|
7806
8355
|
edges: unknown[] | PipelineRef;
|
|
7807
8356
|
/** The radius in model units at each position in `paramsU`; the lists must have the same length. */
|
|
7808
8357
|
radiusList: number[] | PipelineRef;
|
|
7809
|
-
/**
|
|
8358
|
+
/**
|
|
8359
|
+
* Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: first and
|
|
8360
|
+
* last positions at the curve's ends, those between along its parameter.
|
|
8361
|
+
*/
|
|
7810
8362
|
paramsU: number[] | PipelineRef;
|
|
7811
8363
|
};
|
|
7812
8364
|
/**
|
|
7813
8365
|
* Rounds several edges of a shape, each with its own radius profile that changes along it.
|
|
7814
8366
|
*
|
|
7815
8367
|
* `radiusLists` and `paramsULists` hold one list per edge, in edge order; within each pair the
|
|
7816
|
-
*
|
|
7817
|
-
*
|
|
8368
|
+
* radii apply at the positions as `filletEdgeVariableRadius` reads them. All three lists must
|
|
8369
|
+
* have the same length, or an error is thrown.
|
|
7818
8370
|
*/
|
|
7819
8371
|
"occt.fillets.filletEdgesVariableRadius": {
|
|
7820
8372
|
/** The shape the edges belong to. */
|
|
@@ -7827,8 +8379,8 @@ export interface OperationParams {
|
|
|
7827
8379
|
*/
|
|
7828
8380
|
radiusLists: unknown[] | PipelineRef;
|
|
7829
8381
|
/**
|
|
7830
|
-
* One list per edge of positions as
|
|
7831
|
-
* matching list in `radiusLists`.
|
|
8382
|
+
* One list per edge of positions, read as in `filletEdgeVariableRadius` (first and last at the
|
|
8383
|
+
* ends of the edge's curve), each pairing with the matching list in `radiusLists`.
|
|
7832
8384
|
*/
|
|
7833
8385
|
paramsULists: unknown[] | PipelineRef;
|
|
7834
8386
|
};
|
|
@@ -7847,8 +8399,8 @@ export interface OperationParams {
|
|
|
7847
8399
|
*/
|
|
7848
8400
|
radiusLists: unknown[] | PipelineRef;
|
|
7849
8401
|
/**
|
|
7850
|
-
* One list per edge of positions as
|
|
7851
|
-
* matching list in `radiusLists`.
|
|
8402
|
+
* One list per edge of positions, read as in `filletEdgeVariableRadius` (first and last at the
|
|
8403
|
+
* ends of the edge's curve), each pairing with the matching list in `radiusLists`.
|
|
7852
8404
|
*/
|
|
7853
8405
|
paramsULists: unknown[] | PipelineRef;
|
|
7854
8406
|
};
|
|
@@ -7879,9 +8431,9 @@ export interface OperationParams {
|
|
|
7879
8431
|
/**
|
|
7880
8432
|
* Rounds one edge of a shape with a radius that changes along it.
|
|
7881
8433
|
*
|
|
7882
|
-
* `
|
|
7883
|
-
*
|
|
7884
|
-
* must
|
|
8434
|
+
* `radiusList` holds the radius at each `paramsU` position; the first and last stand for the
|
|
8435
|
+
* start and end of the edge's curve, whatever its orientation, and the radius may overshoot
|
|
8436
|
+
* between positions. The lists must be equally long, or an error is thrown.
|
|
7885
8437
|
*/
|
|
7886
8438
|
"occt.fillets.filletEdgeVariableRadius": {
|
|
7887
8439
|
/** The shape the edge belongs to. */
|
|
@@ -7890,7 +8442,10 @@ export interface OperationParams {
|
|
|
7890
8442
|
edge: unknown | PipelineRef;
|
|
7891
8443
|
/** The radius in model units at each position in `paramsU`; the lists must have the same length. */
|
|
7892
8444
|
radiusList: number[] | PipelineRef;
|
|
7893
|
-
/**
|
|
8445
|
+
/**
|
|
8446
|
+
* Where each radius applies: the first position is the curve's start, the last its end, those
|
|
8447
|
+
* between fractions of its parameter, which match its length only on lines and arcs.
|
|
8448
|
+
*/
|
|
7894
8449
|
paramsU: number[] | PipelineRef;
|
|
7895
8450
|
};
|
|
7896
8451
|
/**
|
|
@@ -7904,7 +8459,10 @@ export interface OperationParams {
|
|
|
7904
8459
|
edge: unknown | PipelineRef;
|
|
7905
8460
|
/** The radius in model units at each position in `paramsU`; the lists must have the same length. */
|
|
7906
8461
|
radiusList: number[] | PipelineRef;
|
|
7907
|
-
/**
|
|
8462
|
+
/**
|
|
8463
|
+
* Where each radius applies: the first position is the curve's start, the last its end, those
|
|
8464
|
+
* between fractions of its parameter, which match its length only on lines and arcs.
|
|
8465
|
+
*/
|
|
7908
8466
|
paramsU: number[] | PipelineRef;
|
|
7909
8467
|
};
|
|
7910
8468
|
/**
|
|
@@ -8327,19 +8885,30 @@ export interface OperationParams {
|
|
|
8327
8885
|
dracoUnifiedQuantization?: boolean | PipelineRef;
|
|
8328
8886
|
};
|
|
8329
8887
|
/**
|
|
8330
|
-
* Writes
|
|
8888
|
+
* Writes drawing parts into one DXF file and returns its text.
|
|
8331
8889
|
*
|
|
8332
|
-
* `
|
|
8333
|
-
* AC1009
|
|
8334
|
-
* `
|
|
8890
|
+
* `acadVersion` AC1015 (AutoCAD 2000) keeps every curve exact and can state the drawing's `unit`;
|
|
8891
|
+
* AC1009 (R12) suits old software and writes splines and ellipses as polylines within
|
|
8892
|
+
* `curveTolerance`. `fileName` and `tryDownload` matter only where a browser download can start.
|
|
8335
8893
|
*/
|
|
8336
8894
|
"occt.io.dxfCreate": {
|
|
8337
8895
|
/** The parts from `io.dxfPathsWithLayer`, each with its own layer and color. */
|
|
8338
8896
|
pathsParts: unknown[] | PipelineRef;
|
|
8339
|
-
/**
|
|
8897
|
+
/**
|
|
8898
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 indexed colors, or `truecolor`,
|
|
8899
|
+
* the exact color beside that index (`AC1015` only).
|
|
8900
|
+
*/
|
|
8340
8901
|
colorFormat?: "aci" | "truecolor" | PipelineRef;
|
|
8341
|
-
/**
|
|
8902
|
+
/**
|
|
8903
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps splines and ellipses exact; `AC1009` (R12), for
|
|
8904
|
+
* old software, writes them as polylines within `curveTolerance`.
|
|
8905
|
+
*/
|
|
8342
8906
|
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
8907
|
+
/**
|
|
8908
|
+
* The largest distance, in model units, between a curve and the polyline that stands in for it
|
|
8909
|
+
* where the version cannot hold the curve exactly.
|
|
8910
|
+
*/
|
|
8911
|
+
curveTolerance?: number | PipelineRef;
|
|
8343
8912
|
/**
|
|
8344
8913
|
* The unit the drawing is in, written into its header so CAD programs open it at true size;
|
|
8345
8914
|
* `AC1015` only. Left out, no unit is stated.
|
|
@@ -8354,10 +8923,10 @@ export interface OperationParams {
|
|
|
8354
8923
|
tryDownload?: boolean | PipelineRef;
|
|
8355
8924
|
};
|
|
8356
8925
|
/**
|
|
8357
|
-
* Puts
|
|
8926
|
+
* Puts drawing paths on a named layer with a color and a line type, making one part of a drawing.
|
|
8358
8927
|
*
|
|
8359
|
-
* A drawing may hold several parts, each with its own layer and
|
|
8360
|
-
* into one file.
|
|
8928
|
+
* A drawing may hold several parts, each with its own layer, color and line type; `dxfCreate`
|
|
8929
|
+
* writes them into one file.
|
|
8361
8930
|
*/
|
|
8362
8931
|
"occt.io.dxfPathsWithLayer": {
|
|
8363
8932
|
/** The paths from `io.shapeToDxfPaths`. */
|
|
@@ -8366,6 +8935,8 @@ export interface OperationParams {
|
|
|
8366
8935
|
layer?: string | PipelineRef;
|
|
8367
8936
|
/** The color of the paths as a hex string such as `#000000`. */
|
|
8368
8937
|
color?: unknown | PipelineRef;
|
|
8938
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
8939
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
8369
8940
|
};
|
|
8370
8941
|
/**
|
|
8371
8942
|
* Reads the unit a STEP or IGES file writes its lengths in, without building its geometry.
|
|
@@ -8404,6 +8975,69 @@ export interface OperationParams {
|
|
|
8404
8975
|
/** The binary BREP file's bytes, or a File or Blob that holds them. */
|
|
8405
8976
|
brepData: unknown | PipelineRef;
|
|
8406
8977
|
};
|
|
8978
|
+
/**
|
|
8979
|
+
* Reads a DXF file into one compound of exact wires, fit-point splines interpolated and block
|
|
8980
|
+
* inserts expanded.
|
|
8981
|
+
*
|
|
8982
|
+
* It lies on the ground, Y along Z (-Z under right-handed conventions) and elevations along Y.
|
|
8983
|
+
* Ends within `joinTolerance` join; `makeFaces` makes faces with holes. A very large file is
|
|
8984
|
+
* read up to its limits; `loadDxfStructured` lists what was left out.
|
|
8985
|
+
*/
|
|
8986
|
+
"occt.io.loadDxf": {
|
|
8987
|
+
/**
|
|
8988
|
+
* The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not
|
|
8989
|
+
* in UTF-8 are read in the header's code page, or Windows-1252.
|
|
8990
|
+
*/
|
|
8991
|
+
dxf: unknown | PipelineRef;
|
|
8992
|
+
/**
|
|
8993
|
+
* When true, closed outlines that lie flat in the drawing become faces, an outline inside
|
|
8994
|
+
* another cutting a hole in it as an even-odd fill does; open outlines stay wires.
|
|
8995
|
+
*/
|
|
8996
|
+
makeFaces?: boolean | PipelineRef;
|
|
8997
|
+
/**
|
|
8998
|
+
* How far apart, in file units, two entities' ends may lie and still join into one wire: at most
|
|
8999
|
+
* 0.001 or a hundredth of the drawing's span, whichever is larger.
|
|
9000
|
+
*/
|
|
9001
|
+
joinTolerance?: number | PipelineRef;
|
|
9002
|
+
/** When true, entities on frozen and switched-off layers are read too. */
|
|
9003
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
9004
|
+
/**
|
|
9005
|
+
* The unit to give the shapes in, scaled from the unit the file states; a file stating none is
|
|
9006
|
+
* read as drawn. Left out, the numbers stay as drawn.
|
|
9007
|
+
*/
|
|
9008
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9009
|
+
};
|
|
9010
|
+
/**
|
|
9011
|
+
* Reads a DXF file as `loadDxf` does, into one shape per layer, color and line type, each with
|
|
9012
|
+
* its layer name, color and line type, plus the file's unit, its version and what was left out.
|
|
9013
|
+
*
|
|
9014
|
+
* Use it to treat the layers apart, such as outlines to cut on one layer and lines to engrave on
|
|
9015
|
+
* another.
|
|
9016
|
+
*/
|
|
9017
|
+
"occt.io.loadDxfStructured": {
|
|
9018
|
+
/**
|
|
9019
|
+
* The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not
|
|
9020
|
+
* in UTF-8 are read in the header's code page, or Windows-1252.
|
|
9021
|
+
*/
|
|
9022
|
+
dxf: unknown | PipelineRef;
|
|
9023
|
+
/**
|
|
9024
|
+
* When true, closed outlines that lie flat in the drawing become faces, an outline inside
|
|
9025
|
+
* another cutting a hole in it as an even-odd fill does; open outlines stay wires.
|
|
9026
|
+
*/
|
|
9027
|
+
makeFaces?: boolean | PipelineRef;
|
|
9028
|
+
/**
|
|
9029
|
+
* How far apart, in file units, two entities' ends may lie and still join into one wire: at most
|
|
9030
|
+
* 0.001 or a hundredth of the drawing's span, whichever is larger.
|
|
9031
|
+
*/
|
|
9032
|
+
joinTolerance?: number | PipelineRef;
|
|
9033
|
+
/** When true, entities on frozen and switched-off layers are read too. */
|
|
9034
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
9035
|
+
/**
|
|
9036
|
+
* The unit to give the shapes in, scaled from the unit the file states; a file stating none is
|
|
9037
|
+
* read as drawn. Left out, the numbers stay as drawn.
|
|
9038
|
+
*/
|
|
9039
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9040
|
+
};
|
|
8407
9041
|
/** Loads a STEP or IGES file into an OCCT shape. Pass file content as text (for .step/.stp/.iges/.igs) or ArrayBuffer (for .stpz/.igz). */
|
|
8408
9042
|
"occt.io.loadSTEPorIGES": {
|
|
8409
9043
|
/** File content: string for plain text files (.step, .stp, .iges, .igs), or base64-encoded ArrayBuffer for compressed files (.stpz, .igz). */
|
|
@@ -8544,13 +9178,99 @@ export interface OperationParams {
|
|
|
8544
9178
|
*/
|
|
8545
9179
|
withTriangulation?: boolean | PipelineRef;
|
|
8546
9180
|
};
|
|
9181
|
+
/**
|
|
9182
|
+
* Draws the edges a view of a shape sees as a DXF drawing, hidden ones on their own layer when
|
|
9183
|
+
* asked, and starts a browser download of the file.
|
|
9184
|
+
*
|
|
9185
|
+
* The drawing shows the view from the frame's normal side, x along its direction, with every
|
|
9186
|
+
* curve exact. `saveShapeDxfAndReturn` gives the text instead.
|
|
9187
|
+
*/
|
|
9188
|
+
"occt.io.saveShapeDxf": {
|
|
9189
|
+
/** The shape to draw. */
|
|
9190
|
+
shape: unknown | PipelineRef;
|
|
9191
|
+
/**
|
|
9192
|
+
* The view, as in `operations.hiddenLines`: the eye sits on the side the normal points to and
|
|
9193
|
+
* looks back along it, and the drawing's x runs along the direction.
|
|
9194
|
+
*/
|
|
9195
|
+
frame: unknown | PipelineRef;
|
|
9196
|
+
/**
|
|
9197
|
+
* When true, the edges other faces cover are drawn too, on the layer `hidden` with the
|
|
9198
|
+
* `HIDDEN` line type.
|
|
9199
|
+
*/
|
|
9200
|
+
drawHidden?: boolean | PipelineRef;
|
|
9201
|
+
/**
|
|
9202
|
+
* How far the view may stray from the shape, in model units: the tolerance of the hidden-line
|
|
9203
|
+
* removal, and of the polylines that stand in for curves in `AC1009`.
|
|
9204
|
+
*/
|
|
9205
|
+
precision?: number | PipelineRef;
|
|
9206
|
+
/**
|
|
9207
|
+
* The unit the shape is modelled in, written into the file so CAD programs open it at true
|
|
9208
|
+
* size; `AC1015` only.
|
|
9209
|
+
*/
|
|
9210
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9211
|
+
/**
|
|
9212
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps every curve exact; `AC1009` (R12) writes
|
|
9213
|
+
* splines and ellipses as polylines.
|
|
9214
|
+
*/
|
|
9215
|
+
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
9216
|
+
/** The name the downloaded file gets. */
|
|
9217
|
+
fileName?: string | PipelineRef;
|
|
9218
|
+
/**
|
|
9219
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
9220
|
+
* itself only returns the text.
|
|
9221
|
+
*/
|
|
9222
|
+
tryDownload?: boolean | PipelineRef;
|
|
9223
|
+
};
|
|
9224
|
+
/**
|
|
9225
|
+
* Draws the edges a view of a shape sees as DXF, hidden ones on their own layer when asked, and
|
|
9226
|
+
* returns the file's text.
|
|
9227
|
+
*
|
|
9228
|
+
* The view looks from the frame's normal side, x along the frame's direction. Curves stay exact;
|
|
9229
|
+
* hidden edges go on the layer `hidden` with the `HIDDEN` line type.
|
|
9230
|
+
*/
|
|
9231
|
+
"occt.io.saveShapeDxfAndReturn": {
|
|
9232
|
+
/** The shape to draw. */
|
|
9233
|
+
shape: unknown | PipelineRef;
|
|
9234
|
+
/**
|
|
9235
|
+
* The view, as in `operations.hiddenLines`: the eye sits on the side the normal points to and
|
|
9236
|
+
* looks back along it, and the drawing's x runs along the direction.
|
|
9237
|
+
*/
|
|
9238
|
+
frame: unknown | PipelineRef;
|
|
9239
|
+
/**
|
|
9240
|
+
* When true, the edges other faces cover are drawn too, on the layer `hidden` with the
|
|
9241
|
+
* `HIDDEN` line type.
|
|
9242
|
+
*/
|
|
9243
|
+
drawHidden?: boolean | PipelineRef;
|
|
9244
|
+
/**
|
|
9245
|
+
* How far the view may stray from the shape, in model units: the tolerance of the hidden-line
|
|
9246
|
+
* removal, and of the polylines that stand in for curves in `AC1009`.
|
|
9247
|
+
*/
|
|
9248
|
+
precision?: number | PipelineRef;
|
|
9249
|
+
/**
|
|
9250
|
+
* The unit the shape is modelled in, written into the file so CAD programs open it at true
|
|
9251
|
+
* size; `AC1015` only.
|
|
9252
|
+
*/
|
|
9253
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9254
|
+
/**
|
|
9255
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps every curve exact; `AC1009` (R12) writes
|
|
9256
|
+
* splines and ellipses as polylines.
|
|
9257
|
+
*/
|
|
9258
|
+
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
9259
|
+
/** The name the downloaded file gets. */
|
|
9260
|
+
fileName?: string | PipelineRef;
|
|
9261
|
+
/**
|
|
9262
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
9263
|
+
* itself only returns the text.
|
|
9264
|
+
*/
|
|
9265
|
+
tryDownload?: boolean | PipelineRef;
|
|
9266
|
+
};
|
|
8547
9267
|
/**
|
|
8548
9268
|
* Triangulates a shape, writes it as OBJ, the mesh format most 3D programs read, and starts a
|
|
8549
9269
|
* browser download of the file.
|
|
8550
9270
|
*
|
|
8551
|
-
* `precision` is the meshing tolerance in model units
|
|
8552
|
-
*
|
|
8553
|
-
*
|
|
9271
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
9272
|
+
* what the screen shows, Z-up with `adjustYtoZ`. The file name may hold no spaces or slashes;
|
|
9273
|
+
* `saveShapeObjAndReturn` gives the text instead.
|
|
8554
9274
|
*/
|
|
8555
9275
|
"occt.io.saveShapeObj": {
|
|
8556
9276
|
/** The shape written to the file. */
|
|
@@ -8566,8 +9286,8 @@ export interface OperationParams {
|
|
|
8566
9286
|
*/
|
|
8567
9287
|
precision?: number | PipelineRef;
|
|
8568
9288
|
/**
|
|
8569
|
-
* When true,
|
|
8570
|
-
*
|
|
9289
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9290
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8571
9291
|
*/
|
|
8572
9292
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8573
9293
|
/**
|
|
@@ -8580,9 +9300,10 @@ export interface OperationParams {
|
|
|
8580
9300
|
* Triangulates a shape and writes it as OBJ, the mesh format most 3D programs read, returning
|
|
8581
9301
|
* the file's text.
|
|
8582
9302
|
*
|
|
8583
|
-
* `precision` is the meshing tolerance in model units
|
|
8584
|
-
*
|
|
8585
|
-
* carries no colors; `assembly.manager.exportDocumentToObj` writes colored
|
|
9303
|
+
* `precision` is the meshing tolerance in model units and coordinates keep six decimals. With
|
|
9304
|
+
* the conventions set the file shows what the screen shows, Z-up with `adjustYtoZ`. `mtl` stays
|
|
9305
|
+
* empty, since a shape carries no colors; `assembly.manager.exportDocumentToObj` writes colored
|
|
9306
|
+
* parts.
|
|
8586
9307
|
*/
|
|
8587
9308
|
"occt.io.saveShapeObjAndReturn": {
|
|
8588
9309
|
/** The shape written to the file. */
|
|
@@ -8598,8 +9319,8 @@ export interface OperationParams {
|
|
|
8598
9319
|
*/
|
|
8599
9320
|
precision?: number | PipelineRef;
|
|
8600
9321
|
/**
|
|
8601
|
-
* When true,
|
|
8602
|
-
*
|
|
9322
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9323
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8603
9324
|
*/
|
|
8604
9325
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8605
9326
|
/**
|
|
@@ -8612,9 +9333,9 @@ export interface OperationParams {
|
|
|
8612
9333
|
* Triangulates a shape, writes it as ASCII PLY with a normal per vertex, and starts a browser
|
|
8613
9334
|
* download of the file.
|
|
8614
9335
|
*
|
|
8615
|
-
* `precision` is the meshing tolerance in model units
|
|
8616
|
-
*
|
|
8617
|
-
* `saveShapePlyAndReturn` gives the text instead.
|
|
9336
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
9337
|
+
* what the screen shows, Z-up with `adjustYtoZ`. `fileName` names the download and
|
|
9338
|
+
* `tryDownload` false skips it; `saveShapePlyAndReturn` gives the text instead.
|
|
8618
9339
|
*/
|
|
8619
9340
|
"occt.io.saveShapePly": {
|
|
8620
9341
|
/** The shape written to the file. */
|
|
@@ -8627,8 +9348,8 @@ export interface OperationParams {
|
|
|
8627
9348
|
*/
|
|
8628
9349
|
precision?: number | PipelineRef;
|
|
8629
9350
|
/**
|
|
8630
|
-
* When true,
|
|
8631
|
-
*
|
|
9351
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9352
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8632
9353
|
*/
|
|
8633
9354
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8634
9355
|
/**
|
|
@@ -8642,8 +9363,8 @@ export interface OperationParams {
|
|
|
8642
9363
|
* scanning tools read, returning the file's text.
|
|
8643
9364
|
*
|
|
8644
9365
|
* Coordinates keep six significant digits, so past 1000 units they keep two decimals.
|
|
8645
|
-
* `precision` is the meshing tolerance in model units
|
|
8646
|
-
*
|
|
9366
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
9367
|
+
* what the screen shows, Z-up with `adjustYtoZ`.
|
|
8647
9368
|
*/
|
|
8648
9369
|
"occt.io.saveShapePlyAndReturn": {
|
|
8649
9370
|
/** The shape written to the file. */
|
|
@@ -8656,8 +9377,8 @@ export interface OperationParams {
|
|
|
8656
9377
|
*/
|
|
8657
9378
|
precision?: number | PipelineRef;
|
|
8658
9379
|
/**
|
|
8659
|
-
* When true,
|
|
8660
|
-
*
|
|
9380
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9381
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8661
9382
|
*/
|
|
8662
9383
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8663
9384
|
/**
|
|
@@ -8670,9 +9391,9 @@ export interface OperationParams {
|
|
|
8670
9391
|
* Writes a shape as STEP, the exchange format for exact CAD geometry, and starts a browser
|
|
8671
9392
|
* download of the file.
|
|
8672
9393
|
*
|
|
8673
|
-
* With `adjustYtoZ` true
|
|
8674
|
-
*
|
|
8675
|
-
*
|
|
9394
|
+
* With `adjustYtoZ` true the file is Z-up: with the conventions set it shows what the screen
|
|
9395
|
+
* shows, without them Y and Z are swapped. The file is in millimetres;
|
|
9396
|
+
* `saveShapeSTEPAndReturn` returns the text.
|
|
8676
9397
|
*/
|
|
8677
9398
|
"occt.io.saveShapeSTEP": {
|
|
8678
9399
|
/** The shape written to the file. */
|
|
@@ -8680,13 +9401,13 @@ export interface OperationParams {
|
|
|
8680
9401
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
8681
9402
|
fileName?: string | PipelineRef;
|
|
8682
9403
|
/**
|
|
8683
|
-
* When true,
|
|
8684
|
-
*
|
|
9404
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9405
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8685
9406
|
*/
|
|
8686
9407
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8687
9408
|
/**
|
|
8688
|
-
* When true,
|
|
8689
|
-
*
|
|
9409
|
+
* When true, `adjustYtoZ` turns the shape 90 degrees about X instead of swapping, for a
|
|
9410
|
+
* right-handed scene.
|
|
8690
9411
|
*/
|
|
8691
9412
|
fromRightHanded?: boolean | PipelineRef;
|
|
8692
9413
|
/**
|
|
@@ -8703,8 +9424,8 @@ export interface OperationParams {
|
|
|
8703
9424
|
/**
|
|
8704
9425
|
* Writes a shape as STEP, the exchange format for exact CAD geometry, and returns its text.
|
|
8705
9426
|
*
|
|
8706
|
-
* With `adjustYtoZ` true
|
|
8707
|
-
*
|
|
9427
|
+
* With `adjustYtoZ` true the file is Z-up, as CAD programs expect: with the conventions set it
|
|
9428
|
+
* shows what the screen shows, and without them Y and Z are swapped. The file is in
|
|
8708
9429
|
* millimetres, a shape in another `unit` scaled to them.
|
|
8709
9430
|
*/
|
|
8710
9431
|
"occt.io.saveShapeSTEPAndReturn": {
|
|
@@ -8713,13 +9434,13 @@ export interface OperationParams {
|
|
|
8713
9434
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
8714
9435
|
fileName?: string | PipelineRef;
|
|
8715
9436
|
/**
|
|
8716
|
-
* When true,
|
|
8717
|
-
*
|
|
9437
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9438
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8718
9439
|
*/
|
|
8719
9440
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8720
9441
|
/**
|
|
8721
|
-
* When true,
|
|
8722
|
-
*
|
|
9442
|
+
* When true, `adjustYtoZ` turns the shape 90 degrees about X instead of swapping, for a
|
|
9443
|
+
* right-handed scene.
|
|
8723
9444
|
*/
|
|
8724
9445
|
fromRightHanded?: boolean | PipelineRef;
|
|
8725
9446
|
/**
|
|
@@ -8737,9 +9458,9 @@ export interface OperationParams {
|
|
|
8737
9458
|
* Triangulates a shape, writes it as STL, the mesh format 3D printers read, and starts a browser
|
|
8738
9459
|
* download of the file.
|
|
8739
9460
|
*
|
|
8740
|
-
* `precision` is the meshing tolerance in model units
|
|
8741
|
-
*
|
|
8742
|
-
*
|
|
9461
|
+
* `precision` is the meshing tolerance in model units and `binary` writes the smaller binary
|
|
9462
|
+
* form. With the conventions set the file shows what the screen shows, Z-up with `adjustYtoZ`.
|
|
9463
|
+
* `saveShapeStlAndReturn` gives the file instead.
|
|
8743
9464
|
*/
|
|
8744
9465
|
"occt.io.saveShapeStl": {
|
|
8745
9466
|
/** The shape written to the file. */
|
|
@@ -8752,8 +9473,8 @@ export interface OperationParams {
|
|
|
8752
9473
|
*/
|
|
8753
9474
|
precision?: number | PipelineRef;
|
|
8754
9475
|
/**
|
|
8755
|
-
* When true,
|
|
8756
|
-
*
|
|
9476
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9477
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8757
9478
|
*/
|
|
8758
9479
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8759
9480
|
/**
|
|
@@ -8768,12 +9489,12 @@ export interface OperationParams {
|
|
|
8768
9489
|
binary?: boolean | PipelineRef;
|
|
8769
9490
|
};
|
|
8770
9491
|
/**
|
|
8771
|
-
* Triangulates a shape and writes it as STL, the mesh format 3D printers
|
|
8772
|
-
*
|
|
9492
|
+
* Triangulates a shape and writes it as STL, the mesh format 3D printers read, returning its
|
|
9493
|
+
* text, or its bytes when `binary` is true.
|
|
8773
9494
|
*
|
|
8774
|
-
* `precision` is the meshing tolerance in model units
|
|
8775
|
-
*
|
|
8776
|
-
* `tryDownload` matter only for a download.
|
|
9495
|
+
* `precision` is the meshing tolerance in model units, smaller following curves more closely.
|
|
9496
|
+
* With the conventions set the file shows what the screen shows, Z-up with `adjustYtoZ`.
|
|
9497
|
+
* `fileName` and `tryDownload` matter only for a download.
|
|
8777
9498
|
*/
|
|
8778
9499
|
"occt.io.saveShapeStlAndReturn": {
|
|
8779
9500
|
/** The shape written to the file. */
|
|
@@ -8786,8 +9507,8 @@ export interface OperationParams {
|
|
|
8786
9507
|
*/
|
|
8787
9508
|
precision?: number | PipelineRef;
|
|
8788
9509
|
/**
|
|
8789
|
-
* When true,
|
|
8790
|
-
*
|
|
9510
|
+
* When true, the file is written Z-up for CAD programs. With the conventions set, the file shows
|
|
9511
|
+
* what the screen shows either way; without them this swaps Y and Z.
|
|
8791
9512
|
*/
|
|
8792
9513
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8793
9514
|
/**
|
|
@@ -8805,8 +9526,8 @@ export interface OperationParams {
|
|
|
8805
9526
|
* Draws the edges a view of a shape sees as an SVG drawing, with the hidden edges dashed when
|
|
8806
9527
|
* asked, and starts a browser download of the file.
|
|
8807
9528
|
*
|
|
8808
|
-
* The drawing shows the view from the frame's normal side, x along its direction;
|
|
8809
|
-
*
|
|
9529
|
+
* The drawing shows the view from the frame's normal side, x along its direction; curves stay
|
|
9530
|
+
* exact where SVG can draw them. `saveShapeSvgAndReturn` gives the text instead.
|
|
8810
9531
|
*/
|
|
8811
9532
|
"occt.io.saveShapeSvg": {
|
|
8812
9533
|
/** The shape to draw. */
|
|
@@ -8819,8 +9540,8 @@ export interface OperationParams {
|
|
|
8819
9540
|
/** When true, the edges other faces cover are drawn too, dashed. */
|
|
8820
9541
|
drawHidden?: boolean | PipelineRef;
|
|
8821
9542
|
/**
|
|
8822
|
-
* How far the
|
|
8823
|
-
*
|
|
9543
|
+
* How far the view may stray from the shape, in model units: the tolerance of hidden-line
|
|
9544
|
+
* removal and of the cubics that stand in for curves SVG cannot draw.
|
|
8824
9545
|
*/
|
|
8825
9546
|
precision?: number | PipelineRef;
|
|
8826
9547
|
/**
|
|
@@ -8840,9 +9561,9 @@ export interface OperationParams {
|
|
|
8840
9561
|
* Draws the edges a view of a shape sees as SVG, hidden ones dashed when asked, and returns the
|
|
8841
9562
|
* file's text.
|
|
8842
9563
|
*
|
|
8843
|
-
* The view looks from the frame's normal side, x along the frame's direction
|
|
8844
|
-
*
|
|
8845
|
-
*
|
|
9564
|
+
* The view looks from the frame's normal side, x along the frame's direction. Curves stay exact
|
|
9565
|
+
* where SVG can draw them, others become cubics within `precision`; with the shape's `unit`, the
|
|
9566
|
+
* file states its true size.
|
|
8846
9567
|
*/
|
|
8847
9568
|
"occt.io.saveShapeSvgAndReturn": {
|
|
8848
9569
|
/** The shape to draw. */
|
|
@@ -8855,8 +9576,8 @@ export interface OperationParams {
|
|
|
8855
9576
|
/** When true, the edges other faces cover are drawn too, dashed. */
|
|
8856
9577
|
drawHidden?: boolean | PipelineRef;
|
|
8857
9578
|
/**
|
|
8858
|
-
* How far the
|
|
8859
|
-
*
|
|
9579
|
+
* How far the view may stray from the shape, in model units: the tolerance of hidden-line
|
|
9580
|
+
* removal and of the cubics that stand in for curves SVG cannot draw.
|
|
8860
9581
|
*/
|
|
8861
9582
|
precision?: number | PipelineRef;
|
|
8862
9583
|
/**
|
|
@@ -8873,14 +9594,17 @@ export interface OperationParams {
|
|
|
8873
9594
|
tryDownload?: boolean | PipelineRef;
|
|
8874
9595
|
};
|
|
8875
9596
|
/**
|
|
8876
|
-
* Turns the wires of a shape into
|
|
9597
|
+
* Turns the wires of a shape into drawing paths, the first step of a 2D DXF export.
|
|
8877
9598
|
*
|
|
8878
|
-
* The shape
|
|
8879
|
-
*
|
|
8880
|
-
* `dxfPathsWithLayer` and write
|
|
9599
|
+
* The shape is seen along Y: X stays X and Z becomes the drawing's Y (-Z under right-handed
|
|
9600
|
+
* conventions). Curves stay exact unless `exactCurves` is off. Give the paths a layer with
|
|
9601
|
+
* `dxfPathsWithLayer` and write them with `dxfCreate`.
|
|
8881
9602
|
*/
|
|
8882
9603
|
"occt.io.shapeToDxfPaths": {
|
|
8883
|
-
/**
|
|
9604
|
+
/**
|
|
9605
|
+
* The shape whose wires are traced, seen along Y: X stays X and Z becomes the drawing's Y (-Z
|
|
9606
|
+
* under right-handed conventions), so a flat shape keeps its size.
|
|
9607
|
+
*/
|
|
8884
9608
|
shape: unknown | PipelineRef;
|
|
8885
9609
|
/**
|
|
8886
9610
|
* The largest angle, in radians, the traced polyline may turn between two points; smaller
|
|
@@ -8898,6 +9622,64 @@ export interface OperationParams {
|
|
|
8898
9622
|
uTolerance?: number | PipelineRef;
|
|
8899
9623
|
/** Edges shorter than this, in model units, are traced with the minimum number of points. */
|
|
8900
9624
|
minimumLength?: number | PipelineRef;
|
|
9625
|
+
/**
|
|
9626
|
+
* When true, ellipses and splines stay exact, and other curves become cubic splines within
|
|
9627
|
+
* `curvatureDeflection`; when false, curves other than lines and circles are traced as points.
|
|
9628
|
+
*/
|
|
9629
|
+
exactCurves?: boolean | PipelineRef;
|
|
9630
|
+
};
|
|
9631
|
+
/**
|
|
9632
|
+
* Draws layers of shapes into one SVG file and returns its text.
|
|
9633
|
+
*
|
|
9634
|
+
* Each layer becomes an Inkscape layer. The shapes are seen along Y: X stays X and Z becomes the
|
|
9635
|
+
* drawing's Y (-Z under right-handed conventions). Curves stay exact where SVG can draw them and
|
|
9636
|
+
* become cubics within `tolerance` elsewhere; with `unit` the file has its true size.
|
|
9637
|
+
*/
|
|
9638
|
+
"occt.io.svgCreate": {
|
|
9639
|
+
/** The layers from `io.svgLayer`; each becomes a group Inkscape reads as a layer. */
|
|
9640
|
+
layers: unknown[] | PipelineRef;
|
|
9641
|
+
/**
|
|
9642
|
+
* The unit the shapes are modelled in, which gives the file its true width and height. Left out,
|
|
9643
|
+
* the file states no size and viewers fit it to the window.
|
|
9644
|
+
*/
|
|
9645
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9646
|
+
/**
|
|
9647
|
+
* How wide the lines are, in model units. Left out, a five-hundredth of the drawing's larger
|
|
9648
|
+
* side.
|
|
9649
|
+
*/
|
|
9650
|
+
strokeWidth?: number | PipelineRef;
|
|
9651
|
+
/**
|
|
9652
|
+
* The empty border around the drawing, in model units. Left out, a fortieth of the drawing's
|
|
9653
|
+
* larger side.
|
|
9654
|
+
*/
|
|
9655
|
+
margin?: number | PipelineRef;
|
|
9656
|
+
/**
|
|
9657
|
+
* The largest distance, in model units, between a curve SVG cannot draw exactly and the cubic
|
|
9658
|
+
* curves that stand in for it.
|
|
9659
|
+
*/
|
|
9660
|
+
tolerance?: number | PipelineRef;
|
|
9661
|
+
/** The name the downloaded file gets. */
|
|
9662
|
+
fileName?: string | PipelineRef;
|
|
9663
|
+
/**
|
|
9664
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
9665
|
+
* itself only returns the text.
|
|
9666
|
+
*/
|
|
9667
|
+
tryDownload?: boolean | PipelineRef;
|
|
9668
|
+
};
|
|
9669
|
+
/**
|
|
9670
|
+
* Puts shapes on a named layer with a color and a line type, making one layer of an SVG drawing.
|
|
9671
|
+
*
|
|
9672
|
+
* The shapes are kept as they are; `svgCreate` draws their wires when it writes the file.
|
|
9673
|
+
*/
|
|
9674
|
+
"occt.io.svgLayer": {
|
|
9675
|
+
/** The shapes whose wires are drawn on this layer. */
|
|
9676
|
+
shapes: unknown[] | PipelineRef;
|
|
9677
|
+
/** The name of the layer, the group Inkscape shows for it. */
|
|
9678
|
+
layer?: string | PipelineRef;
|
|
9679
|
+
/** The color of the lines as a hex string such as `#000000`. */
|
|
9680
|
+
color?: unknown | PipelineRef;
|
|
9681
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
9682
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
8901
9683
|
};
|
|
8902
9684
|
/**
|
|
8903
9685
|
* Reads the center of a shape's axis-aligned bounding box, halfway between its two corners.
|
|
@@ -12846,8 +13628,8 @@ export interface OperationParams {
|
|
|
12846
13628
|
* faces.
|
|
12847
13629
|
*
|
|
12848
13630
|
* `precision` is the meshing tolerance in model units: smaller values follow curved surfaces
|
|
12849
|
-
* more closely and give more triangles. `adjustYtoZ`
|
|
12850
|
-
*
|
|
13631
|
+
* more closely and give more triangles. `adjustYtoZ` makes the points Z-up for tools that treat
|
|
13632
|
+
* Z as up, and `reversedPoints` flips the winding of each triangle.
|
|
12851
13633
|
*/
|
|
12852
13634
|
"occt.shapeFacesToPolygonPoints": {
|
|
12853
13635
|
/** The shape to triangulate. */
|
|
@@ -12858,8 +13640,8 @@ export interface OperationParams {
|
|
|
12858
13640
|
*/
|
|
12859
13641
|
precision?: number | PipelineRef;
|
|
12860
13642
|
/**
|
|
12861
|
-
* When true, the points are
|
|
12862
|
-
*
|
|
13643
|
+
* When true, the points are made Z-up for tools that treat Z as up: turned a quarter about X under
|
|
13644
|
+
* right-handed conventions, with Y and Z swapped otherwise.
|
|
12863
13645
|
*/
|
|
12864
13646
|
adjustYtoZ?: boolean | PipelineRef;
|
|
12865
13647
|
/**
|
|
@@ -17989,8 +18771,8 @@ export interface OperationParams {
|
|
|
17989
18771
|
*/
|
|
17990
18772
|
precisionShare?: number | PipelineRef;
|
|
17991
18773
|
/**
|
|
17992
|
-
* When true, the meshes are
|
|
17993
|
-
*
|
|
18774
|
+
* When true, the meshes are made Z-up for tools that treat Z as up: turned a quarter about X under
|
|
18775
|
+
* right-handed conventions, with Y and Z swapped otherwise.
|
|
17994
18776
|
*/
|
|
17995
18777
|
adjustYtoZ?: boolean | PipelineRef;
|
|
17996
18778
|
/**
|
|
@@ -18080,8 +18862,8 @@ export interface OperationParams {
|
|
|
18080
18862
|
*/
|
|
18081
18863
|
precisionShare?: number | PipelineRef;
|
|
18082
18864
|
/**
|
|
18083
|
-
* When true, the mesh is
|
|
18084
|
-
*
|
|
18865
|
+
* When true, the mesh is made Z-up for tools that treat Z as up: turned a quarter about X under
|
|
18866
|
+
* right-handed conventions, with Y and Z swapped otherwise.
|
|
18085
18867
|
*/
|
|
18086
18868
|
adjustYtoZ?: boolean | PipelineRef;
|
|
18087
18869
|
/**
|
|
@@ -18406,20 +19188,19 @@ export interface OperationParams {
|
|
|
18406
19188
|
makeFace?: boolean | PipelineRef;
|
|
18407
19189
|
};
|
|
18408
19190
|
/**
|
|
18409
|
-
* Parses an SVG document
|
|
18410
|
-
* ground plane, ready to draw, extrude or transform as a whole.
|
|
19191
|
+
* Parses an SVG document into one compound on the ground, ready to draw, extrude or transform.
|
|
18411
19192
|
*
|
|
18412
|
-
* `faceStrategy` decides
|
|
18413
|
-
* units and its downward Y
|
|
18414
|
-
*
|
|
19193
|
+
* `faceStrategy` decides which closed outlines become faces; `unit`, `scale` and `flipY` map SVG
|
|
19194
|
+
* units and its downward Y; `alignment`, `direction`, `center` and `keepOrigin` place it. A very
|
|
19195
|
+
* large file is read up to its limits; `loadSVGStructured` lists what was left out.
|
|
18415
19196
|
*/
|
|
18416
19197
|
"occt.svg.loadSVG": {
|
|
18417
19198
|
/** The text of the SVG document. */
|
|
18418
19199
|
svg?: string | PipelineRef;
|
|
18419
19200
|
/**
|
|
18420
|
-
* How filled shapes become faces: `none` keeps
|
|
18421
|
-
*
|
|
18422
|
-
*
|
|
19201
|
+
* How filled shapes become faces: `none` keeps wires, `auto` follows each element's fill rule,
|
|
19202
|
+
* `nonzero` and `evenOdd` force one, `perSubpath` faces each closed subpath alone. Open subpaths
|
|
19203
|
+
* stay wires.
|
|
18423
19204
|
*/
|
|
18424
19205
|
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
18425
19206
|
/**
|
|
@@ -18431,33 +19212,53 @@ export interface OperationParams {
|
|
|
18431
19212
|
includeInvisible?: boolean | PipelineRef;
|
|
18432
19213
|
/** When true, consecutive segments of a subpath are merged into a single edge where they can be. */
|
|
18433
19214
|
joinSegments?: boolean | PipelineRef;
|
|
18434
|
-
/**
|
|
19215
|
+
/**
|
|
19216
|
+
* How far apart segment ends may be and still join, in model units; a subpath that ends this
|
|
19217
|
+
* close to its start counts as closed.
|
|
19218
|
+
*/
|
|
18435
19219
|
tolerance?: number | PipelineRef;
|
|
18436
|
-
/**
|
|
19220
|
+
/**
|
|
19221
|
+
* A factor applied to the SVG coordinates, or to the true size when `unit` is set; 1 keeps the
|
|
19222
|
+
* size.
|
|
19223
|
+
*/
|
|
18437
19224
|
scale?: number | PipelineRef;
|
|
18438
19225
|
/** When true, Y is negated so the drawing comes out upright, since SVG has Y pointing down. */
|
|
18439
19226
|
flipY?: boolean | PipelineRef;
|
|
18440
|
-
/**
|
|
19227
|
+
/**
|
|
19228
|
+
* Which point of the drawing's bounding box sits on `center`; `midMid` centers it. Not used
|
|
19229
|
+
* when `keepOrigin` is true.
|
|
19230
|
+
*/
|
|
18441
19231
|
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
18442
19232
|
/** The normal of the plane the drawing is laid on; the default lays it flat on the ground. */
|
|
18443
19233
|
direction?: [number, number, number] | PipelineRef;
|
|
18444
19234
|
/** The point the aligned drawing is placed at. */
|
|
18445
19235
|
center?: [number, number, number] | PipelineRef;
|
|
19236
|
+
/**
|
|
19237
|
+
* Imports at true size in this unit, read from the page's `width`, `height` and view box at 96
|
|
19238
|
+
* pixels an inch. Left out, SVG user units become model units.
|
|
19239
|
+
*/
|
|
19240
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
19241
|
+
/**
|
|
19242
|
+
* When true, the origin of the imported coordinates lands on `center`, ignoring `alignment`: the
|
|
19243
|
+
* SVG's own origin, or the page's top left corner when `unit` is set.
|
|
19244
|
+
*/
|
|
19245
|
+
keepOrigin?: boolean | PipelineRef;
|
|
18446
19246
|
};
|
|
18447
19247
|
/**
|
|
18448
19248
|
* Parses an SVG document and builds one shape per drawable element, each bundled with its
|
|
18449
|
-
* resolved fill, stroke and stroke width, plus the
|
|
19249
|
+
* resolved fill, stroke and stroke width, plus the warnings, the view box and the page size in
|
|
19250
|
+
* millimetres.
|
|
18450
19251
|
*
|
|
18451
19252
|
* Use it when the elements need their own colors or separate handling; `loadSVG` gives the
|
|
18452
|
-
* whole drawing as one shape.
|
|
19253
|
+
* whole drawing as one shape.
|
|
18453
19254
|
*/
|
|
18454
19255
|
"occt.svg.loadSVGStructured": {
|
|
18455
19256
|
/** The text of the SVG document. */
|
|
18456
19257
|
svg?: string | PipelineRef;
|
|
18457
19258
|
/**
|
|
18458
|
-
* How filled shapes become faces: `none` keeps
|
|
18459
|
-
*
|
|
18460
|
-
*
|
|
19259
|
+
* How filled shapes become faces: `none` keeps wires, `auto` follows each element's fill rule,
|
|
19260
|
+
* `nonzero` and `evenOdd` force one, `perSubpath` faces each closed subpath alone. Open subpaths
|
|
19261
|
+
* stay wires.
|
|
18461
19262
|
*/
|
|
18462
19263
|
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
18463
19264
|
/**
|
|
@@ -18469,18 +19270,37 @@ export interface OperationParams {
|
|
|
18469
19270
|
includeInvisible?: boolean | PipelineRef;
|
|
18470
19271
|
/** When true, consecutive segments of a subpath are merged into a single edge where they can be. */
|
|
18471
19272
|
joinSegments?: boolean | PipelineRef;
|
|
18472
|
-
/**
|
|
19273
|
+
/**
|
|
19274
|
+
* How far apart segment ends may be and still join, in model units; a subpath that ends this
|
|
19275
|
+
* close to its start counts as closed.
|
|
19276
|
+
*/
|
|
18473
19277
|
tolerance?: number | PipelineRef;
|
|
18474
|
-
/**
|
|
19278
|
+
/**
|
|
19279
|
+
* A factor applied to the SVG coordinates, or to the true size when `unit` is set; 1 keeps the
|
|
19280
|
+
* size.
|
|
19281
|
+
*/
|
|
18475
19282
|
scale?: number | PipelineRef;
|
|
18476
19283
|
/** When true, Y is negated so the drawing comes out upright, since SVG has Y pointing down. */
|
|
18477
19284
|
flipY?: boolean | PipelineRef;
|
|
18478
|
-
/**
|
|
19285
|
+
/**
|
|
19286
|
+
* Which point of the drawing's bounding box sits on `center`; `midMid` centers it. Not used
|
|
19287
|
+
* when `keepOrigin` is true.
|
|
19288
|
+
*/
|
|
18479
19289
|
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
18480
19290
|
/** The normal of the plane the drawing is laid on; the default lays it flat on the ground. */
|
|
18481
19291
|
direction?: [number, number, number] | PipelineRef;
|
|
18482
19292
|
/** The point the aligned drawing is placed at. */
|
|
18483
19293
|
center?: [number, number, number] | PipelineRef;
|
|
19294
|
+
/**
|
|
19295
|
+
* Imports at true size in this unit, read from the page's `width`, `height` and view box at 96
|
|
19296
|
+
* pixels an inch. Left out, SVG user units become model units.
|
|
19297
|
+
*/
|
|
19298
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
19299
|
+
/**
|
|
19300
|
+
* When true, the origin of the imported coordinates lands on `center`, ignoring `alignment`: the
|
|
19301
|
+
* SVG's own origin, or the page's top left corner when `unit` is set.
|
|
19302
|
+
*/
|
|
19303
|
+
keepOrigin?: boolean | PipelineRef;
|
|
18484
19304
|
};
|
|
18485
19305
|
/**
|
|
18486
19306
|
* Moves a shape so that one point and direction on it land on another point and direction: the
|
|
@@ -19048,6 +19868,20 @@ export interface OperationParams {
|
|
|
19048
19868
|
/** The move as `[x, y, z]`, in model units. */
|
|
19049
19869
|
translation?: [number, number, number] | PipelineRef;
|
|
19050
19870
|
};
|
|
19871
|
+
/** Read flat parts as nesting would, without nesting them */
|
|
19872
|
+
"occtPro.nesting.inspect": {
|
|
19873
|
+
/** The flat parts to read */
|
|
19874
|
+
shapes: unknown | PipelineRef;
|
|
19875
|
+
/** The tolerance and each part's xDirection; no stock is needed */
|
|
19876
|
+
options?: unknown | PipelineRef;
|
|
19877
|
+
};
|
|
19878
|
+
/** Place flat parts on sheets or a strip; returns the sheets as one compound and the layout report */
|
|
19879
|
+
"occtPro.nesting.nest": {
|
|
19880
|
+
/** The flat parts: planar faces, coplanar faces such as unfolded parts, plate solids, or drawings of closed wires */
|
|
19881
|
+
shapes: unknown | PipelineRef;
|
|
19882
|
+
/** The stock (rectangular sheets or one strip), each part's quantity, turns and flip, and the spacing, margin, tolerance and time budget; see NestingOptions */
|
|
19883
|
+
options: unknown | PipelineRef;
|
|
19884
|
+
};
|
|
19051
19885
|
/** Sheet-metal unfold metrics report for a single face */
|
|
19052
19886
|
"occtPro.sheetMetal.unfoldFaceReport": {
|
|
19053
19887
|
/** Shape that contains the face to unfold */
|