@bitbybit-dev/cad-cloud-sdk 1.6.2 → 1.8.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 +1856 -36
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +1739 -161
- 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 +183 -1
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +1536 -77
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +1791 -76
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/types/generated.ts +1856 -36
- package/src/types/pipeline-operations.ts +1792 -161
- package/src/types/schema-exports.ts +183 -1
- package/src/validation/request-schemas.ts +1791 -76
|
@@ -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.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" | "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.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.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.clippedHatchLines" | "io.drawing.dimensionExtent" | "io.drawing.dimensionPicture" | "io.drawing.dxfToSvg" | "io.drawing.ellipseSegment" | "io.drawing.hatch" | "io.drawing.hatchLines" | "io.drawing.hatchOutlines" | "io.drawing.lineSegment" | "io.drawing.part" | "io.drawing.path" | "io.drawing.polylineSegment" | "io.drawing.scaleParts" | "io.drawing.splineSegment" | "io.drawing.svgToDxf" | "io.drawing.text" | "io.drawing.textSize" | "io.drawing.textStrokes" | "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.addDocumentPmi" | "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.createPmiDatum" | "occt.assembly.manager.createPmiDimension" | "occt.assembly.manager.createPmiShape" | "occt.assembly.manager.createPmiTolerance" | "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.removeDocumentPmi" | "occt.assembly.manager.setDocLabelColor" | "occt.assembly.manager.setDocLabelColors" | "occt.assembly.manager.setDocLabelName" | "occt.assembly.manager.setDocLabelNames" | "occt.assembly.query.getAssemblyHierarchy" | "occt.assembly.query.getDocumentAnnotations" | "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.hatchedSectionByFrame" | "occt.operations.hiddenLines" | "occt.operations.hiddenLinesByKind" | "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. */
|
|
@@ -580,6 +580,819 @@ export interface OperationParams {
|
|
|
580
580
|
/** Header names whose cells are parsed as numbers, in the result and in the comparison */
|
|
581
581
|
numberColumns?: unknown[] | PipelineRef;
|
|
582
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
|
+
* Gives the lines of a hatch's pattern clipped to its region, for a renderer that draws them
|
|
622
|
+
* itself.
|
|
623
|
+
*
|
|
624
|
+
* Inside follows the even-odd rule over every boundary, as `io.svg.svgCreate` fills a hatch, and
|
|
625
|
+
* curves are followed within `tolerance`. The lines stand where `hatchLines` puts them. `solid`
|
|
626
|
+
* gives none; a spacing too fine for the region throws.
|
|
627
|
+
*/
|
|
628
|
+
"io.drawing.clippedHatchLines": {
|
|
629
|
+
/**
|
|
630
|
+
* The closed paths that bound the region, in the drawing's XY plane; a boundary inside another
|
|
631
|
+
* cuts a hole, and one inside that hole is filled again.
|
|
632
|
+
*/
|
|
633
|
+
boundaries: unknown[] | PipelineRef;
|
|
634
|
+
/** What the region is filled with; `solid` has no lines. */
|
|
635
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
636
|
+
/** The angle of the pattern's lines in degrees, counterclockwise from the X axis. */
|
|
637
|
+
angle?: number | PipelineRef;
|
|
638
|
+
/** The distance between the pattern's lines, in drawing units. */
|
|
639
|
+
spacing?: number | PipelineRef;
|
|
640
|
+
/**
|
|
641
|
+
* How far, in drawing units, the outline may stray from a curved boundary: arcs, circles,
|
|
642
|
+
* ellipses and splines become straight pieces this close to the curve.
|
|
643
|
+
*/
|
|
644
|
+
tolerance?: number | PipelineRef;
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Measures the box a dimension's picture fills, the box `dimensionPicture` gives, without drawing
|
|
648
|
+
* the letters.
|
|
649
|
+
*
|
|
650
|
+
* The box holds the whole height the stroke font's letters may reach, so a layout can make room
|
|
651
|
+
* before drawing.
|
|
652
|
+
* Example: a linear dimension from [0, 0] to [60, 0] at offset 12 -> min [0, 0.875], max [60, 17.04]
|
|
653
|
+
*/
|
|
654
|
+
"io.drawing.dimensionExtent": {
|
|
655
|
+
/**
|
|
656
|
+
* For `linear`, the first point measured; for `diameter`, `radius` and `angular`, the center of
|
|
657
|
+
* the circle or the point where the two arms of the angle meet.
|
|
658
|
+
*/
|
|
659
|
+
start: [number, number] | PipelineRef;
|
|
660
|
+
/**
|
|
661
|
+
* For `linear`, the second point measured; for `diameter` and `radius`, a point on the circle; for
|
|
662
|
+
* `angular`, a point on the first arm, where the arc passes.
|
|
663
|
+
*/
|
|
664
|
+
end: [number, number] | PipelineRef;
|
|
665
|
+
/** What the dimension measures; it decides what `start`, `end`, `offset` and `angle` mean. */
|
|
666
|
+
kind?: "linear" | "diameter" | "radius" | "angular" | PipelineRef;
|
|
667
|
+
/**
|
|
668
|
+
* For `linear`, the direction measured along, such as [1, 0] for a horizontal dimension; left
|
|
669
|
+
* out, from `start` to `end`. Other kinds ignore it.
|
|
670
|
+
*/
|
|
671
|
+
direction?: [number, number] | PipelineRef;
|
|
672
|
+
/**
|
|
673
|
+
* For `linear`, how far the dimension line stands from `start`, in drawing units, to the left of
|
|
674
|
+
* `direction`; negative puts it right. Other kinds ignore it.
|
|
675
|
+
*/
|
|
676
|
+
offset?: number | PipelineRef;
|
|
677
|
+
/**
|
|
678
|
+
* For `angular`, the angle in degrees from the first arm, the one through `end`,
|
|
679
|
+
* counterclockwise to the second arm. Other kinds ignore it.
|
|
680
|
+
*/
|
|
681
|
+
angle?: number | PipelineRef;
|
|
682
|
+
/**
|
|
683
|
+
* The number written; left out, the one measured. A diameter is written after the diameter
|
|
684
|
+
* sign, a radius after R, an angle before the degree sign.
|
|
685
|
+
*/
|
|
686
|
+
value?: number | PipelineRef;
|
|
687
|
+
/** How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5. */
|
|
688
|
+
decimalPlaces?: number | PipelineRef;
|
|
689
|
+
/**
|
|
690
|
+
* How far above the value the measure may lie, written `+0.1`, or `±0.1` when equal to
|
|
691
|
+
* `lowerTolerance`; 0 when only `lowerTolerance` is given.
|
|
692
|
+
*/
|
|
693
|
+
upperTolerance?: number | PipelineRef;
|
|
694
|
+
/**
|
|
695
|
+
* How far below the value the measure may lie, as an amount, written `-0.05`; 0 when only
|
|
696
|
+
* `upperTolerance` is given. Without either, no tolerance is written.
|
|
697
|
+
*/
|
|
698
|
+
lowerTolerance?: number | PipelineRef;
|
|
699
|
+
/** The height of the text's digits, in drawing units; the gaps around the lines are sized from it. */
|
|
700
|
+
textHeight?: number | PipelineRef;
|
|
701
|
+
/**
|
|
702
|
+
* The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left
|
|
703
|
+
* out, it is `textHeight`.
|
|
704
|
+
*/
|
|
705
|
+
arrowLength?: number | PipelineRef;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* Draws a dimension in the drawing's plane: its dimension line or arc, its extension lines, filled
|
|
709
|
+
* arrowheads touching them, and its value in the stroke font.
|
|
710
|
+
*
|
|
711
|
+
* The text reads from left to right or from bottom to top, past the line's end when the line is
|
|
712
|
+
* too short for it; arrows go outside a span too short for them.
|
|
713
|
+
*/
|
|
714
|
+
"io.drawing.dimensionPicture": {
|
|
715
|
+
/**
|
|
716
|
+
* For `linear`, the first point measured; for `diameter`, `radius` and `angular`, the center of
|
|
717
|
+
* the circle or the point where the two arms of the angle meet.
|
|
718
|
+
*/
|
|
719
|
+
start: [number, number] | PipelineRef;
|
|
720
|
+
/**
|
|
721
|
+
* For `linear`, the second point measured; for `diameter` and `radius`, a point on the circle; for
|
|
722
|
+
* `angular`, a point on the first arm, where the arc passes.
|
|
723
|
+
*/
|
|
724
|
+
end: [number, number] | PipelineRef;
|
|
725
|
+
/** What the dimension measures; it decides what `start`, `end`, `offset` and `angle` mean. */
|
|
726
|
+
kind?: "linear" | "diameter" | "radius" | "angular" | PipelineRef;
|
|
727
|
+
/**
|
|
728
|
+
* For `linear`, the direction measured along, such as [1, 0] for a horizontal dimension; left
|
|
729
|
+
* out, from `start` to `end`. Other kinds ignore it.
|
|
730
|
+
*/
|
|
731
|
+
direction?: [number, number] | PipelineRef;
|
|
732
|
+
/**
|
|
733
|
+
* For `linear`, how far the dimension line stands from `start`, in drawing units, to the left of
|
|
734
|
+
* `direction`; negative puts it right. Other kinds ignore it.
|
|
735
|
+
*/
|
|
736
|
+
offset?: number | PipelineRef;
|
|
737
|
+
/**
|
|
738
|
+
* For `angular`, the angle in degrees from the first arm, the one through `end`,
|
|
739
|
+
* counterclockwise to the second arm. Other kinds ignore it.
|
|
740
|
+
*/
|
|
741
|
+
angle?: number | PipelineRef;
|
|
742
|
+
/**
|
|
743
|
+
* The number written; left out, the one measured. A diameter is written after the diameter
|
|
744
|
+
* sign, a radius after R, an angle before the degree sign.
|
|
745
|
+
*/
|
|
746
|
+
value?: number | PipelineRef;
|
|
747
|
+
/** How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5. */
|
|
748
|
+
decimalPlaces?: number | PipelineRef;
|
|
749
|
+
/**
|
|
750
|
+
* How far above the value the measure may lie, written `+0.1`, or `±0.1` when equal to
|
|
751
|
+
* `lowerTolerance`; 0 when only `lowerTolerance` is given.
|
|
752
|
+
*/
|
|
753
|
+
upperTolerance?: number | PipelineRef;
|
|
754
|
+
/**
|
|
755
|
+
* How far below the value the measure may lie, as an amount, written `-0.05`; 0 when only
|
|
756
|
+
* `upperTolerance` is given. Without either, no tolerance is written.
|
|
757
|
+
*/
|
|
758
|
+
lowerTolerance?: number | PipelineRef;
|
|
759
|
+
/** The height of the text's digits, in drawing units; the gaps around the lines are sized from it. */
|
|
760
|
+
textHeight?: number | PipelineRef;
|
|
761
|
+
/**
|
|
762
|
+
* The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left
|
|
763
|
+
* out, it is `textHeight`.
|
|
764
|
+
*/
|
|
765
|
+
arrowLength?: number | PipelineRef;
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
* Converts a DXF file into an SVG file, reading it as `io.dxf.dxfRead` does and writing it as
|
|
769
|
+
* `io.svg.svgCreate` does.
|
|
770
|
+
*
|
|
771
|
+
* Layers become Inkscape layers and the SVG takes its true size from the unit the DXF states.
|
|
772
|
+
* Splines given only by fit points are left out and named in `warnings`; a drawing too large to
|
|
773
|
+
* write throws.
|
|
774
|
+
*/
|
|
775
|
+
"io.drawing.dxfToSvg": {
|
|
776
|
+
/**
|
|
777
|
+
* An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the
|
|
778
|
+
* header's code page, or as Windows-1252.
|
|
779
|
+
*/
|
|
780
|
+
dxf: unknown | PipelineRef;
|
|
781
|
+
/** When true, layers the file has switched off or frozen are written as well. */
|
|
782
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
783
|
+
/**
|
|
784
|
+
* How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger
|
|
785
|
+
* side.
|
|
786
|
+
*/
|
|
787
|
+
strokeWidth?: number | PipelineRef;
|
|
788
|
+
/**
|
|
789
|
+
* The empty border around the drawing, in drawing units. Left out, a fortieth of the
|
|
790
|
+
* drawing's larger side.
|
|
791
|
+
*/
|
|
792
|
+
margin?: number | PipelineRef;
|
|
793
|
+
/**
|
|
794
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational
|
|
795
|
+
* or higher degree spline) and the cubic curves that stand in for it.
|
|
796
|
+
*/
|
|
797
|
+
tolerance?: number | PipelineRef;
|
|
798
|
+
};
|
|
799
|
+
/**
|
|
800
|
+
* Makes an ellipse, or an arc of one, for a drawing path.
|
|
801
|
+
*
|
|
802
|
+
* The ellipse is given by its center, the vector to the end of its major axis and the minor to
|
|
803
|
+
* major ratio; parameters in radians pick the arc, running counterclockwise about the normal.
|
|
804
|
+
*/
|
|
805
|
+
"io.drawing.ellipseSegment": {
|
|
806
|
+
/** Where the ellipse's center lies; without a Z it lies at Z 0. */
|
|
807
|
+
center: [number, number, number] | PipelineRef;
|
|
808
|
+
/**
|
|
809
|
+
* The vector from the center to one end of the major axis; its length is the major radius,
|
|
810
|
+
* in drawing units.
|
|
811
|
+
*/
|
|
812
|
+
majorAxis: [number, number, number] | PipelineRef;
|
|
813
|
+
/** The minor radius divided by the major radius. */
|
|
814
|
+
ratio: number | PipelineRef;
|
|
815
|
+
/**
|
|
816
|
+
* Where the arc starts, as the ellipse's parameter t in radians (the point center +
|
|
817
|
+
* cos(t) `majorAxis` + sin(t) minor axis), the angle only when `ratio` is 1.
|
|
818
|
+
*/
|
|
819
|
+
startParameter?: number | PipelineRef;
|
|
820
|
+
/**
|
|
821
|
+
* Where the arc ends, as the same parameter in radians; the arc runs counterclockwise from the
|
|
822
|
+
* start, through 0 when the end is below the start.
|
|
823
|
+
*/
|
|
824
|
+
endParameter?: number | PipelineRef;
|
|
825
|
+
/**
|
|
826
|
+
* The direction the ellipse's plane faces, perpendicular to `majorAxis`. Leave it out for an
|
|
827
|
+
* ellipse in the XY plane facing +Z.
|
|
828
|
+
*/
|
|
829
|
+
normal?: [number, number, number] | PipelineRef;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* Makes a hatched region for a drawing part's `hatches`: what the boundaries enclose, filled with
|
|
833
|
+
* a pattern of lines or with solid ink.
|
|
834
|
+
*
|
|
835
|
+
* A boundary inside another cuts a hole, and a boundary whose ends do not meet is closed by a
|
|
836
|
+
* straight line.
|
|
837
|
+
*/
|
|
838
|
+
"io.drawing.hatch": {
|
|
839
|
+
/** The closed paths that bound the region, in the drawing's XY plane. */
|
|
840
|
+
boundaries: unknown[] | PipelineRef;
|
|
841
|
+
/** What the region is filled with. */
|
|
842
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
843
|
+
/**
|
|
844
|
+
* The angle of the pattern's lines in degrees, counterclockwise from the X axis; `solid`
|
|
845
|
+
* ignores it.
|
|
846
|
+
*/
|
|
847
|
+
angle?: number | PipelineRef;
|
|
848
|
+
/**
|
|
849
|
+
* The distance between the pattern's lines, in drawing units; `solid` ignores it. DXF writes
|
|
850
|
+
* it as a scale of the pattern in `acad.pat` for an inch drawing, in `acadiso.pat` otherwise.
|
|
851
|
+
*/
|
|
852
|
+
spacing?: number | PipelineRef;
|
|
853
|
+
};
|
|
854
|
+
/**
|
|
855
|
+
* Gives the lines of a hatch's pattern, each from side to side of the box around its
|
|
856
|
+
* boundaries, for a renderer that draws them itself and clips them to the region.
|
|
857
|
+
*
|
|
858
|
+
* The lines stand where `io.svg.svgCreate` and `io.dxf.dxfCreate` put them, each whole. `solid`
|
|
859
|
+
* gives none, and a spacing too fine for the region throws.
|
|
860
|
+
*/
|
|
861
|
+
"io.drawing.hatchLines": {
|
|
862
|
+
/** The closed paths that bound the region, in the drawing's XY plane. */
|
|
863
|
+
boundaries: unknown[] | PipelineRef;
|
|
864
|
+
/** What the region is filled with. */
|
|
865
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
866
|
+
/**
|
|
867
|
+
* The angle of the pattern's lines in degrees, counterclockwise from the X axis; `solid`
|
|
868
|
+
* ignores it.
|
|
869
|
+
*/
|
|
870
|
+
angle?: number | PipelineRef;
|
|
871
|
+
/**
|
|
872
|
+
* The distance between the pattern's lines, in drawing units; `solid` ignores it. DXF writes
|
|
873
|
+
* it as a scale of the pattern in `acad.pat` for an inch drawing, in `acadiso.pat` otherwise.
|
|
874
|
+
*/
|
|
875
|
+
spacing?: number | PipelineRef;
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* Gives the outlines of a hatch's region as closed loops of points, curves followed within
|
|
879
|
+
* `tolerance`, for a renderer that fills the region itself.
|
|
880
|
+
*
|
|
881
|
+
* Each loop lists every corner once. Fill them under the even-odd rule, as
|
|
882
|
+
* `mesh.triangulateLoops` does, to keep the holes open.
|
|
883
|
+
* Example: a circle of radius 5 at tolerance 0.01 -> one loop of 50 points
|
|
884
|
+
*/
|
|
885
|
+
"io.drawing.hatchOutlines": {
|
|
886
|
+
/**
|
|
887
|
+
* The closed paths that bound the region, in the drawing's XY plane; a boundary inside another
|
|
888
|
+
* cuts a hole, and one inside that hole is filled again.
|
|
889
|
+
*/
|
|
890
|
+
boundaries: unknown[] | PipelineRef;
|
|
891
|
+
/** What the region is filled with; `solid` has no lines. */
|
|
892
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
893
|
+
/** The angle of the pattern's lines in degrees, counterclockwise from the X axis. */
|
|
894
|
+
angle?: number | PipelineRef;
|
|
895
|
+
/** The distance between the pattern's lines, in drawing units. */
|
|
896
|
+
spacing?: number | PipelineRef;
|
|
897
|
+
/**
|
|
898
|
+
* How far, in drawing units, the outline may stray from a curved boundary: arcs, circles,
|
|
899
|
+
* ellipses and splines become straight pieces this close to the curve.
|
|
900
|
+
*/
|
|
901
|
+
tolerance?: number | PipelineRef;
|
|
902
|
+
};
|
|
903
|
+
/** Makes a straight segment of a drawing path, from `start` to `end`. */
|
|
904
|
+
"io.drawing.lineSegment": {
|
|
905
|
+
/** Where the line starts. */
|
|
906
|
+
start: [number, number, number] | PipelineRef;
|
|
907
|
+
/** Where the line ends. */
|
|
908
|
+
end: [number, number, number] | PipelineRef;
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
* Puts paths on a named layer with a color and a line type, making one part of a drawing.
|
|
912
|
+
*
|
|
913
|
+
* A drawing may hold several parts; `io.dxf.dxfCreate` writes them as DXF and `io.svg.svgCreate`
|
|
914
|
+
* as SVG.
|
|
915
|
+
*/
|
|
916
|
+
"io.drawing.part": {
|
|
917
|
+
/** The paths of the part, each a run of segments. */
|
|
918
|
+
paths: unknown[] | PipelineRef;
|
|
919
|
+
/**
|
|
920
|
+
* The layer the paths go on. Parts may share a layer, which takes the first part's color and
|
|
921
|
+
* line type; every part's paths keep their own.
|
|
922
|
+
*/
|
|
923
|
+
layer?: string | PipelineRef;
|
|
924
|
+
/** The color of every path in the part, as a hex string such as `#000000`. */
|
|
925
|
+
color?: unknown | PipelineRef;
|
|
926
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
927
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
928
|
+
/**
|
|
929
|
+
* How wide the part's lines and text strokes are, in drawing units. Left out, the writer's own
|
|
930
|
+
* width is used: the drawing's `strokeWidth` in SVG, the layer's in DXF.
|
|
931
|
+
*/
|
|
932
|
+
lineWeight?: number | PipelineRef;
|
|
933
|
+
/** Lines of text on the part's layer, in its color. */
|
|
934
|
+
texts?: unknown[] | PipelineRef;
|
|
935
|
+
/** Hatched regions on the part's layer, in its color. */
|
|
936
|
+
hatches?: unknown[] | PipelineRef;
|
|
937
|
+
};
|
|
938
|
+
/**
|
|
939
|
+
* Joins segments into one path, drawn in order like the edges of a wire; segments that meet
|
|
940
|
+
* are drawn as one stroke in SVG.
|
|
941
|
+
*/
|
|
942
|
+
"io.drawing.path": {
|
|
943
|
+
/**
|
|
944
|
+
* The segments of the path, in order; where one ends at the next one's start, SVG draws them
|
|
945
|
+
* as one stroke.
|
|
946
|
+
*/
|
|
947
|
+
segments: unknown[] | PipelineRef;
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* Makes connected straight segments through `points`, which `bulges` can bend into arcs;
|
|
951
|
+
* `closed` joins the last point back to the first.
|
|
952
|
+
*/
|
|
953
|
+
"io.drawing.polylineSegment": {
|
|
954
|
+
/**
|
|
955
|
+
* The vertices, in order. A last point equal to the first closes the polyline as `closed`
|
|
956
|
+
* does.
|
|
957
|
+
*/
|
|
958
|
+
points: [number, number, number][] | PipelineRef;
|
|
959
|
+
/** Whether a segment joins the last vertex back to the first. */
|
|
960
|
+
closed?: boolean | PipelineRef;
|
|
961
|
+
/**
|
|
962
|
+
* One per vertex, bending the segment after it into an arc: the tangent of a quarter of its
|
|
963
|
+
* turn, 0 for straight, positive counterclockwise. Left out, every segment is straight.
|
|
964
|
+
*/
|
|
965
|
+
bulges?: number[] | PipelineRef;
|
|
966
|
+
};
|
|
967
|
+
/**
|
|
968
|
+
* Scales drawing parts about the origin, returning new parts and leaving the given ones unchanged.
|
|
969
|
+
*
|
|
970
|
+
* Points, radii, axes, text heights, hatch spacings and line weights are multiplied by `factor`;
|
|
971
|
+
* angles, bulges, knots and weights stay. Scale before writing with `io.dxf.dxfCreate` or
|
|
972
|
+
* `io.svg.svgCreate`: their `unit` labels the drawing and never scales it. A factor not above 0
|
|
973
|
+
* throws.
|
|
974
|
+
*/
|
|
975
|
+
"io.drawing.scaleParts": {
|
|
976
|
+
/** The parts to scale; they stay as they are and scaled copies come back. */
|
|
977
|
+
parts: unknown[] | PipelineRef;
|
|
978
|
+
/**
|
|
979
|
+
* What every length is multiplied by: 2 doubles the drawing, 25.4 turns inches into
|
|
980
|
+
* millimetres.
|
|
981
|
+
*/
|
|
982
|
+
factor?: number | PipelineRef;
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* Makes a B-spline or NURBS curve of a drawing path from its control points and degree, with
|
|
986
|
+
* its knots and weights when they are given.
|
|
987
|
+
*/
|
|
988
|
+
"io.drawing.splineSegment": {
|
|
989
|
+
/**
|
|
990
|
+
* The control points the curve is pulled towards; there must be more of them than the
|
|
991
|
+
* degree.
|
|
992
|
+
*/
|
|
993
|
+
controlPoints: [number, number, number][] | PipelineRef;
|
|
994
|
+
/** The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves. */
|
|
995
|
+
degree?: number | PipelineRef;
|
|
996
|
+
/**
|
|
997
|
+
* Without `knots`, whether the curve wraps around its control points into a smooth closed
|
|
998
|
+
* loop. With `knots`, the knots decide, and this is ignored.
|
|
999
|
+
*/
|
|
1000
|
+
closed?: boolean | PipelineRef;
|
|
1001
|
+
/**
|
|
1002
|
+
* The full knot vector: never decreasing, one more value than the control points and the
|
|
1003
|
+
* degree together. Left out, the curve starts and ends at its end points.
|
|
1004
|
+
*/
|
|
1005
|
+
knots?: number[] | PipelineRef;
|
|
1006
|
+
/**
|
|
1007
|
+
* One positive weight per control point, which makes the curve rational (a NURBS curve). Leave
|
|
1008
|
+
* it out for a weight of 1 everywhere.
|
|
1009
|
+
*/
|
|
1010
|
+
weights?: number[] | PipelineRef;
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* Converts an SVG file into a DXF file, reading it as `io.svg.svgRead` does and writing it as
|
|
1014
|
+
* `io.dxf.dxfCreate` does.
|
|
1015
|
+
*
|
|
1016
|
+
* Inkscape layers, stroke colors and dash patterns become DXF layers, colors and line types, and
|
|
1017
|
+
* curves stay exact. With `unit` the drawing is read at true size and the DXF states that unit. A
|
|
1018
|
+
* drawing too large to write throws.
|
|
1019
|
+
*/
|
|
1020
|
+
"io.drawing.svgToDxf": {
|
|
1021
|
+
/** The whole text of an SVG file. */
|
|
1022
|
+
svg: string | PipelineRef;
|
|
1023
|
+
/**
|
|
1024
|
+
* The unit to read the drawing in at true size, also stated in the DXF (`AC1015` only). Left
|
|
1025
|
+
* out, user units are written and no unit is stated.
|
|
1026
|
+
*/
|
|
1027
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
1028
|
+
/** When true, elements hidden by `display` or `visibility` are written as well. */
|
|
1029
|
+
includeInvisible?: boolean | PipelineRef;
|
|
1030
|
+
/**
|
|
1031
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 index colors, or `truecolor`,
|
|
1032
|
+
* the exact color beside that index (`AC1015` only; `AC1009` writes the index).
|
|
1033
|
+
*/
|
|
1034
|
+
colorFormat?: unknown | PipelineRef;
|
|
1035
|
+
/**
|
|
1036
|
+
* The DXF version: `AC1015` (AutoCAD 2000), which keeps splines and ellipses exact, or `AC1009`
|
|
1037
|
+
* (AutoCAD R12) for old software, where they become polylines within `curveTolerance`.
|
|
1038
|
+
*/
|
|
1039
|
+
acadVersion?: unknown | PipelineRef;
|
|
1040
|
+
/**
|
|
1041
|
+
* The largest distance, in drawing units, between a curve and the polyline that stands in for
|
|
1042
|
+
* it where the version cannot hold the curve exactly.
|
|
1043
|
+
*/
|
|
1044
|
+
curveTolerance?: number | PipelineRef;
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* Makes a line of text for a drawing part's `texts`, in the single-line stroke font.
|
|
1048
|
+
*
|
|
1049
|
+
* The text is placed by a point on its baseline; `anchor` says whether that point is its start,
|
|
1050
|
+
* middle or end, `rotation` turns it and `widthFactor` narrows or widens its letters.
|
|
1051
|
+
*/
|
|
1052
|
+
"io.drawing.text": {
|
|
1053
|
+
/**
|
|
1054
|
+
* The text, one line of it: a control character, such as a line break, a tab or U+0085, is
|
|
1055
|
+
* refused; a line separator is drawn as a question mark.
|
|
1056
|
+
*/
|
|
1057
|
+
text: string | PipelineRef;
|
|
1058
|
+
/** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
|
|
1059
|
+
position: [number, number, number] | PipelineRef;
|
|
1060
|
+
/** The height of a capital letter, in drawing units. */
|
|
1061
|
+
height?: number | PipelineRef;
|
|
1062
|
+
/** Which point of the baseline `position` is: where the text starts, its middle or its end. */
|
|
1063
|
+
anchor?: unknown | PipelineRef;
|
|
1064
|
+
/** The angle of the baseline in degrees, counterclockwise from the X axis. */
|
|
1065
|
+
rotation?: number | PipelineRef;
|
|
1066
|
+
/**
|
|
1067
|
+
* How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
|
|
1068
|
+
* cell, above 1 widens it.
|
|
1069
|
+
*/
|
|
1070
|
+
widthFactor?: number | PipelineRef;
|
|
1071
|
+
};
|
|
1072
|
+
/**
|
|
1073
|
+
* Measures a drawing text: its length along the baseline, and how far the font's ink reaches
|
|
1074
|
+
* above and below it.
|
|
1075
|
+
*
|
|
1076
|
+
* The width is what `io.svg.svgCreate` draws and `io.dxf.dxfCreate` fits the text to; the
|
|
1077
|
+
* position is not needed to measure it. A text that is not one line throws.
|
|
1078
|
+
* Example: 'I' at height 21 -> width 8, above 25, below 7
|
|
1079
|
+
*/
|
|
1080
|
+
"io.drawing.textSize": {
|
|
1081
|
+
/**
|
|
1082
|
+
* The text, one line of it: a control character, such as a line break, a tab or U+0085, is
|
|
1083
|
+
* refused; a line separator is drawn as a question mark.
|
|
1084
|
+
*/
|
|
1085
|
+
text: string | PipelineRef;
|
|
1086
|
+
/** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
|
|
1087
|
+
position: [number, number, number] | PipelineRef;
|
|
1088
|
+
/** The height of a capital letter, in drawing units. */
|
|
1089
|
+
height?: number | PipelineRef;
|
|
1090
|
+
/** Which point of the baseline `position` is: where the text starts, its middle or its end. */
|
|
1091
|
+
anchor?: unknown | PipelineRef;
|
|
1092
|
+
/** The angle of the baseline in degrees, counterclockwise from the X axis. */
|
|
1093
|
+
rotation?: number | PipelineRef;
|
|
1094
|
+
/**
|
|
1095
|
+
* How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
|
|
1096
|
+
* cell, above 1 widens it.
|
|
1097
|
+
*/
|
|
1098
|
+
widthFactor?: number | PipelineRef;
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
* Draws a drawing text as the strokes of its letters, each a list of points in the drawing's
|
|
1102
|
+
* coordinates, placed, turned and narrowed as the text says.
|
|
1103
|
+
*
|
|
1104
|
+
* These are the strokes `io.svg.svgCreate` writes. A text that is not one line throws.
|
|
1105
|
+
* Example: 'I' at height 21 from [10, 20] -> one stroke, [[14, 41, 0], [14, 20, 0]]
|
|
1106
|
+
*/
|
|
1107
|
+
"io.drawing.textStrokes": {
|
|
1108
|
+
/**
|
|
1109
|
+
* The text, one line of it: a control character, such as a line break, a tab or U+0085, is
|
|
1110
|
+
* refused; a line separator is drawn as a question mark.
|
|
1111
|
+
*/
|
|
1112
|
+
text: string | PipelineRef;
|
|
1113
|
+
/** The point on the baseline the text is placed by; `anchor` says which point of the line it is. */
|
|
1114
|
+
position: [number, number, number] | PipelineRef;
|
|
1115
|
+
/** The height of a capital letter, in drawing units. */
|
|
1116
|
+
height?: number | PipelineRef;
|
|
1117
|
+
/** Which point of the baseline `position` is: where the text starts, its middle or its end. */
|
|
1118
|
+
anchor?: unknown | PipelineRef;
|
|
1119
|
+
/** The angle of the baseline in degrees, counterclockwise from the X axis. */
|
|
1120
|
+
rotation?: number | PipelineRef;
|
|
1121
|
+
/**
|
|
1122
|
+
* How wide the letters are drawn against their natural width: below 1 narrows a text to fit a
|
|
1123
|
+
* cell, above 1 widens it.
|
|
1124
|
+
*/
|
|
1125
|
+
widthFactor?: number | PipelineRef;
|
|
1126
|
+
};
|
|
1127
|
+
/** Makes a circular arc for a drawing, under its former DXF name. */
|
|
1128
|
+
"io.dxf.arcSegment": {
|
|
1129
|
+
/** The center of the arc's circle. */
|
|
1130
|
+
center: [number, number, number] | PipelineRef;
|
|
1131
|
+
/** Distance from the center to the arc, in drawing units. */
|
|
1132
|
+
radius: number | PipelineRef;
|
|
1133
|
+
/**
|
|
1134
|
+
* Where the arc starts, in degrees counterclockwise from the X axis (the X axis CAD programs
|
|
1135
|
+
* derive from the `normal` when one is given).
|
|
1136
|
+
*/
|
|
1137
|
+
startAngle: number | PipelineRef;
|
|
1138
|
+
/**
|
|
1139
|
+
* Where the arc ends, in degrees; the arc runs counterclockwise from the start, through 0
|
|
1140
|
+
* when the end is below the start.
|
|
1141
|
+
*/
|
|
1142
|
+
endAngle: number | PipelineRef;
|
|
1143
|
+
/**
|
|
1144
|
+
* The direction the arc's plane faces, counterclockwise seen from its tip. Leave it out for an
|
|
1145
|
+
* arc in the XY plane facing +Z.
|
|
1146
|
+
*/
|
|
1147
|
+
normal?: [number, number, number] | PipelineRef;
|
|
1148
|
+
};
|
|
1149
|
+
/** Makes a whole circle for a drawing, under its former DXF name. */
|
|
1150
|
+
"io.dxf.circleSegment": {
|
|
1151
|
+
/** Where the circle's center lies; without a Z it lies at Z 0. */
|
|
1152
|
+
center: [number, number, number] | PipelineRef;
|
|
1153
|
+
/** Distance from the center to the circle, in drawing units. */
|
|
1154
|
+
radius: number | PipelineRef;
|
|
1155
|
+
/** The direction the circle's plane faces. Leave it out for a circle in the XY plane. */
|
|
1156
|
+
normal?: [number, number, number] | PipelineRef;
|
|
1157
|
+
};
|
|
1158
|
+
/**
|
|
1159
|
+
* Writes a DXF file from path parts, each on its layer with its color and line type.
|
|
1160
|
+
*
|
|
1161
|
+
* `AC1015` keeps every curve exact. `AC1009` (R12) writes splines and ellipses as polylines
|
|
1162
|
+
* within `curveTolerance`, never finer than a millionth of the drawing. Points off one Z make a
|
|
1163
|
+
* 3D polyline; a drawing too large to write throws.
|
|
1164
|
+
*/
|
|
1165
|
+
"io.dxf.dxfCreate": {
|
|
1166
|
+
/** Array of path parts, each containing paths with segments */
|
|
1167
|
+
dxfPathsParts: unknown[] | PipelineRef;
|
|
1168
|
+
/**
|
|
1169
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 index colors, or `truecolor`,
|
|
1170
|
+
* the exact color beside that index (`AC1015` only; `AC1009` writes the index).
|
|
1171
|
+
*/
|
|
1172
|
+
colorFormat?: unknown | PipelineRef;
|
|
1173
|
+
/**
|
|
1174
|
+
* The DXF version: `AC1015` (AutoCAD 2000), which keeps splines and ellipses exact, or `AC1009`
|
|
1175
|
+
* (AutoCAD R12) for old software, where they become polylines within `curveTolerance`.
|
|
1176
|
+
*/
|
|
1177
|
+
acadVersion?: unknown | PipelineRef;
|
|
1178
|
+
/**
|
|
1179
|
+
* The unit the drawing is in, written into its header so CAD programs open it at true size;
|
|
1180
|
+
* `AC1015` only. Left out, no unit is stated.
|
|
1181
|
+
*/
|
|
1182
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
1183
|
+
/**
|
|
1184
|
+
* The largest distance, in drawing units, between a curve and the polyline that stands in for
|
|
1185
|
+
* it where the version cannot hold the curve exactly.
|
|
1186
|
+
*/
|
|
1187
|
+
curveTolerance?: number | PipelineRef;
|
|
1188
|
+
/**
|
|
1189
|
+
* The length of one unit of a dash pattern, in drawing units: `hidden` is 2 units of dash
|
|
1190
|
+
* and 1 of gap. Left out, a two-hundredth of the drawing's size.
|
|
1191
|
+
*/
|
|
1192
|
+
lineTypeScale?: number | PipelineRef;
|
|
1193
|
+
};
|
|
1194
|
+
/**
|
|
1195
|
+
* Reads a DXF file into path parts by layer, color and line type, the model `dxfCreate` writes.
|
|
1196
|
+
*
|
|
1197
|
+
* Lines, arcs, circles, ellipses, polylines and splines are read exactly, block inserts
|
|
1198
|
+
* expanded, with single-line texts and hatches. Multi-line text and dimensions are named in
|
|
1199
|
+
* `warnings`; `occt.io.loadDxf` reads splines given only by fit points.
|
|
1200
|
+
*/
|
|
1201
|
+
"io.dxf.dxfRead": {
|
|
1202
|
+
/**
|
|
1203
|
+
* An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the
|
|
1204
|
+
* header's code page, or as Windows-1252.
|
|
1205
|
+
*/
|
|
1206
|
+
dxf: unknown | PipelineRef;
|
|
1207
|
+
/** When true, layers the file has switched off or frozen are read as well. */
|
|
1208
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
1209
|
+
};
|
|
1210
|
+
/** Makes an ellipse or an arc of one for a drawing, under its former DXF name. */
|
|
1211
|
+
"io.dxf.ellipseSegment": {
|
|
1212
|
+
/** Where the ellipse's center lies; without a Z it lies at Z 0. */
|
|
1213
|
+
center: [number, number, number] | PipelineRef;
|
|
1214
|
+
/**
|
|
1215
|
+
* The vector from the center to one end of the major axis; its length is the major radius,
|
|
1216
|
+
* in drawing units.
|
|
1217
|
+
*/
|
|
1218
|
+
majorAxis: [number, number, number] | PipelineRef;
|
|
1219
|
+
/** The minor radius divided by the major radius. */
|
|
1220
|
+
ratio: number | PipelineRef;
|
|
1221
|
+
/**
|
|
1222
|
+
* Where the arc starts, as the ellipse's parameter t in radians (the point center +
|
|
1223
|
+
* cos(t) `majorAxis` + sin(t) minor axis), the angle only when `ratio` is 1.
|
|
1224
|
+
*/
|
|
1225
|
+
startParameter?: number | PipelineRef;
|
|
1226
|
+
/**
|
|
1227
|
+
* Where the arc ends, as the same parameter in radians; the arc runs counterclockwise from the
|
|
1228
|
+
* start, through 0 when the end is below the start.
|
|
1229
|
+
*/
|
|
1230
|
+
endParameter?: number | PipelineRef;
|
|
1231
|
+
/**
|
|
1232
|
+
* The direction the ellipse's plane faces, perpendicular to `majorAxis`. Leave it out for an
|
|
1233
|
+
* ellipse in the XY plane facing +Z.
|
|
1234
|
+
*/
|
|
1235
|
+
normal?: [number, number, number] | PipelineRef;
|
|
1236
|
+
};
|
|
1237
|
+
/** Makes a straight segment for a drawing, under its former DXF name. */
|
|
1238
|
+
"io.dxf.lineSegment": {
|
|
1239
|
+
/** Where the line starts. */
|
|
1240
|
+
start: [number, number, number] | PipelineRef;
|
|
1241
|
+
/** Where the line ends. */
|
|
1242
|
+
end: [number, number, number] | PipelineRef;
|
|
1243
|
+
};
|
|
1244
|
+
/** Makes a path joined from segments for a drawing, under its former DXF name. */
|
|
1245
|
+
"io.dxf.path": {
|
|
1246
|
+
/**
|
|
1247
|
+
* The segments of the path, in order; where one ends at the next one's start, SVG draws them
|
|
1248
|
+
* as one stroke.
|
|
1249
|
+
*/
|
|
1250
|
+
segments: unknown[] | PipelineRef;
|
|
1251
|
+
};
|
|
1252
|
+
/** Makes a part of a drawing on one layer for a drawing, under its former DXF name. */
|
|
1253
|
+
"io.dxf.pathsPart": {
|
|
1254
|
+
/** The paths of the part, each a run of segments. */
|
|
1255
|
+
paths: unknown[] | PipelineRef;
|
|
1256
|
+
/**
|
|
1257
|
+
* The layer the paths go on. Parts may share a layer, which takes the first part's color and
|
|
1258
|
+
* line type; every part's paths keep their own.
|
|
1259
|
+
*/
|
|
1260
|
+
layer?: string | PipelineRef;
|
|
1261
|
+
/** The color of every path in the part, as a hex string such as `#000000`. */
|
|
1262
|
+
color?: unknown | PipelineRef;
|
|
1263
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
1264
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
1265
|
+
/**
|
|
1266
|
+
* How wide the part's lines and text strokes are, in drawing units. Left out, the writer's own
|
|
1267
|
+
* width is used: the drawing's `strokeWidth` in SVG, the layer's in DXF.
|
|
1268
|
+
*/
|
|
1269
|
+
lineWeight?: number | PipelineRef;
|
|
1270
|
+
/** Lines of text on the part's layer, in its color. */
|
|
1271
|
+
texts?: unknown[] | PipelineRef;
|
|
1272
|
+
/** Hatched regions on the part's layer, in its color. */
|
|
1273
|
+
hatches?: unknown[] | PipelineRef;
|
|
1274
|
+
};
|
|
1275
|
+
/** Makes connected straight segments for a drawing, under its former DXF name. */
|
|
1276
|
+
"io.dxf.polylineSegment": {
|
|
1277
|
+
/**
|
|
1278
|
+
* The vertices, in order. A last point equal to the first closes the polyline as `closed`
|
|
1279
|
+
* does.
|
|
1280
|
+
*/
|
|
1281
|
+
points: [number, number, number][] | PipelineRef;
|
|
1282
|
+
/** Whether a segment joins the last vertex back to the first. */
|
|
1283
|
+
closed?: boolean | PipelineRef;
|
|
1284
|
+
/**
|
|
1285
|
+
* One per vertex, bending the segment after it into an arc: the tangent of a quarter of its
|
|
1286
|
+
* turn, 0 for straight, positive counterclockwise. Left out, every segment is straight.
|
|
1287
|
+
*/
|
|
1288
|
+
bulges?: number[] | PipelineRef;
|
|
1289
|
+
};
|
|
1290
|
+
/** Makes a B-spline or NURBS curve for a drawing, under its former DXF name. */
|
|
1291
|
+
"io.dxf.splineSegment": {
|
|
1292
|
+
/**
|
|
1293
|
+
* The control points the curve is pulled towards; there must be more of them than the
|
|
1294
|
+
* degree.
|
|
1295
|
+
*/
|
|
1296
|
+
controlPoints: [number, number, number][] | PipelineRef;
|
|
1297
|
+
/** The degree of the curve: 1 draws the control polygon, 2 and 3 smooth curves. */
|
|
1298
|
+
degree?: number | PipelineRef;
|
|
1299
|
+
/**
|
|
1300
|
+
* Without `knots`, whether the curve wraps around its control points into a smooth closed
|
|
1301
|
+
* loop. With `knots`, the knots decide, and this is ignored.
|
|
1302
|
+
*/
|
|
1303
|
+
closed?: boolean | PipelineRef;
|
|
1304
|
+
/**
|
|
1305
|
+
* The full knot vector: never decreasing, one more value than the control points and the
|
|
1306
|
+
* degree together. Left out, the curve starts and ends at its end points.
|
|
1307
|
+
*/
|
|
1308
|
+
knots?: number[] | PipelineRef;
|
|
1309
|
+
/**
|
|
1310
|
+
* One positive weight per control point, which makes the curve rational (a NURBS curve). Leave
|
|
1311
|
+
* it out for a weight of 1 everywhere.
|
|
1312
|
+
*/
|
|
1313
|
+
weights?: number[] | PipelineRef;
|
|
1314
|
+
};
|
|
1315
|
+
/**
|
|
1316
|
+
* Writes one drawing path as SVG path data, the text of a `path` element's `d` attribute.
|
|
1317
|
+
*
|
|
1318
|
+
* Segments that meet are drawn as one stroke, reversed where a segment ends where the stroke is,
|
|
1319
|
+
* and a stroke that returns to its start is closed. Curves stay exact as in `svgCreate`, or with
|
|
1320
|
+
* `cubicsOnly` become cubic Beziers within `tolerance`.
|
|
1321
|
+
*/
|
|
1322
|
+
"io.svg.pathData": {
|
|
1323
|
+
/** The path to write as SVG path data. */
|
|
1324
|
+
path: unknown | PipelineRef;
|
|
1325
|
+
/**
|
|
1326
|
+
* Whether Y is negated, as an SVG file needs (its Y runs down); leave it off for data drawn
|
|
1327
|
+
* inside a group that flips Y itself.
|
|
1328
|
+
*/
|
|
1329
|
+
flipY?: boolean | PipelineRef;
|
|
1330
|
+
/**
|
|
1331
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly and the
|
|
1332
|
+
* cubic curves that stand in for it.
|
|
1333
|
+
*/
|
|
1334
|
+
tolerance?: number | PipelineRef;
|
|
1335
|
+
/**
|
|
1336
|
+
* When true, every curve is written as cubic Beziers (`C`), arcs within `tolerance`, for
|
|
1337
|
+
* renderers that draw only lines and cubics.
|
|
1338
|
+
*/
|
|
1339
|
+
cubicsOnly?: boolean | PipelineRef;
|
|
1340
|
+
};
|
|
1341
|
+
/**
|
|
1342
|
+
* Writes an SVG file from path parts, each layer an Inkscape layer.
|
|
1343
|
+
*
|
|
1344
|
+
* Arcs, circles, ellipses and bulges stay exact arcs, unweighted splines up to degree 3 exact
|
|
1345
|
+
* Beziers, others cubics within `tolerance`. Texts become letter strokes, hatches patterned
|
|
1346
|
+
* regions. Y points up, Z is dropped and `unit` gives the true size. A drawing too large to
|
|
1347
|
+
* write throws.
|
|
1348
|
+
*/
|
|
1349
|
+
"io.svg.svgCreate": {
|
|
1350
|
+
/** The parts of the drawing; each layer becomes a group that Inkscape reads as a layer. */
|
|
1351
|
+
parts: unknown[] | PipelineRef;
|
|
1352
|
+
/**
|
|
1353
|
+
* The unit the drawing is in, which gives the file its true width and height. Left out, the
|
|
1354
|
+
* file states no size and viewers fit it to the window.
|
|
1355
|
+
*/
|
|
1356
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
1357
|
+
/**
|
|
1358
|
+
* How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger
|
|
1359
|
+
* side.
|
|
1360
|
+
*/
|
|
1361
|
+
strokeWidth?: number | PipelineRef;
|
|
1362
|
+
/**
|
|
1363
|
+
* The empty border around the drawing, in drawing units. Left out, a fortieth of the
|
|
1364
|
+
* drawing's larger side.
|
|
1365
|
+
*/
|
|
1366
|
+
margin?: number | PipelineRef;
|
|
1367
|
+
/**
|
|
1368
|
+
* The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational
|
|
1369
|
+
* or higher degree spline) and the cubic curves that stand in for it.
|
|
1370
|
+
*/
|
|
1371
|
+
tolerance?: number | PipelineRef;
|
|
1372
|
+
/**
|
|
1373
|
+
* The length of one unit of a dash pattern, in drawing units: `hidden` is 2 units of dash
|
|
1374
|
+
* and 1 of gap. Left out, a two-hundredth of the drawing's size.
|
|
1375
|
+
*/
|
|
1376
|
+
lineTypeScale?: number | PipelineRef;
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* Reads an SVG file into path parts by layer, color and line type.
|
|
1380
|
+
*
|
|
1381
|
+
* Lines, arcs and Bezier curves are read exactly, transforms applied, Y up. Inkscape
|
|
1382
|
+
* layers are layers, each stroke color (else fill) a color, each dash pattern a line type. Text
|
|
1383
|
+
* and images are left out, named in `warnings`; `svgCreate`'s texts and hatches return as paths.
|
|
1384
|
+
*/
|
|
1385
|
+
"io.svg.svgRead": {
|
|
1386
|
+
/** The whole text of an SVG file. */
|
|
1387
|
+
svg: string | PipelineRef;
|
|
1388
|
+
/**
|
|
1389
|
+
* The unit to read the drawing in at its true size, with the page's top left corner at the
|
|
1390
|
+
* origin. Left out, coordinates stay in the file's own user units.
|
|
1391
|
+
*/
|
|
1392
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
1393
|
+
/** When true, elements hidden by `display` or `visibility` are read as well. */
|
|
1394
|
+
includeInvisible?: boolean | PipelineRef;
|
|
1395
|
+
};
|
|
583
1396
|
/**
|
|
584
1397
|
* Keeps only the volume or area that all the inputs share, dropping everything else.
|
|
585
1398
|
*
|
|
@@ -1843,6 +2656,18 @@ export interface OperationParams {
|
|
|
1843
2656
|
/** The second point of the line, where it finishes; the direction runs from start to end. */
|
|
1844
2657
|
end: [number, number, number] | PipelineRef;
|
|
1845
2658
|
};
|
|
2659
|
+
/**
|
|
2660
|
+
* Measures how far a point lies from a line, to the nearest point between its start and end.
|
|
2661
|
+
*
|
|
2662
|
+
* A point beside the line is measured square to it, and one past either end to that end. A line
|
|
2663
|
+
* whose ends meet is measured to that one point.
|
|
2664
|
+
*/
|
|
2665
|
+
"line.distanceToPoint": {
|
|
2666
|
+
/** The line to measure to; nothing past its start or its end counts. */
|
|
2667
|
+
line: unknown | PipelineRef;
|
|
2668
|
+
/** The point to measure from. */
|
|
2669
|
+
point: [number, number, number] | PipelineRef;
|
|
2670
|
+
};
|
|
1846
2671
|
/**
|
|
1847
2672
|
* Reads the end point of a line.
|
|
1848
2673
|
*
|
|
@@ -4076,9 +4901,9 @@ export interface OperationParams {
|
|
|
4076
4901
|
/**
|
|
4077
4902
|
* Builds each root of a recipe as a solid placed by its matrix, in root order.
|
|
4078
4903
|
*
|
|
4079
|
-
* Shared nodes are built once. An invalid recipe throws; a root the kernel cannot build
|
|
4080
|
-
*
|
|
4081
|
-
*
|
|
4904
|
+
* Shared nodes are built once. An invalid recipe throws; a root the kernel cannot build throws
|
|
4905
|
+
* unless `emptyWhenFailed` is set. A cut ending within `tolerance` of a side of the bounding box,
|
|
4906
|
+
* or of a face its end lies wholly on, goes through.
|
|
4082
4907
|
*/
|
|
4083
4908
|
"manifold.recipes.build": {
|
|
4084
4909
|
/**
|
|
@@ -4092,8 +4917,13 @@ export interface OperationParams {
|
|
|
4092
4917
|
*/
|
|
4093
4918
|
circularSegments?: number | PipelineRef;
|
|
4094
4919
|
/**
|
|
4095
|
-
*
|
|
4096
|
-
*
|
|
4920
|
+
* `zUpToYUp` turns each solid a quarter turn about X so the recipe's Z points along Y, and
|
|
4921
|
+
* `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
|
|
4922
|
+
*/
|
|
4923
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
4924
|
+
/**
|
|
4925
|
+
* When true, the solids turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
|
|
4926
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
4097
4927
|
*/
|
|
4098
4928
|
adjustZtoY?: boolean | PipelineRef;
|
|
4099
4929
|
/**
|
|
@@ -4118,8 +4948,13 @@ export interface OperationParams {
|
|
|
4118
4948
|
/** How many flat sides each circle of the recipe is divided into; more is rounder. */
|
|
4119
4949
|
circularSegments?: number | PipelineRef;
|
|
4120
4950
|
/**
|
|
4121
|
-
*
|
|
4122
|
-
* which is up when drawn
|
|
4951
|
+
* Whether the placements turn: `zUpToYUp` turns each a quarter turn about X so the recipe's Z
|
|
4952
|
+
* points along Y, which is up when drawn; `keep` leaves them. `yUpToZUp` is refused.
|
|
4953
|
+
*/
|
|
4954
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
4955
|
+
/**
|
|
4956
|
+
* When true, the placements turn as `upAxis` `zUpToYUp` does; false, its old default, decides
|
|
4957
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
4123
4958
|
*/
|
|
4124
4959
|
adjustZtoY?: boolean | PipelineRef;
|
|
4125
4960
|
/**
|
|
@@ -4149,8 +4984,13 @@ export interface OperationParams {
|
|
|
4149
4984
|
*/
|
|
4150
4985
|
roots?: number[] | PipelineRef;
|
|
4151
4986
|
/**
|
|
4152
|
-
*
|
|
4153
|
-
* `recipes.build` turns its solids
|
|
4987
|
+
* Whether the meshes turn: `zUpToYUp` turns each a quarter turn about X so the recipe's Z points
|
|
4988
|
+
* along Y, as `recipes.build` turns its solids; `keep` leaves them. `yUpToZUp` is refused.
|
|
4989
|
+
*/
|
|
4990
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
4991
|
+
/**
|
|
4992
|
+
* When true, the meshes turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
|
|
4993
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
4154
4994
|
*/
|
|
4155
4995
|
adjustZtoY?: boolean | PipelineRef;
|
|
4156
4996
|
};
|
|
@@ -5105,6 +5945,24 @@ export interface OperationParams {
|
|
|
5105
5945
|
/** The shape to work on; it is not changed. */
|
|
5106
5946
|
shape: unknown | PipelineRef;
|
|
5107
5947
|
};
|
|
5948
|
+
/**
|
|
5949
|
+
* Adds dimensions, datums and tolerances to a document as product manufacturing
|
|
5950
|
+
* information, all of them or, when one is refused, none.
|
|
5951
|
+
*
|
|
5952
|
+
* Each names a part's faces, edges or vertices. It answers the changed document, which
|
|
5953
|
+
* `exportDocumentToStep` writes as STEP AP242 with their pictures; `assembly.query.getDocumentPmi`
|
|
5954
|
+
* lists the items with their labels, as taken here. Calls add up until `removeDocumentPmi`.
|
|
5955
|
+
*/
|
|
5956
|
+
"occt.assembly.manager.addDocumentPmi": {
|
|
5957
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
5958
|
+
document: unknown | PipelineRef;
|
|
5959
|
+
/** Dimensions to write, each from `createPmiDimension` or given as an object. */
|
|
5960
|
+
dimensions?: unknown[] | PipelineRef;
|
|
5961
|
+
/** The datums to add; each must be referred to by one of `tolerances`. */
|
|
5962
|
+
datums?: unknown[] | PipelineRef;
|
|
5963
|
+
/** The geometric tolerances to add. */
|
|
5964
|
+
tolerances?: unknown[] | PipelineRef;
|
|
5965
|
+
};
|
|
5108
5966
|
/**
|
|
5109
5967
|
* Builds an assembly document from a structure, or applies the structure to an existing
|
|
5110
5968
|
* document.
|
|
@@ -5286,11 +6144,164 @@ export interface OperationParams {
|
|
|
5286
6144
|
/** The new color of the part as `{ r, g, b, a }` from 0 to 1; leave it out to keep the old one. */
|
|
5287
6145
|
colorRgba?: unknown | PipelineRef;
|
|
5288
6146
|
};
|
|
6147
|
+
/**
|
|
6148
|
+
* Describes a datum for `addDocumentPmi`: its letter and the shapes it is taken from.
|
|
6149
|
+
*
|
|
6150
|
+
* A tolerance in the same call must refer to it by letter, as a STEP file keeps a datum only
|
|
6151
|
+
* through its tolerances. A letter names one datum in a document, given again only on its
|
|
6152
|
+
* shapes. Nothing is written until `addDocumentPmi`.
|
|
6153
|
+
*/
|
|
6154
|
+
"occt.assembly.manager.createPmiDatum": {
|
|
6155
|
+
/** The shapes the datum is taken from. */
|
|
6156
|
+
shapeRefs: unknown[] | PipelineRef;
|
|
6157
|
+
/**
|
|
6158
|
+
* One to three capital letters, A to Z, naming one datum in the document; a letter it already
|
|
6159
|
+
* has is given again only on that datum's shapes.
|
|
6160
|
+
*/
|
|
6161
|
+
letter?: string | PipelineRef;
|
|
6162
|
+
/** The name of its `presentation`, when that has none of its own. */
|
|
6163
|
+
name?: string | PipelineRef;
|
|
6164
|
+
/**
|
|
6165
|
+
* A presentation drawn by the caller, or an annotation read back; left out, or with no lines and
|
|
6166
|
+
* no fills, the datum is written without one.
|
|
6167
|
+
*/
|
|
6168
|
+
presentation?: unknown | PipelineRef;
|
|
6169
|
+
};
|
|
6170
|
+
/**
|
|
6171
|
+
* Describes a dimension for `addDocumentPmi`: what it states, its value and tolerance, the
|
|
6172
|
+
* shapes it measures, and where its picture is drawn.
|
|
6173
|
+
*
|
|
6174
|
+
* With `start` and `end` the picture is drawn as `io.drawing.dimensionPicture` draws it, in the
|
|
6175
|
+
* plane `normal` faces, in the part's own axes; a `presentation` replaces it. Nothing is written
|
|
6176
|
+
* until `addDocumentPmi`.
|
|
6177
|
+
*/
|
|
6178
|
+
"occt.assembly.manager.createPmiDimension": {
|
|
6179
|
+
/** The nominal value, in the document's length unit, or in degrees for an `angle`. */
|
|
6180
|
+
value: number | PipelineRef;
|
|
6181
|
+
/** The shapes it measures, or measures from, each a part and one face, edge or vertex of it. */
|
|
6182
|
+
shapeRefs: unknown[] | PipelineRef;
|
|
6183
|
+
/**
|
|
6184
|
+
* What the dimension states; `linearDistance` and `angle` need `otherShapeRefs`, the sizes take
|
|
6185
|
+
* none.
|
|
6186
|
+
*/
|
|
6187
|
+
type?: "Location_LinearDistance" | "Location_Angular" | "Size_Diameter" | "Size_Radius" | "Size_CurveLength" | PipelineRef;
|
|
6188
|
+
/** The shapes a `linearDistance` or an `angle` measures to; an empty list counts as none. */
|
|
6189
|
+
otherShapeRefs?: unknown[] | PipelineRef;
|
|
6190
|
+
/**
|
|
6191
|
+
* How far above the value the measure may lie, in degrees for an `angle`. Left out with
|
|
6192
|
+
* `lowerTolerance`, there is no tolerance; left out alone, it is 0.
|
|
6193
|
+
*/
|
|
6194
|
+
upperTolerance?: number | PipelineRef;
|
|
6195
|
+
/**
|
|
6196
|
+
* How far below the value the measure may lie, as an amount. Left out with `upperTolerance`, the
|
|
6197
|
+
* dimension has no tolerance; left out alone, it is 0.
|
|
6198
|
+
*/
|
|
6199
|
+
lowerTolerance?: number | PipelineRef;
|
|
6200
|
+
/**
|
|
6201
|
+
* The name of the picture `start` and `end` draw, which readers show and `getDocumentAnnotations`
|
|
6202
|
+
* reads back; a `presentation` without a name of its own takes it.
|
|
6203
|
+
*/
|
|
6204
|
+
name?: string | PipelineRef;
|
|
6205
|
+
/**
|
|
6206
|
+
* For `linearDistance` and `curveLength` the first point measured, for the others the center of
|
|
6207
|
+
* the circle or angle; without it and `end`, nothing is drawn.
|
|
6208
|
+
*/
|
|
6209
|
+
start?: [number, number, number] | PipelineRef;
|
|
6210
|
+
/**
|
|
6211
|
+
* For `linearDistance` and `curveLength` the second point measured; for `diameter` and `radius` a
|
|
6212
|
+
* point of the circle; for an `angle` a point on its first arm, where the arc passes.
|
|
6213
|
+
*/
|
|
6214
|
+
end?: [number, number, number] | PipelineRef;
|
|
6215
|
+
/**
|
|
6216
|
+
* The picture's plane normal, facing the reader; an angle turns counterclockwise about it. Left
|
|
6217
|
+
* out, +Z, or -Y when `start` to `end` runs along Z.
|
|
6218
|
+
*/
|
|
6219
|
+
normal?: [number, number, number] | PipelineRef;
|
|
6220
|
+
/**
|
|
6221
|
+
* For `linearDistance`, the direction the distance is measured along; left out, from `start` to
|
|
6222
|
+
* `end`. Other types ignore it.
|
|
6223
|
+
*/
|
|
6224
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6225
|
+
/**
|
|
6226
|
+
* For `linearDistance` and `curveLength`, how far the dimension line stands from `start`, to the
|
|
6227
|
+
* left of the measured direction seen from `normal`; negative puts it right.
|
|
6228
|
+
*/
|
|
6229
|
+
offset?: number | PipelineRef;
|
|
6230
|
+
/** The height of the picture's digits, in the document's length unit; its arrows are as long. */
|
|
6231
|
+
textHeight?: number | PipelineRef;
|
|
6232
|
+
/** How many decimals the picture writes the value with; trailing zeros are dropped. */
|
|
6233
|
+
decimalPlaces?: number | PipelineRef;
|
|
6234
|
+
/**
|
|
6235
|
+
* A presentation drawn by the caller, or an annotation read back, used instead of the picture
|
|
6236
|
+
* `start` and `end` draw; one with no lines and no fills counts as none.
|
|
6237
|
+
*/
|
|
6238
|
+
presentation?: unknown | PipelineRef;
|
|
6239
|
+
};
|
|
6240
|
+
/**
|
|
6241
|
+
* Describes one shape of a part for a dimension, datum or tolerance: the part's label and which
|
|
6242
|
+
* face, edge or vertex of it.
|
|
6243
|
+
*
|
|
6244
|
+
* Faces, edges and vertices count from 0 as `shapes.face.getFace`, `shapes.edge.getEdge` and
|
|
6245
|
+
* `shapes.vertex.getVertices` count them on the part's shape, which `assembly.query.getShapeFromLabel`
|
|
6246
|
+
* reads; `kind` `part` means the whole part.
|
|
6247
|
+
*/
|
|
6248
|
+
"occt.assembly.manager.createPmiShape": {
|
|
6249
|
+
/**
|
|
6250
|
+
* The label of the part, such as `0:1:1:1`, as `assembly.query.getDocumentParts` lists it: a
|
|
6251
|
+
* part, not an assembly or an instance that places one.
|
|
6252
|
+
*/
|
|
6253
|
+
part: string | PipelineRef;
|
|
6254
|
+
/** Whether the whole part is meant, or one face, edge or vertex of it. */
|
|
6255
|
+
kind?: "part" | "face" | "edge" | "vertex" | PipelineRef;
|
|
6256
|
+
/**
|
|
6257
|
+
* Which face, edge or vertex, counting from 0 as `shapes.face.getFace`, `shapes.edge.getEdge`
|
|
6258
|
+
* and `shapes.vertex.getVertices` count them on the part's shape; the whole part ignores it.
|
|
6259
|
+
*/
|
|
6260
|
+
index?: number | PipelineRef;
|
|
6261
|
+
};
|
|
6262
|
+
/**
|
|
6263
|
+
* Describes a geometric tolerance for `addDocumentPmi`: what it controls, its value, the shapes
|
|
6264
|
+
* it applies to and the letters of the datums it refers to, primary first.
|
|
6265
|
+
*
|
|
6266
|
+
* Only `position`, `perpendicularity` and `parallelism` take a diameter zone or a material
|
|
6267
|
+
* condition. Nothing is written until `addDocumentPmi`.
|
|
6268
|
+
*/
|
|
6269
|
+
"occt.assembly.manager.createPmiTolerance": {
|
|
6270
|
+
/** The width of its tolerance zone, in the document's length unit. */
|
|
6271
|
+
value: number | PipelineRef;
|
|
6272
|
+
/** The shapes it applies to. */
|
|
6273
|
+
shapeRefs: unknown[] | PipelineRef;
|
|
6274
|
+
/** What the tolerance controls. */
|
|
6275
|
+
type?: "Flatness" | "CircularityOrRoundness" | "Cylindricity" | "ProfileOfSurface" | "Perpendicularity" | "Parallelism" | "Position" | PipelineRef;
|
|
6276
|
+
/**
|
|
6277
|
+
* The letters of the datums it refers to, primary first, at most three, each given in the same
|
|
6278
|
+
* call, a datum the document has again on its own shapes.
|
|
6279
|
+
*/
|
|
6280
|
+
datumLetters?: unknown[] | PipelineRef;
|
|
6281
|
+
/**
|
|
6282
|
+
* When true, the zone is a cylinder, written with the diameter sign before the value; only
|
|
6283
|
+
* `position`, `perpendicularity` and `parallelism` take it.
|
|
6284
|
+
*/
|
|
6285
|
+
diameterZone?: boolean | PipelineRef;
|
|
6286
|
+
/**
|
|
6287
|
+
* The material condition it applies at; only `position`, `perpendicularity` and `parallelism`
|
|
6288
|
+
* take one other than `none`.
|
|
6289
|
+
*/
|
|
6290
|
+
material?: "none" | "maximum" | "least" | PipelineRef;
|
|
6291
|
+
/** The name of its `presentation`, when that has none of its own. */
|
|
6292
|
+
name?: string | PipelineRef;
|
|
6293
|
+
/**
|
|
6294
|
+
* A presentation drawn by the caller, or an annotation read back; left out, or with no lines and
|
|
6295
|
+
* no fills, the tolerance is written without one.
|
|
6296
|
+
*/
|
|
6297
|
+
presentation?: unknown | PipelineRef;
|
|
6298
|
+
};
|
|
5289
6299
|
/**
|
|
5290
6300
|
* Deletes an assembly document and frees the memory it holds.
|
|
5291
6301
|
*
|
|
5292
6302
|
* A document built with `buildAssemblyDocument` or loaded with `loadStepToDoc` stays in memory
|
|
5293
|
-
* until
|
|
6303
|
+
* until deleted; deleting it deletes the documents its changes made too, and deleting one of
|
|
6304
|
+
* those, such as `setDocLabelColor` answers, frees that one alone, which is made again when read.
|
|
5294
6305
|
*/
|
|
5295
6306
|
"occt.assembly.manager.deleteDocument": {
|
|
5296
6307
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
@@ -5315,8 +6326,8 @@ export interface OperationParams {
|
|
|
5315
6326
|
*/
|
|
5316
6327
|
meshAngle?: number | PipelineRef;
|
|
5317
6328
|
/**
|
|
5318
|
-
* When true,
|
|
5319
|
-
*
|
|
6329
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
6330
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
5320
6331
|
*/
|
|
5321
6332
|
internalVerticesMode?: boolean | PipelineRef;
|
|
5322
6333
|
/**
|
|
@@ -5368,8 +6379,8 @@ export interface OperationParams {
|
|
|
5368
6379
|
*/
|
|
5369
6380
|
meshAngle?: number | PipelineRef;
|
|
5370
6381
|
/**
|
|
5371
|
-
* When true,
|
|
5372
|
-
*
|
|
6382
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
6383
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
5373
6384
|
*/
|
|
5374
6385
|
internalVerticesMode?: boolean | PipelineRef;
|
|
5375
6386
|
/**
|
|
@@ -5472,8 +6483,9 @@ export interface OperationParams {
|
|
|
5472
6483
|
* Writes an assembly document as a STEP file with its hierarchy, names and colors, and returns
|
|
5473
6484
|
* the file's bytes.
|
|
5474
6485
|
*
|
|
5475
|
-
* `
|
|
5476
|
-
*
|
|
6486
|
+
* `compress` writes gzip-compressed STEP-Z. A document holding dimensions, datums or tolerances is
|
|
6487
|
+
* written as STEP AP242 with them and their pictures, those of each part in that part's own
|
|
6488
|
+
* context and units.
|
|
5477
6489
|
*/
|
|
5478
6490
|
"occt.assembly.manager.exportDocumentToStep": {
|
|
5479
6491
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
@@ -5536,17 +6548,30 @@ export interface OperationParams {
|
|
|
5536
6548
|
*/
|
|
5537
6549
|
stepData: unknown | PipelineRef;
|
|
5538
6550
|
};
|
|
6551
|
+
/**
|
|
6552
|
+
* Removes every dimension, datum and geometric tolerance from a document, with their pictures and
|
|
6553
|
+
* the saved views that showed only them.
|
|
6554
|
+
*
|
|
6555
|
+
* It answers the document without them, which exports as one that never held PMI and which
|
|
6556
|
+
* `addDocumentPmi` writes into as into a fresh one.
|
|
6557
|
+
*/
|
|
6558
|
+
"occt.assembly.manager.removeDocumentPmi": {
|
|
6559
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6560
|
+
document: unknown | PipelineRef;
|
|
6561
|
+
};
|
|
5539
6562
|
/**
|
|
5540
6563
|
* Colors a label of a document, a part, instance or assembly, with red, green, blue and alpha
|
|
5541
6564
|
* from 0 to 1.
|
|
5542
6565
|
*
|
|
5543
|
-
*
|
|
6566
|
+
* It answers the colored document, which an export or a read given it shows, STEP and glTF
|
|
6567
|
+
* included. A label that names no part, instance or assembly of the document is refused;
|
|
6568
|
+
* `setDocLabelColors` colors many labels in one change.
|
|
5544
6569
|
*/
|
|
5545
6570
|
"occt.assembly.manager.setDocLabelColor": {
|
|
5546
|
-
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
5547
|
-
document: unknown | PipelineRef;
|
|
5548
6571
|
/** The label of the part, instance or assembly to color, such as `0:1:1:1`. */
|
|
5549
6572
|
label: string | PipelineRef;
|
|
6573
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6574
|
+
document: unknown | PipelineRef;
|
|
5550
6575
|
/** The red channel, from 0 to 1. */
|
|
5551
6576
|
r?: number | PipelineRef;
|
|
5552
6577
|
/** The green channel, from 0 to 1. */
|
|
@@ -5556,15 +6581,61 @@ export interface OperationParams {
|
|
|
5556
6581
|
/** The opacity, from 0 for transparent to 1 for opaque. */
|
|
5557
6582
|
a?: number | PipelineRef;
|
|
5558
6583
|
};
|
|
5559
|
-
/**
|
|
5560
|
-
|
|
6584
|
+
/**
|
|
6585
|
+
* Colors many labels of a document, parts, instances or assemblies, with one color in one
|
|
6586
|
+
* change.
|
|
6587
|
+
*
|
|
6588
|
+
* It answers the colored document as `setDocLabelColor` does, one change for the whole list. A
|
|
6589
|
+
* label that names no part, instance or assembly is refused before any is colored; an empty
|
|
6590
|
+
* list answers the document as it was.
|
|
6591
|
+
*/
|
|
6592
|
+
"occt.assembly.manager.setDocLabelColors": {
|
|
6593
|
+
/**
|
|
6594
|
+
* The labels of the parts, instances or assemblies to color, such as `0:1:1:1`; each takes the
|
|
6595
|
+
* one color.
|
|
6596
|
+
*/
|
|
6597
|
+
labels: unknown[] | PipelineRef;
|
|
5561
6598
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
5562
6599
|
document: unknown | PipelineRef;
|
|
6600
|
+
/** The red channel, from 0 to 1. */
|
|
6601
|
+
r?: number | PipelineRef;
|
|
6602
|
+
/** The green channel, from 0 to 1. */
|
|
6603
|
+
g?: number | PipelineRef;
|
|
6604
|
+
/** The blue channel, from 0 to 1. */
|
|
6605
|
+
b?: number | PipelineRef;
|
|
6606
|
+
/** The opacity, from 0 for transparent to 1 for opaque. */
|
|
6607
|
+
a?: number | PipelineRef;
|
|
6608
|
+
};
|
|
6609
|
+
/**
|
|
6610
|
+
* Renames a label of a document, a part, instance or assembly.
|
|
6611
|
+
*
|
|
6612
|
+
* It answers the renamed document, which an export or a read given it shows. A label that names
|
|
6613
|
+
* no part, instance or assembly of the document is refused; `setDocLabelNames` renames many
|
|
6614
|
+
* labels in one change.
|
|
6615
|
+
*/
|
|
6616
|
+
"occt.assembly.manager.setDocLabelName": {
|
|
5563
6617
|
/** The label of the part, instance or assembly to rename, such as `0:1:1:1`. */
|
|
5564
6618
|
label: string | PipelineRef;
|
|
6619
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6620
|
+
document: unknown | PipelineRef;
|
|
5565
6621
|
/** The new name written to the label. */
|
|
5566
6622
|
name?: string | PipelineRef;
|
|
5567
6623
|
};
|
|
6624
|
+
/**
|
|
6625
|
+
* Renames many labels of a document, parts, instances or assemblies, in one change.
|
|
6626
|
+
*
|
|
6627
|
+
* `names` holds each label's new name, in the order of `labels`. A label that is no part,
|
|
6628
|
+
* instance or assembly, a name that is not text, a count unlike the labels' or a label given two
|
|
6629
|
+
* names is refused before any is renamed.
|
|
6630
|
+
*/
|
|
6631
|
+
"occt.assembly.manager.setDocLabelNames": {
|
|
6632
|
+
/** The labels of the parts, instances or assemblies to rename, such as `0:1:1:1`. */
|
|
6633
|
+
labels: unknown[] | PipelineRef;
|
|
6634
|
+
/** The new name of each label in `labels`, in the same order; the lists are equally long. */
|
|
6635
|
+
names: unknown[] | PipelineRef;
|
|
6636
|
+
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
6637
|
+
document: unknown | PipelineRef;
|
|
6638
|
+
};
|
|
5568
6639
|
/**
|
|
5569
6640
|
* Reads the whole assembly tree of a document as a flat list of nodes with their parents, so it
|
|
5570
6641
|
* can be walked or shown as a tree.
|
|
@@ -5577,6 +6648,32 @@ export interface OperationParams {
|
|
|
5577
6648
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
5578
6649
|
document: unknown | PipelineRef;
|
|
5579
6650
|
};
|
|
6651
|
+
/**
|
|
6652
|
+
* Reads the dimensions, tolerances and datums a document carries as a STEP AP242 file draws
|
|
6653
|
+
* them, and the views the file saved.
|
|
6654
|
+
*
|
|
6655
|
+
* Each has its plane, its lines as polylines and its letters as loops to fill even-odd, in the
|
|
6656
|
+
* document's axes and units or turned Y-up; a part placed twice shows its annotations twice.
|
|
6657
|
+
* Experimental.
|
|
6658
|
+
*/
|
|
6659
|
+
"occt.assembly.query.getDocumentAnnotations": {
|
|
6660
|
+
/**
|
|
6661
|
+
* The document from `loadStepToDoc` or another loader, holding the annotations a STEP AP242
|
|
6662
|
+
* file brings along.
|
|
6663
|
+
*/
|
|
6664
|
+
document: unknown | PipelineRef;
|
|
6665
|
+
/**
|
|
6666
|
+
* How far, in the document's units, a curved annotation line may stray from its curve; smaller
|
|
6667
|
+
* draws circles and arcs with more points, up to about 130 points a circle.
|
|
6668
|
+
*/
|
|
6669
|
+
deflection?: number | PipelineRef;
|
|
6670
|
+
/**
|
|
6671
|
+
* Whether the annotations and saved views turn, as `docToMesh` with the same `upAxis` turns the
|
|
6672
|
+
* parts: `zUpToYUp` from Z-up into Y-up, `yUpToZUp` into Z-up, and `keep` leaves the
|
|
6673
|
+
* document's axes.
|
|
6674
|
+
*/
|
|
6675
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
6676
|
+
};
|
|
5580
6677
|
/**
|
|
5581
6678
|
* Lists every part and sub-assembly in a document with its label, name, type, color and how
|
|
5582
6679
|
* many times it is placed.
|
|
@@ -5588,12 +6685,12 @@ export interface OperationParams {
|
|
|
5588
6685
|
document: unknown | PipelineRef;
|
|
5589
6686
|
};
|
|
5590
6687
|
/**
|
|
5591
|
-
* Reads the product manufacturing information a document holds,
|
|
5592
|
-
*
|
|
6688
|
+
* Reads the product manufacturing information a document holds: dimensions, geometric tolerances
|
|
6689
|
+
* and the datums they refer to, each under its own label.
|
|
5593
6690
|
*
|
|
5594
|
-
* Each entry names its shapes by label, which `getShapeFromLabel` reads
|
|
5595
|
-
*
|
|
5596
|
-
* any gives empty lists.
|
|
6691
|
+
* Each entry names its shapes by label, which `getShapeFromLabel` reads, and in `shapeRefs` as the
|
|
6692
|
+
* part and index `manager.addDocumentPmi` takes. Lengths are in the document's unit, angles in
|
|
6693
|
+
* degrees; a document without any gives empty lists.
|
|
5597
6694
|
*/
|
|
5598
6695
|
"occt.assembly.query.getDocumentPmi": {
|
|
5599
6696
|
/** The document from `buildAssemblyDocument` or `loadStepToDoc`. */
|
|
@@ -6421,8 +7518,13 @@ export interface OperationParams {
|
|
|
6421
7518
|
*/
|
|
6422
7519
|
relativeDeflection?: boolean | PipelineRef;
|
|
6423
7520
|
/**
|
|
6424
|
-
*
|
|
6425
|
-
* up.
|
|
7521
|
+
* `zUpToYUp` turns the mesh from the file's Z-up into Y-up, as `io.loadSTEPorIGES` turns a
|
|
7522
|
+
* shape; `yUpToZUp` makes it Z-up for tools that treat Z as up; `keep` leaves it.
|
|
7523
|
+
*/
|
|
7524
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
7525
|
+
/**
|
|
7526
|
+
* When true, the mesh turns as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
7527
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
6426
7528
|
*/
|
|
6427
7529
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6428
7530
|
/**
|
|
@@ -6472,8 +7574,13 @@ export interface OperationParams {
|
|
|
6472
7574
|
*/
|
|
6473
7575
|
relativeDeflection?: boolean | PipelineRef;
|
|
6474
7576
|
/**
|
|
6475
|
-
*
|
|
6476
|
-
* as up.
|
|
7577
|
+
* `zUpToYUp` turns the meshes from the file's Z-up into Y-up, as `io.loadSTEPorIGES` turns a
|
|
7578
|
+
* shape; `yUpToZUp` makes them Z-up for tools that treat Z as up; `keep` leaves them.
|
|
7579
|
+
*/
|
|
7580
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
7581
|
+
/**
|
|
7582
|
+
* When true, the meshes turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
7583
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
6477
7584
|
*/
|
|
6478
7585
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6479
7586
|
/**
|
|
@@ -7854,17 +8961,23 @@ export interface OperationParams {
|
|
|
7854
8961
|
/**
|
|
7855
8962
|
* Rounds several edges of a shape, each with the same radius profile that changes along it.
|
|
7856
8963
|
*
|
|
7857
|
-
* `
|
|
7858
|
-
*
|
|
8964
|
+
* `radiusList` holds the radius at each `paramsU` position on every edge, read as
|
|
8965
|
+
* `filletEdgeVariableRadius` reads them. The lists must be equally long, or an error is thrown.
|
|
7859
8966
|
*/
|
|
7860
8967
|
"occt.fillets.filletEdgesSameVariableRadius": {
|
|
7861
8968
|
/** The shape the edges belong to. */
|
|
7862
8969
|
shape: unknown | PipelineRef;
|
|
7863
8970
|
/** The edges to round, all with the same radius profile. */
|
|
7864
8971
|
edges: unknown[] | PipelineRef;
|
|
7865
|
-
/**
|
|
8972
|
+
/**
|
|
8973
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
8974
|
+
* same length.
|
|
8975
|
+
*/
|
|
7866
8976
|
radiusList: number[] | PipelineRef;
|
|
7867
|
-
/**
|
|
8977
|
+
/**
|
|
8978
|
+
* Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: a fraction of
|
|
8979
|
+
* each edge's own length from the start of its curve.
|
|
8980
|
+
*/
|
|
7868
8981
|
paramsU: number[] | PipelineRef;
|
|
7869
8982
|
};
|
|
7870
8983
|
/**
|
|
@@ -7876,17 +8989,23 @@ export interface OperationParams {
|
|
|
7876
8989
|
shape: unknown | PipelineRef;
|
|
7877
8990
|
/** The edges to round, all with the same radius profile. */
|
|
7878
8991
|
edges: unknown[] | PipelineRef;
|
|
7879
|
-
/**
|
|
8992
|
+
/**
|
|
8993
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
8994
|
+
* same length.
|
|
8995
|
+
*/
|
|
7880
8996
|
radiusList: number[] | PipelineRef;
|
|
7881
|
-
/**
|
|
8997
|
+
/**
|
|
8998
|
+
* Where each radius applies on every edge, read as for `filletEdgeVariableRadius`: a fraction of
|
|
8999
|
+
* each edge's own length from the start of its curve.
|
|
9000
|
+
*/
|
|
7882
9001
|
paramsU: number[] | PipelineRef;
|
|
7883
9002
|
};
|
|
7884
9003
|
/**
|
|
7885
9004
|
* Rounds several edges of a shape, each with its own radius profile that changes along it.
|
|
7886
9005
|
*
|
|
7887
9006
|
* `radiusLists` and `paramsULists` hold one list per edge, in edge order; within each pair the
|
|
7888
|
-
*
|
|
7889
|
-
*
|
|
9007
|
+
* radii apply at the positions as `filletEdgeVariableRadius` reads them. All three lists must
|
|
9008
|
+
* have the same length, or an error is thrown.
|
|
7890
9009
|
*/
|
|
7891
9010
|
"occt.fillets.filletEdgesVariableRadius": {
|
|
7892
9011
|
/** The shape the edges belong to. */
|
|
@@ -7899,8 +9018,8 @@ export interface OperationParams {
|
|
|
7899
9018
|
*/
|
|
7900
9019
|
radiusLists: unknown[] | PipelineRef;
|
|
7901
9020
|
/**
|
|
7902
|
-
* One list
|
|
7903
|
-
* matching list in `radiusLists`.
|
|
9021
|
+
* One list of positions per edge, each a fraction of that edge's own length as
|
|
9022
|
+
* `filletEdgeVariableRadius` reads it, pairing with the matching list in `radiusLists`.
|
|
7904
9023
|
*/
|
|
7905
9024
|
paramsULists: unknown[] | PipelineRef;
|
|
7906
9025
|
};
|
|
@@ -7919,8 +9038,8 @@ export interface OperationParams {
|
|
|
7919
9038
|
*/
|
|
7920
9039
|
radiusLists: unknown[] | PipelineRef;
|
|
7921
9040
|
/**
|
|
7922
|
-
* One list
|
|
7923
|
-
* matching list in `radiusLists`.
|
|
9041
|
+
* One list of positions per edge, each a fraction of that edge's own length as
|
|
9042
|
+
* `filletEdgeVariableRadius` reads it, pairing with the matching list in `radiusLists`.
|
|
7924
9043
|
*/
|
|
7925
9044
|
paramsULists: unknown[] | PipelineRef;
|
|
7926
9045
|
};
|
|
@@ -7951,18 +9070,24 @@ export interface OperationParams {
|
|
|
7951
9070
|
/**
|
|
7952
9071
|
* Rounds one edge of a shape with a radius that changes along it.
|
|
7953
9072
|
*
|
|
7954
|
-
* `
|
|
7955
|
-
*
|
|
7956
|
-
*
|
|
9073
|
+
* `radiusList` holds the radius at each `paramsU` position, a fraction of the edge's length from
|
|
9074
|
+
* its curve's start, whatever its orientation; between positions it may overshoot. A position
|
|
9075
|
+
* outside 0 to 1, a radius not above 0 or one position with two radii is refused.
|
|
7957
9076
|
*/
|
|
7958
9077
|
"occt.fillets.filletEdgeVariableRadius": {
|
|
7959
9078
|
/** The shape the edge belongs to. */
|
|
7960
9079
|
shape: unknown | PipelineRef;
|
|
7961
9080
|
/** The edge to round with a changing radius. */
|
|
7962
9081
|
edge: unknown | PipelineRef;
|
|
7963
|
-
/**
|
|
9082
|
+
/**
|
|
9083
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
9084
|
+
* same length.
|
|
9085
|
+
*/
|
|
7964
9086
|
radiusList: number[] | PipelineRef;
|
|
7965
|
-
/**
|
|
9087
|
+
/**
|
|
9088
|
+
* Where each radius applies: a fraction of the edge's length from the start of its curve, 0 to 1,
|
|
9089
|
+
* in any order; an end without one takes the nearest radius.
|
|
9090
|
+
*/
|
|
7966
9091
|
paramsU: number[] | PipelineRef;
|
|
7967
9092
|
};
|
|
7968
9093
|
/**
|
|
@@ -7974,9 +9099,15 @@ export interface OperationParams {
|
|
|
7974
9099
|
shape: unknown | PipelineRef;
|
|
7975
9100
|
/** The edge to round with a changing radius. */
|
|
7976
9101
|
edge: unknown | PipelineRef;
|
|
7977
|
-
/**
|
|
9102
|
+
/**
|
|
9103
|
+
* The radius in model units, above 0, at each position in `paramsU`; the lists must have the
|
|
9104
|
+
* same length.
|
|
9105
|
+
*/
|
|
7978
9106
|
radiusList: number[] | PipelineRef;
|
|
7979
|
-
/**
|
|
9107
|
+
/**
|
|
9108
|
+
* Where each radius applies: a fraction of the edge's length from the start of its curve, 0 to 1,
|
|
9109
|
+
* in any order; an end without one takes the nearest radius.
|
|
9110
|
+
*/
|
|
7980
9111
|
paramsU: number[] | PipelineRef;
|
|
7981
9112
|
};
|
|
7982
9113
|
/**
|
|
@@ -8194,8 +9325,8 @@ export interface OperationParams {
|
|
|
8194
9325
|
*/
|
|
8195
9326
|
meshRelative?: boolean | PipelineRef;
|
|
8196
9327
|
/**
|
|
8197
|
-
* When true,
|
|
8198
|
-
*
|
|
9328
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
9329
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
8199
9330
|
*/
|
|
8200
9331
|
internalVerticesMode?: boolean | PipelineRef;
|
|
8201
9332
|
/**
|
|
@@ -8222,7 +9353,15 @@ export interface OperationParams {
|
|
|
8222
9353
|
* `mat4` always as a matrix, `trs` always as the three parts.
|
|
8223
9354
|
*/
|
|
8224
9355
|
transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
|
|
8225
|
-
/**
|
|
9356
|
+
/**
|
|
9357
|
+
* Whether the model turns: `zUpToYUp` turns the file's Z-up into glTF's Y-up, and `keep` keeps
|
|
9358
|
+
* Z up. `yUpToZUp` is refused.
|
|
9359
|
+
*/
|
|
9360
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
9361
|
+
/**
|
|
9362
|
+
* When false, the model keeps its axes as `keep` does; true, its old default, decides nothing.
|
|
9363
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9364
|
+
*/
|
|
8226
9365
|
adjustZtoY?: boolean | PipelineRef;
|
|
8227
9366
|
/**
|
|
8228
9367
|
* A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps
|
|
@@ -8279,8 +9418,8 @@ export interface OperationParams {
|
|
|
8279
9418
|
*/
|
|
8280
9419
|
meshRelative?: boolean | PipelineRef;
|
|
8281
9420
|
/**
|
|
8282
|
-
* When true,
|
|
8283
|
-
*
|
|
9421
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
9422
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
8284
9423
|
*/
|
|
8285
9424
|
internalVerticesMode?: boolean | PipelineRef;
|
|
8286
9425
|
/**
|
|
@@ -8307,7 +9446,15 @@ export interface OperationParams {
|
|
|
8307
9446
|
* `mat4` always as a matrix, `trs` always as the three parts.
|
|
8308
9447
|
*/
|
|
8309
9448
|
transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
|
|
8310
|
-
/**
|
|
9449
|
+
/**
|
|
9450
|
+
* Whether the model turns: `zUpToYUp` turns the file's Z-up into glTF's Y-up, and `keep` keeps
|
|
9451
|
+
* Z up. `yUpToZUp` is refused.
|
|
9452
|
+
*/
|
|
9453
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
9454
|
+
/**
|
|
9455
|
+
* When false, the model keeps its axes as `keep` does; true, its old default, decides nothing.
|
|
9456
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9457
|
+
*/
|
|
8311
9458
|
adjustZtoY?: boolean | PipelineRef;
|
|
8312
9459
|
/**
|
|
8313
9460
|
* A factor applied to the whole model, such as 0.001 to turn millimeters into meters; 1 keeps
|
|
@@ -8366,8 +9513,8 @@ export interface OperationParams {
|
|
|
8366
9513
|
*/
|
|
8367
9514
|
meshRelative?: boolean | PipelineRef;
|
|
8368
9515
|
/**
|
|
8369
|
-
* When true,
|
|
8370
|
-
*
|
|
9516
|
+
* When true, flat and cylindrical faces get vertices inside them, not only along their edges;
|
|
9517
|
+
* when false, triangles can cut straight across a wide cylindrical face such as a bore.
|
|
8371
9518
|
*/
|
|
8372
9519
|
internalVerticesMode?: boolean | PipelineRef;
|
|
8373
9520
|
/**
|
|
@@ -8399,19 +9546,30 @@ export interface OperationParams {
|
|
|
8399
9546
|
dracoUnifiedQuantization?: boolean | PipelineRef;
|
|
8400
9547
|
};
|
|
8401
9548
|
/**
|
|
8402
|
-
* Writes
|
|
9549
|
+
* Writes drawing parts into one DXF file and returns its text.
|
|
8403
9550
|
*
|
|
8404
|
-
* `
|
|
8405
|
-
* AC1009
|
|
8406
|
-
* `
|
|
9551
|
+
* `acadVersion` AC1015 (AutoCAD 2000) keeps every curve exact and can state the drawing's `unit`;
|
|
9552
|
+
* AC1009 (R12) suits old software and writes splines and ellipses as polylines within
|
|
9553
|
+
* `curveTolerance`. `fileName` and `tryDownload` matter only where a browser download can start.
|
|
8407
9554
|
*/
|
|
8408
9555
|
"occt.io.dxfCreate": {
|
|
8409
9556
|
/** The parts from `io.dxfPathsWithLayer`, each with its own layer and color. */
|
|
8410
9557
|
pathsParts: unknown[] | PipelineRef;
|
|
8411
|
-
/**
|
|
9558
|
+
/**
|
|
9559
|
+
* How colors are written: `aci`, the nearest of AutoCAD's 255 indexed colors, or `truecolor`,
|
|
9560
|
+
* the exact color beside that index (`AC1015` only).
|
|
9561
|
+
*/
|
|
8412
9562
|
colorFormat?: "aci" | "truecolor" | PipelineRef;
|
|
8413
|
-
/**
|
|
9563
|
+
/**
|
|
9564
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps splines and ellipses exact; `AC1009` (R12), for
|
|
9565
|
+
* old software, writes them as polylines within `curveTolerance`.
|
|
9566
|
+
*/
|
|
8414
9567
|
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
9568
|
+
/**
|
|
9569
|
+
* The largest distance, in model units, between a curve and the polyline that stands in for it
|
|
9570
|
+
* where the version cannot hold the curve exactly.
|
|
9571
|
+
*/
|
|
9572
|
+
curveTolerance?: number | PipelineRef;
|
|
8415
9573
|
/**
|
|
8416
9574
|
* The unit the drawing is in, written into its header so CAD programs open it at true size;
|
|
8417
9575
|
* `AC1015` only. Left out, no unit is stated.
|
|
@@ -8426,10 +9584,10 @@ export interface OperationParams {
|
|
|
8426
9584
|
tryDownload?: boolean | PipelineRef;
|
|
8427
9585
|
};
|
|
8428
9586
|
/**
|
|
8429
|
-
* Puts
|
|
9587
|
+
* Puts drawing paths on a named layer with a color and a line type, making one part of a drawing.
|
|
8430
9588
|
*
|
|
8431
|
-
* A drawing may hold several parts, each with its own layer and
|
|
8432
|
-
* into one file.
|
|
9589
|
+
* A drawing may hold several parts, each with its own layer, color and line type; `dxfCreate`
|
|
9590
|
+
* writes them into one file.
|
|
8433
9591
|
*/
|
|
8434
9592
|
"occt.io.dxfPathsWithLayer": {
|
|
8435
9593
|
/** The paths from `io.shapeToDxfPaths`. */
|
|
@@ -8438,6 +9596,8 @@ export interface OperationParams {
|
|
|
8438
9596
|
layer?: string | PipelineRef;
|
|
8439
9597
|
/** The color of the paths as a hex string such as `#000000`. */
|
|
8440
9598
|
color?: unknown | PipelineRef;
|
|
9599
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
9600
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
8441
9601
|
};
|
|
8442
9602
|
/**
|
|
8443
9603
|
* Reads the unit a STEP or IGES file writes its lengths in, without building its geometry.
|
|
@@ -8476,6 +9636,69 @@ export interface OperationParams {
|
|
|
8476
9636
|
/** The binary BREP file's bytes, or a File or Blob that holds them. */
|
|
8477
9637
|
brepData: unknown | PipelineRef;
|
|
8478
9638
|
};
|
|
9639
|
+
/**
|
|
9640
|
+
* Reads a DXF file into one compound of exact wires, fit-point splines interpolated and block
|
|
9641
|
+
* inserts expanded.
|
|
9642
|
+
*
|
|
9643
|
+
* It lies on the ground, Y along Z (-Z under right-handed conventions) and elevations along Y.
|
|
9644
|
+
* Ends within `joinTolerance` join; `makeFaces` makes faces with holes. A very large file is
|
|
9645
|
+
* read up to its limits; `loadDxfStructured` lists what was left out.
|
|
9646
|
+
*/
|
|
9647
|
+
"occt.io.loadDxf": {
|
|
9648
|
+
/**
|
|
9649
|
+
* The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not
|
|
9650
|
+
* in UTF-8 are read in the header's code page, or Windows-1252.
|
|
9651
|
+
*/
|
|
9652
|
+
dxf: unknown | PipelineRef;
|
|
9653
|
+
/**
|
|
9654
|
+
* When true, closed outlines that lie flat in the drawing become faces, an outline inside
|
|
9655
|
+
* another cutting a hole in it as an even-odd fill does; open outlines stay wires.
|
|
9656
|
+
*/
|
|
9657
|
+
makeFaces?: boolean | PipelineRef;
|
|
9658
|
+
/**
|
|
9659
|
+
* How far apart, in file units, two entities' ends may lie and still join into one wire: at most
|
|
9660
|
+
* 0.001 or a hundredth of the drawing's span, whichever is larger.
|
|
9661
|
+
*/
|
|
9662
|
+
joinTolerance?: number | PipelineRef;
|
|
9663
|
+
/** When true, entities on frozen and switched-off layers are read too. */
|
|
9664
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
9665
|
+
/**
|
|
9666
|
+
* The unit to give the shapes in, scaled from the unit the file states; a file stating none is
|
|
9667
|
+
* read as drawn. Left out, the numbers stay as drawn.
|
|
9668
|
+
*/
|
|
9669
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9670
|
+
};
|
|
9671
|
+
/**
|
|
9672
|
+
* Reads a DXF file as `loadDxf` does, into one shape per layer, color and line type, each with
|
|
9673
|
+
* its layer name, color and line type, plus the file's unit, its version and what was left out.
|
|
9674
|
+
*
|
|
9675
|
+
* Use it to treat the layers apart, such as outlines to cut on one layer and lines to engrave on
|
|
9676
|
+
* another.
|
|
9677
|
+
*/
|
|
9678
|
+
"occt.io.loadDxfStructured": {
|
|
9679
|
+
/**
|
|
9680
|
+
* The DXF file's text, or a File or Blob holding it (ASCII DXF, R12 or later). Older bytes not
|
|
9681
|
+
* in UTF-8 are read in the header's code page, or Windows-1252.
|
|
9682
|
+
*/
|
|
9683
|
+
dxf: unknown | PipelineRef;
|
|
9684
|
+
/**
|
|
9685
|
+
* When true, closed outlines that lie flat in the drawing become faces, an outline inside
|
|
9686
|
+
* another cutting a hole in it as an even-odd fill does; open outlines stay wires.
|
|
9687
|
+
*/
|
|
9688
|
+
makeFaces?: boolean | PipelineRef;
|
|
9689
|
+
/**
|
|
9690
|
+
* How far apart, in file units, two entities' ends may lie and still join into one wire: at most
|
|
9691
|
+
* 0.001 or a hundredth of the drawing's span, whichever is larger.
|
|
9692
|
+
*/
|
|
9693
|
+
joinTolerance?: number | PipelineRef;
|
|
9694
|
+
/** When true, entities on frozen and switched-off layers are read too. */
|
|
9695
|
+
includeHiddenLayers?: boolean | PipelineRef;
|
|
9696
|
+
/**
|
|
9697
|
+
* The unit to give the shapes in, scaled from the unit the file states; a file stating none is
|
|
9698
|
+
* read as drawn. Left out, the numbers stay as drawn.
|
|
9699
|
+
*/
|
|
9700
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9701
|
+
};
|
|
8479
9702
|
/** 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). */
|
|
8480
9703
|
"occt.io.loadSTEPorIGES": {
|
|
8481
9704
|
/** File content: string for plain text files (.step, .stp, .iges, .igs), or base64-encoded ArrayBuffer for compressed files (.stpz, .igz). */
|
|
@@ -8492,7 +9715,7 @@ export interface OperationParams {
|
|
|
8492
9715
|
* that carries the whole mesh.
|
|
8493
9716
|
*
|
|
8494
9717
|
* With `asFaces` true the faces share their corners' edges in a compound that
|
|
8495
|
-
* `shapeFix.sewWithReport` can join into a shell. `
|
|
9718
|
+
* `shapeFix.sewWithReport` can join into a shell. `upAxis` `zUpToYUp` turns Z-up into Y-up, and a file
|
|
8496
9719
|
* without triangles is refused.
|
|
8497
9720
|
*/
|
|
8498
9721
|
"occt.io.loadStl": {
|
|
@@ -8506,7 +9729,15 @@ export interface OperationParams {
|
|
|
8506
9729
|
* one face carries the whole mesh, light to draw but not for modelling.
|
|
8507
9730
|
*/
|
|
8508
9731
|
asFaces?: boolean | PipelineRef;
|
|
8509
|
-
/**
|
|
9732
|
+
/**
|
|
9733
|
+
* Whether the shape turns: `zUpToYUp` turns the file's Z-up into this library's Y-up, and `keep`
|
|
9734
|
+
* leaves the file's axes. `yUpToZUp` is refused.
|
|
9735
|
+
*/
|
|
9736
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
9737
|
+
/**
|
|
9738
|
+
* When false, the shape keeps its axes as `keep` does; true, its old default, decides nothing.
|
|
9739
|
+
* False wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
9740
|
+
*/
|
|
8510
9741
|
adjustZtoY?: boolean | PipelineRef;
|
|
8511
9742
|
};
|
|
8512
9743
|
/**
|
|
@@ -8616,13 +9847,99 @@ export interface OperationParams {
|
|
|
8616
9847
|
*/
|
|
8617
9848
|
withTriangulation?: boolean | PipelineRef;
|
|
8618
9849
|
};
|
|
9850
|
+
/**
|
|
9851
|
+
* Draws the edges a view of a shape sees as a DXF drawing, hidden ones on their own layer when
|
|
9852
|
+
* asked, and starts a browser download of the file.
|
|
9853
|
+
*
|
|
9854
|
+
* The drawing shows the view from the frame's normal side, x along its direction, with every
|
|
9855
|
+
* curve exact. `saveShapeDxfAndReturn` gives the text instead.
|
|
9856
|
+
*/
|
|
9857
|
+
"occt.io.saveShapeDxf": {
|
|
9858
|
+
/** The shape to draw. */
|
|
9859
|
+
shape: unknown | PipelineRef;
|
|
9860
|
+
/**
|
|
9861
|
+
* The view, as in `operations.hiddenLines`: the eye sits on the side the normal points to and
|
|
9862
|
+
* looks back along it, and the drawing's x runs along the direction.
|
|
9863
|
+
*/
|
|
9864
|
+
frame: unknown | PipelineRef;
|
|
9865
|
+
/**
|
|
9866
|
+
* When true, the edges other faces cover are drawn too, on the layer `hidden` with the
|
|
9867
|
+
* `HIDDEN` line type.
|
|
9868
|
+
*/
|
|
9869
|
+
drawHidden?: boolean | PipelineRef;
|
|
9870
|
+
/**
|
|
9871
|
+
* How far the view may stray from the shape, in model units: the tolerance of the hidden-line
|
|
9872
|
+
* removal, and of the polylines that stand in for curves in `AC1009`.
|
|
9873
|
+
*/
|
|
9874
|
+
precision?: number | PipelineRef;
|
|
9875
|
+
/**
|
|
9876
|
+
* The unit the shape is modelled in, written into the file so CAD programs open it at true
|
|
9877
|
+
* size; `AC1015` only.
|
|
9878
|
+
*/
|
|
9879
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9880
|
+
/**
|
|
9881
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps every curve exact; `AC1009` (R12) writes
|
|
9882
|
+
* splines and ellipses as polylines.
|
|
9883
|
+
*/
|
|
9884
|
+
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
9885
|
+
/** The name the downloaded file gets. */
|
|
9886
|
+
fileName?: string | PipelineRef;
|
|
9887
|
+
/**
|
|
9888
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
9889
|
+
* itself only returns the text.
|
|
9890
|
+
*/
|
|
9891
|
+
tryDownload?: boolean | PipelineRef;
|
|
9892
|
+
};
|
|
9893
|
+
/**
|
|
9894
|
+
* Draws the edges a view of a shape sees as DXF, hidden ones on their own layer when asked, and
|
|
9895
|
+
* returns the file's text.
|
|
9896
|
+
*
|
|
9897
|
+
* The view looks from the frame's normal side, x along the frame's direction. Curves stay exact;
|
|
9898
|
+
* hidden edges go on the layer `hidden` with the `HIDDEN` line type.
|
|
9899
|
+
*/
|
|
9900
|
+
"occt.io.saveShapeDxfAndReturn": {
|
|
9901
|
+
/** The shape to draw. */
|
|
9902
|
+
shape: unknown | PipelineRef;
|
|
9903
|
+
/**
|
|
9904
|
+
* The view, as in `operations.hiddenLines`: the eye sits on the side the normal points to and
|
|
9905
|
+
* looks back along it, and the drawing's x runs along the direction.
|
|
9906
|
+
*/
|
|
9907
|
+
frame: unknown | PipelineRef;
|
|
9908
|
+
/**
|
|
9909
|
+
* When true, the edges other faces cover are drawn too, on the layer `hidden` with the
|
|
9910
|
+
* `HIDDEN` line type.
|
|
9911
|
+
*/
|
|
9912
|
+
drawHidden?: boolean | PipelineRef;
|
|
9913
|
+
/**
|
|
9914
|
+
* How far the view may stray from the shape, in model units: the tolerance of the hidden-line
|
|
9915
|
+
* removal, and of the polylines that stand in for curves in `AC1009`.
|
|
9916
|
+
*/
|
|
9917
|
+
precision?: number | PipelineRef;
|
|
9918
|
+
/**
|
|
9919
|
+
* The unit the shape is modelled in, written into the file so CAD programs open it at true
|
|
9920
|
+
* size; `AC1015` only.
|
|
9921
|
+
*/
|
|
9922
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
9923
|
+
/**
|
|
9924
|
+
* The DXF version: `AC1015` (AutoCAD 2000) keeps every curve exact; `AC1009` (R12) writes
|
|
9925
|
+
* splines and ellipses as polylines.
|
|
9926
|
+
*/
|
|
9927
|
+
acadVersion?: "AC1009" | "AC1015" | PipelineRef;
|
|
9928
|
+
/** The name the downloaded file gets. */
|
|
9929
|
+
fileName?: string | PipelineRef;
|
|
9930
|
+
/**
|
|
9931
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
9932
|
+
* itself only returns the text.
|
|
9933
|
+
*/
|
|
9934
|
+
tryDownload?: boolean | PipelineRef;
|
|
9935
|
+
};
|
|
8619
9936
|
/**
|
|
8620
9937
|
* Triangulates a shape, writes it as OBJ, the mesh format most 3D programs read, and starts a
|
|
8621
9938
|
* browser download of the file.
|
|
8622
9939
|
*
|
|
8623
|
-
* `precision` is the meshing tolerance in model units
|
|
8624
|
-
*
|
|
8625
|
-
*
|
|
9940
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
9941
|
+
* what the screen shows, Z-up under `yUpToZUp`. The file name may hold no spaces or slashes;
|
|
9942
|
+
* `saveShapeObjAndReturn` gives the text instead.
|
|
8626
9943
|
*/
|
|
8627
9944
|
"occt.io.saveShapeObj": {
|
|
8628
9945
|
/** The shape written to the file. */
|
|
@@ -8638,8 +9955,13 @@ export interface OperationParams {
|
|
|
8638
9955
|
*/
|
|
8639
9956
|
precision?: number | PipelineRef;
|
|
8640
9957
|
/**
|
|
8641
|
-
*
|
|
8642
|
-
*
|
|
9958
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
9959
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
9960
|
+
*/
|
|
9961
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
9962
|
+
/**
|
|
9963
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
9964
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8643
9965
|
*/
|
|
8644
9966
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8645
9967
|
/**
|
|
@@ -8652,9 +9974,10 @@ export interface OperationParams {
|
|
|
8652
9974
|
* Triangulates a shape and writes it as OBJ, the mesh format most 3D programs read, returning
|
|
8653
9975
|
* the file's text.
|
|
8654
9976
|
*
|
|
8655
|
-
* `precision` is the meshing tolerance in model units
|
|
8656
|
-
*
|
|
8657
|
-
* carries no colors; `assembly.manager.exportDocumentToObj` writes colored
|
|
9977
|
+
* `precision` is the meshing tolerance in model units and coordinates keep six decimals. With
|
|
9978
|
+
* the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`. `mtl` stays
|
|
9979
|
+
* empty, since a shape carries no colors; `assembly.manager.exportDocumentToObj` writes colored
|
|
9980
|
+
* parts.
|
|
8658
9981
|
*/
|
|
8659
9982
|
"occt.io.saveShapeObjAndReturn": {
|
|
8660
9983
|
/** The shape written to the file. */
|
|
@@ -8670,8 +9993,13 @@ export interface OperationParams {
|
|
|
8670
9993
|
*/
|
|
8671
9994
|
precision?: number | PipelineRef;
|
|
8672
9995
|
/**
|
|
8673
|
-
*
|
|
8674
|
-
*
|
|
9996
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
9997
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
9998
|
+
*/
|
|
9999
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10000
|
+
/**
|
|
10001
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10002
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8675
10003
|
*/
|
|
8676
10004
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8677
10005
|
/**
|
|
@@ -8684,9 +10012,9 @@ export interface OperationParams {
|
|
|
8684
10012
|
* Triangulates a shape, writes it as ASCII PLY with a normal per vertex, and starts a browser
|
|
8685
10013
|
* download of the file.
|
|
8686
10014
|
*
|
|
8687
|
-
* `precision` is the meshing tolerance in model units
|
|
8688
|
-
*
|
|
8689
|
-
* `saveShapePlyAndReturn` gives the text instead.
|
|
10015
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
10016
|
+
* what the screen shows, Z-up under `yUpToZUp`. `fileName` names the download and
|
|
10017
|
+
* `tryDownload` false skips it; `saveShapePlyAndReturn` gives the text instead.
|
|
8690
10018
|
*/
|
|
8691
10019
|
"occt.io.saveShapePly": {
|
|
8692
10020
|
/** The shape written to the file. */
|
|
@@ -8699,8 +10027,13 @@ export interface OperationParams {
|
|
|
8699
10027
|
*/
|
|
8700
10028
|
precision?: number | PipelineRef;
|
|
8701
10029
|
/**
|
|
8702
|
-
*
|
|
8703
|
-
*
|
|
10030
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
10031
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
10032
|
+
*/
|
|
10033
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10034
|
+
/**
|
|
10035
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10036
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8704
10037
|
*/
|
|
8705
10038
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8706
10039
|
/**
|
|
@@ -8714,8 +10047,8 @@ export interface OperationParams {
|
|
|
8714
10047
|
* scanning tools read, returning the file's text.
|
|
8715
10048
|
*
|
|
8716
10049
|
* Coordinates keep six significant digits, so past 1000 units they keep two decimals.
|
|
8717
|
-
* `precision` is the meshing tolerance in model units
|
|
8718
|
-
*
|
|
10050
|
+
* `precision` is the meshing tolerance in model units. With the conventions set the file shows
|
|
10051
|
+
* what the screen shows, Z-up under `yUpToZUp`.
|
|
8719
10052
|
*/
|
|
8720
10053
|
"occt.io.saveShapePlyAndReturn": {
|
|
8721
10054
|
/** The shape written to the file. */
|
|
@@ -8728,8 +10061,13 @@ export interface OperationParams {
|
|
|
8728
10061
|
*/
|
|
8729
10062
|
precision?: number | PipelineRef;
|
|
8730
10063
|
/**
|
|
8731
|
-
*
|
|
8732
|
-
*
|
|
10064
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
10065
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
10066
|
+
*/
|
|
10067
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10068
|
+
/**
|
|
10069
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10070
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8733
10071
|
*/
|
|
8734
10072
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8735
10073
|
/**
|
|
@@ -8742,9 +10080,9 @@ export interface OperationParams {
|
|
|
8742
10080
|
* Writes a shape as STEP, the exchange format for exact CAD geometry, and starts a browser
|
|
8743
10081
|
* download of the file.
|
|
8744
10082
|
*
|
|
8745
|
-
* With `
|
|
8746
|
-
*
|
|
8747
|
-
*
|
|
10083
|
+
* With `upAxis` `yUpToZUp` the file is Z-up: with the conventions set it shows what the screen
|
|
10084
|
+
* shows, without them Y and Z are swapped. The file is in millimetres;
|
|
10085
|
+
* `saveShapeSTEPAndReturn` returns the text.
|
|
8748
10086
|
*/
|
|
8749
10087
|
"occt.io.saveShapeSTEP": {
|
|
8750
10088
|
/** The shape written to the file. */
|
|
@@ -8752,13 +10090,18 @@ export interface OperationParams {
|
|
|
8752
10090
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
8753
10091
|
fileName?: string | PipelineRef;
|
|
8754
10092
|
/**
|
|
8755
|
-
*
|
|
8756
|
-
*
|
|
10093
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
10094
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
10095
|
+
*/
|
|
10096
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10097
|
+
/**
|
|
10098
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10099
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8757
10100
|
*/
|
|
8758
10101
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8759
10102
|
/**
|
|
8760
|
-
* When true,
|
|
8761
|
-
*
|
|
10103
|
+
* When true, `upAxis` `yUpToZUp` turns the shape 90 degrees about X instead of swapping, for a
|
|
10104
|
+
* right-handed scene.
|
|
8762
10105
|
*/
|
|
8763
10106
|
fromRightHanded?: boolean | PipelineRef;
|
|
8764
10107
|
/**
|
|
@@ -8775,8 +10118,8 @@ export interface OperationParams {
|
|
|
8775
10118
|
/**
|
|
8776
10119
|
* Writes a shape as STEP, the exchange format for exact CAD geometry, and returns its text.
|
|
8777
10120
|
*
|
|
8778
|
-
* With `
|
|
8779
|
-
*
|
|
10121
|
+
* With `upAxis` `yUpToZUp` the file is Z-up, as CAD programs expect: with the conventions set it
|
|
10122
|
+
* shows what the screen shows, and without them Y and Z are swapped. The file is in
|
|
8780
10123
|
* millimetres, a shape in another `unit` scaled to them.
|
|
8781
10124
|
*/
|
|
8782
10125
|
"occt.io.saveShapeSTEPAndReturn": {
|
|
@@ -8785,13 +10128,18 @@ export interface OperationParams {
|
|
|
8785
10128
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
8786
10129
|
fileName?: string | PipelineRef;
|
|
8787
10130
|
/**
|
|
8788
|
-
*
|
|
8789
|
-
*
|
|
10131
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
10132
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
10133
|
+
*/
|
|
10134
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10135
|
+
/**
|
|
10136
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10137
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8790
10138
|
*/
|
|
8791
10139
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8792
10140
|
/**
|
|
8793
|
-
* When true,
|
|
8794
|
-
*
|
|
10141
|
+
* When true, `upAxis` `yUpToZUp` turns the shape 90 degrees about X instead of swapping, for a
|
|
10142
|
+
* right-handed scene.
|
|
8795
10143
|
*/
|
|
8796
10144
|
fromRightHanded?: boolean | PipelineRef;
|
|
8797
10145
|
/**
|
|
@@ -8809,9 +10157,9 @@ export interface OperationParams {
|
|
|
8809
10157
|
* Triangulates a shape, writes it as STL, the mesh format 3D printers read, and starts a browser
|
|
8810
10158
|
* download of the file.
|
|
8811
10159
|
*
|
|
8812
|
-
* `precision` is the meshing tolerance in model units
|
|
8813
|
-
*
|
|
8814
|
-
*
|
|
10160
|
+
* `precision` is the meshing tolerance in model units and `binary` writes the smaller binary
|
|
10161
|
+
* form. With the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`.
|
|
10162
|
+
* `saveShapeStlAndReturn` gives the file instead.
|
|
8815
10163
|
*/
|
|
8816
10164
|
"occt.io.saveShapeStl": {
|
|
8817
10165
|
/** The shape written to the file. */
|
|
@@ -8824,8 +10172,13 @@ export interface OperationParams {
|
|
|
8824
10172
|
*/
|
|
8825
10173
|
precision?: number | PipelineRef;
|
|
8826
10174
|
/**
|
|
8827
|
-
*
|
|
8828
|
-
*
|
|
10175
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
10176
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
10177
|
+
*/
|
|
10178
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10179
|
+
/**
|
|
10180
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10181
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8829
10182
|
*/
|
|
8830
10183
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8831
10184
|
/**
|
|
@@ -8840,12 +10193,12 @@ export interface OperationParams {
|
|
|
8840
10193
|
binary?: boolean | PipelineRef;
|
|
8841
10194
|
};
|
|
8842
10195
|
/**
|
|
8843
|
-
* Triangulates a shape and writes it as STL, the mesh format 3D printers
|
|
8844
|
-
*
|
|
10196
|
+
* Triangulates a shape and writes it as STL, the mesh format 3D printers read, returning its
|
|
10197
|
+
* text, or its bytes when `binary` is true.
|
|
8845
10198
|
*
|
|
8846
|
-
* `precision` is the meshing tolerance in model units
|
|
8847
|
-
*
|
|
8848
|
-
* `tryDownload` matter only for a download.
|
|
10199
|
+
* `precision` is the meshing tolerance in model units, smaller following curves more closely.
|
|
10200
|
+
* With the conventions set the file shows what the screen shows, Z-up under `yUpToZUp`.
|
|
10201
|
+
* `fileName` and `tryDownload` matter only for a download.
|
|
8849
10202
|
*/
|
|
8850
10203
|
"occt.io.saveShapeStlAndReturn": {
|
|
8851
10204
|
/** The shape written to the file. */
|
|
@@ -8858,8 +10211,13 @@ export interface OperationParams {
|
|
|
8858
10211
|
*/
|
|
8859
10212
|
precision?: number | PipelineRef;
|
|
8860
10213
|
/**
|
|
8861
|
-
*
|
|
8862
|
-
*
|
|
10214
|
+
* `yUpToZUp` writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set;
|
|
10215
|
+
* `keep` writes the model's axes. `zUpToYUp` is refused.
|
|
10216
|
+
*/
|
|
10217
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
10218
|
+
/**
|
|
10219
|
+
* When true, the file is turned as `upAxis` `yUpToZUp` does; false, its old default, decides
|
|
10220
|
+
* nothing. True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
8863
10221
|
*/
|
|
8864
10222
|
adjustYtoZ?: boolean | PipelineRef;
|
|
8865
10223
|
/**
|
|
@@ -8877,8 +10235,8 @@ export interface OperationParams {
|
|
|
8877
10235
|
* Draws the edges a view of a shape sees as an SVG drawing, with the hidden edges dashed when
|
|
8878
10236
|
* asked, and starts a browser download of the file.
|
|
8879
10237
|
*
|
|
8880
|
-
* The drawing shows the view from the frame's normal side, x along its direction;
|
|
8881
|
-
*
|
|
10238
|
+
* The drawing shows the view from the frame's normal side, x along its direction; curves stay
|
|
10239
|
+
* exact where SVG can draw them. `saveShapeSvgAndReturn` gives the text instead.
|
|
8882
10240
|
*/
|
|
8883
10241
|
"occt.io.saveShapeSvg": {
|
|
8884
10242
|
/** The shape to draw. */
|
|
@@ -8891,8 +10249,8 @@ export interface OperationParams {
|
|
|
8891
10249
|
/** When true, the edges other faces cover are drawn too, dashed. */
|
|
8892
10250
|
drawHidden?: boolean | PipelineRef;
|
|
8893
10251
|
/**
|
|
8894
|
-
* How far the
|
|
8895
|
-
*
|
|
10252
|
+
* How far the view may stray from the shape, in model units: the tolerance of hidden-line
|
|
10253
|
+
* removal and of the cubics that stand in for curves SVG cannot draw.
|
|
8896
10254
|
*/
|
|
8897
10255
|
precision?: number | PipelineRef;
|
|
8898
10256
|
/**
|
|
@@ -8912,9 +10270,9 @@ export interface OperationParams {
|
|
|
8912
10270
|
* Draws the edges a view of a shape sees as SVG, hidden ones dashed when asked, and returns the
|
|
8913
10271
|
* file's text.
|
|
8914
10272
|
*
|
|
8915
|
-
* The view looks from the frame's normal side, x along the frame's direction
|
|
8916
|
-
*
|
|
8917
|
-
*
|
|
10273
|
+
* The view looks from the frame's normal side, x along the frame's direction. Curves stay exact
|
|
10274
|
+
* where SVG can draw them, others become cubics within `precision`; with the shape's `unit`, the
|
|
10275
|
+
* file states its true size.
|
|
8918
10276
|
*/
|
|
8919
10277
|
"occt.io.saveShapeSvgAndReturn": {
|
|
8920
10278
|
/** The shape to draw. */
|
|
@@ -8927,8 +10285,8 @@ export interface OperationParams {
|
|
|
8927
10285
|
/** When true, the edges other faces cover are drawn too, dashed. */
|
|
8928
10286
|
drawHidden?: boolean | PipelineRef;
|
|
8929
10287
|
/**
|
|
8930
|
-
* How far the
|
|
8931
|
-
*
|
|
10288
|
+
* How far the view may stray from the shape, in model units: the tolerance of hidden-line
|
|
10289
|
+
* removal and of the cubics that stand in for curves SVG cannot draw.
|
|
8932
10290
|
*/
|
|
8933
10291
|
precision?: number | PipelineRef;
|
|
8934
10292
|
/**
|
|
@@ -8945,14 +10303,17 @@ export interface OperationParams {
|
|
|
8945
10303
|
tryDownload?: boolean | PipelineRef;
|
|
8946
10304
|
};
|
|
8947
10305
|
/**
|
|
8948
|
-
* Turns the wires of a shape into
|
|
10306
|
+
* Turns the wires of a shape into drawing paths, the first step of a 2D DXF export.
|
|
8949
10307
|
*
|
|
8950
|
-
* The shape
|
|
8951
|
-
*
|
|
8952
|
-
* `dxfPathsWithLayer` and write
|
|
10308
|
+
* The shape is seen along Y: X stays X and Z becomes the drawing's Y (-Z under right-handed
|
|
10309
|
+
* conventions). Curves stay exact unless `exactCurves` is off. Give the paths a layer with
|
|
10310
|
+
* `dxfPathsWithLayer` and write them with `dxfCreate`.
|
|
8953
10311
|
*/
|
|
8954
10312
|
"occt.io.shapeToDxfPaths": {
|
|
8955
|
-
/**
|
|
10313
|
+
/**
|
|
10314
|
+
* The shape whose wires are traced, seen along Y: X stays X and Z becomes the drawing's Y (-Z
|
|
10315
|
+
* under right-handed conventions), so a flat shape keeps its size.
|
|
10316
|
+
*/
|
|
8956
10317
|
shape: unknown | PipelineRef;
|
|
8957
10318
|
/**
|
|
8958
10319
|
* The largest angle, in radians, the traced polyline may turn between two points; smaller
|
|
@@ -8970,6 +10331,64 @@ export interface OperationParams {
|
|
|
8970
10331
|
uTolerance?: number | PipelineRef;
|
|
8971
10332
|
/** Edges shorter than this, in model units, are traced with the minimum number of points. */
|
|
8972
10333
|
minimumLength?: number | PipelineRef;
|
|
10334
|
+
/**
|
|
10335
|
+
* When true, ellipses and splines stay exact, and other curves become cubic splines within
|
|
10336
|
+
* `curvatureDeflection`; when false, curves other than lines and circles are traced as points.
|
|
10337
|
+
*/
|
|
10338
|
+
exactCurves?: boolean | PipelineRef;
|
|
10339
|
+
};
|
|
10340
|
+
/**
|
|
10341
|
+
* Draws layers of shapes into one SVG file and returns its text.
|
|
10342
|
+
*
|
|
10343
|
+
* Each layer becomes an Inkscape layer. The shapes are seen along Y: X stays X and Z becomes the
|
|
10344
|
+
* drawing's Y (-Z under right-handed conventions). Curves stay exact where SVG can draw them and
|
|
10345
|
+
* become cubics within `tolerance` elsewhere; with `unit` the file has its true size.
|
|
10346
|
+
*/
|
|
10347
|
+
"occt.io.svgCreate": {
|
|
10348
|
+
/** The layers from `io.svgLayer`; each becomes a group Inkscape reads as a layer. */
|
|
10349
|
+
layers: unknown[] | PipelineRef;
|
|
10350
|
+
/**
|
|
10351
|
+
* The unit the shapes are modelled in, which gives the file its true width and height. Left out,
|
|
10352
|
+
* the file states no size and viewers fit it to the window.
|
|
10353
|
+
*/
|
|
10354
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
10355
|
+
/**
|
|
10356
|
+
* How wide the lines are, in model units. Left out, a five-hundredth of the drawing's larger
|
|
10357
|
+
* side.
|
|
10358
|
+
*/
|
|
10359
|
+
strokeWidth?: number | PipelineRef;
|
|
10360
|
+
/**
|
|
10361
|
+
* The empty border around the drawing, in model units. Left out, a fortieth of the drawing's
|
|
10362
|
+
* larger side.
|
|
10363
|
+
*/
|
|
10364
|
+
margin?: number | PipelineRef;
|
|
10365
|
+
/**
|
|
10366
|
+
* The largest distance, in model units, between a curve SVG cannot draw exactly and the cubic
|
|
10367
|
+
* curves that stand in for it.
|
|
10368
|
+
*/
|
|
10369
|
+
tolerance?: number | PipelineRef;
|
|
10370
|
+
/** The name the downloaded file gets. */
|
|
10371
|
+
fileName?: string | PipelineRef;
|
|
10372
|
+
/**
|
|
10373
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
10374
|
+
* itself only returns the text.
|
|
10375
|
+
*/
|
|
10376
|
+
tryDownload?: boolean | PipelineRef;
|
|
10377
|
+
};
|
|
10378
|
+
/**
|
|
10379
|
+
* Puts shapes on a named layer with a color and a line type, making one layer of an SVG drawing.
|
|
10380
|
+
*
|
|
10381
|
+
* The shapes are kept as they are; `svgCreate` draws their wires when it writes the file.
|
|
10382
|
+
*/
|
|
10383
|
+
"occt.io.svgLayer": {
|
|
10384
|
+
/** The shapes whose wires are drawn on this layer. */
|
|
10385
|
+
shapes: unknown[] | PipelineRef;
|
|
10386
|
+
/** The name of the layer, the group Inkscape shows for it. */
|
|
10387
|
+
layer?: string | PipelineRef;
|
|
10388
|
+
/** The color of the lines as a hex string such as `#000000`. */
|
|
10389
|
+
color?: unknown | PipelineRef;
|
|
10390
|
+
/** Whether the lines are whole or dashed, such as `hidden` for edges a view cannot see. */
|
|
10391
|
+
lineType?: "continuous" | "dashed" | "hidden" | "center" | "dotted" | PipelineRef;
|
|
8973
10392
|
};
|
|
8974
10393
|
/**
|
|
8975
10394
|
* Reads the center of a shape's axis-aligned bounding box, halfway between its two corners.
|
|
@@ -9184,6 +10603,41 @@ export interface OperationParams {
|
|
|
9184
10603
|
/** The direction and distance of the sweep as one vector, in model units. */
|
|
9185
10604
|
direction?: [number, number, number] | PipelineRef;
|
|
9186
10605
|
};
|
|
10606
|
+
/**
|
|
10607
|
+
* Cuts shapes with the plane of a frame and hatches the cut faces in one call: for each shape its
|
|
10608
|
+
* cut faces, their hatch lines as edges, and each face's hatch as drawing data in the frame's
|
|
10609
|
+
* coordinates.
|
|
10610
|
+
*
|
|
10611
|
+
* The hatches write to DXF or SVG beside `hiddenLines` of the same frame, and `bitbybit.draw`
|
|
10612
|
+
* draws the result. Experimental.
|
|
10613
|
+
*/
|
|
10614
|
+
"occt.operations.hatchedSectionByFrame": {
|
|
10615
|
+
/** The shapes to cut, such as the parts of an assembly; each gives its own cut faces. */
|
|
10616
|
+
shapes: unknown[] | PipelineRef;
|
|
10617
|
+
/**
|
|
10618
|
+
* The plane to cut along, through the frame's origin square to its normal, which points at the
|
|
10619
|
+
* side taken away; the hatch data takes its direction as X.
|
|
10620
|
+
*/
|
|
10621
|
+
frame: unknown | PipelineRef;
|
|
10622
|
+
/** What the cut faces are filled with: single lines, pairs, crossed lines or solid ink. */
|
|
10623
|
+
pattern?: "solid" | "ansi31" | "ansi32" | "ansi37" | PipelineRef;
|
|
10624
|
+
/** The angle of the hatch lines in degrees, counterclockwise from the frame's direction. */
|
|
10625
|
+
angle?: number | PipelineRef;
|
|
10626
|
+
/** The distance between the hatch lines, in model units. */
|
|
10627
|
+
spacing?: number | PipelineRef;
|
|
10628
|
+
/**
|
|
10629
|
+
* When true, a shape whose cut faces come within `spacing` of an earlier shape's is hatched at
|
|
10630
|
+
* another angle, `angle` plus 90, 30, 120, 60 or 150.
|
|
10631
|
+
*/
|
|
10632
|
+
neighbourAngles?: boolean | PipelineRef;
|
|
10633
|
+
/**
|
|
10634
|
+
* How far, in model units, a curved cut edge may stray from the straight pieces the hatch lines
|
|
10635
|
+
* are clipped against.
|
|
10636
|
+
*/
|
|
10637
|
+
curveTolerance?: number | PipelineRef;
|
|
10638
|
+
/** How close the ends of two section edges must lie to be joined into one wire, in model units. */
|
|
10639
|
+
tolerance?: number | PipelineRef;
|
|
10640
|
+
};
|
|
9187
10641
|
/**
|
|
9188
10642
|
* Draws a shape seen from a view frame as a technical drawing does, flat on the XZ plane: the
|
|
9189
10643
|
* edges the eye sees and those that faces hide.
|
|
@@ -9210,8 +10664,55 @@ export interface OperationParams {
|
|
|
9210
10664
|
*/
|
|
9211
10665
|
smoothEdges?: boolean | PipelineRef;
|
|
9212
10666
|
/**
|
|
9213
|
-
* When true, the edges that faces cover are
|
|
9214
|
-
* empty.
|
|
10667
|
+
* When true, the edges that faces cover are drawn too; when false, the hidden part of the
|
|
10668
|
+
* result stays empty.
|
|
10669
|
+
*/
|
|
10670
|
+
hiddenEdges?: boolean | PipelineRef;
|
|
10671
|
+
/**
|
|
10672
|
+
* How far the eye sits from the frame's origin along its normal for a perspective, in model
|
|
10673
|
+
* units; 0 draws a parallel view. A perspective needs `exact`.
|
|
10674
|
+
*/
|
|
10675
|
+
focus?: number | PipelineRef;
|
|
10676
|
+
/**
|
|
10677
|
+
* The meshing tolerance in model units when `exact` is false; a smaller value follows curved
|
|
10678
|
+
* faces more closely.
|
|
10679
|
+
*/
|
|
10680
|
+
precision?: number | PipelineRef;
|
|
10681
|
+
/**
|
|
10682
|
+
* When true, the drawing is tidied: a curve seen edge-on becomes a line, and a hidden edge
|
|
10683
|
+
* lying wholly under other edges is left out.
|
|
10684
|
+
*/
|
|
10685
|
+
tidy?: boolean | PipelineRef;
|
|
10686
|
+
};
|
|
10687
|
+
/**
|
|
10688
|
+
* Draws a shape as `hiddenLines` does, with the edges sorted by kind, so a drawing can give
|
|
10689
|
+
* each its own line weight.
|
|
10690
|
+
*
|
|
10691
|
+
* `sharp` holds the edges where faces meet at an angle, `outline` the silhouettes of curved
|
|
10692
|
+
* faces and `smooth` the edges where faces meet without a crease; `hiddenSharp`,
|
|
10693
|
+
* `hiddenOutline` and `hiddenSmooth` hold the same where faces cover them.
|
|
10694
|
+
*/
|
|
10695
|
+
"occt.operations.hiddenLinesByKind": {
|
|
10696
|
+
/** The shape to draw. */
|
|
10697
|
+
shape: unknown | PipelineRef;
|
|
10698
|
+
/**
|
|
10699
|
+
* The view: the eye sits on the side the normal points to and looks back along it, and the
|
|
10700
|
+
* drawing's x runs along the direction from the frame's origin.
|
|
10701
|
+
*/
|
|
10702
|
+
frame: unknown | PipelineRef;
|
|
10703
|
+
/**
|
|
10704
|
+
* When true, the drawing is made from the exact geometry; when false, from a mesh, which is
|
|
10705
|
+
* faster and draws parallel views only.
|
|
10706
|
+
*/
|
|
10707
|
+
exact?: boolean | PipelineRef;
|
|
10708
|
+
/**
|
|
10709
|
+
* When true, the edges where faces meet without a crease, such as the borders of a fillet, are
|
|
10710
|
+
* drawn too.
|
|
10711
|
+
*/
|
|
10712
|
+
smoothEdges?: boolean | PipelineRef;
|
|
10713
|
+
/**
|
|
10714
|
+
* When true, the edges that faces cover are drawn too; when false, the hidden part of the
|
|
10715
|
+
* result stays empty.
|
|
9215
10716
|
*/
|
|
9216
10717
|
hiddenEdges?: boolean | PipelineRef;
|
|
9217
10718
|
/**
|
|
@@ -9224,6 +10725,11 @@ export interface OperationParams {
|
|
|
9224
10725
|
* faces more closely.
|
|
9225
10726
|
*/
|
|
9226
10727
|
precision?: number | PipelineRef;
|
|
10728
|
+
/**
|
|
10729
|
+
* When true, the drawing is tidied: a curve seen edge-on becomes a line, and a hidden edge
|
|
10730
|
+
* lying wholly under other edges is left out.
|
|
10731
|
+
*/
|
|
10732
|
+
tidy?: boolean | PipelineRef;
|
|
9227
10733
|
};
|
|
9228
10734
|
/**
|
|
9229
10735
|
* Builds a surface through a series of wires, like skin stretched over ribs: each wire is one
|
|
@@ -12390,8 +13896,13 @@ export interface OperationParams {
|
|
|
12390
13896
|
*/
|
|
12391
13897
|
recipe: unknown | PipelineRef;
|
|
12392
13898
|
/**
|
|
12393
|
-
*
|
|
12394
|
-
*
|
|
13899
|
+
* `zUpToYUp` turns each shape a quarter turn about X so the recipe's Z points along Y, and
|
|
13900
|
+
* `(x, y, z)` becomes `(x, z, -y)`; `keep` leaves them. `yUpToZUp` is refused.
|
|
13901
|
+
*/
|
|
13902
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
13903
|
+
/**
|
|
13904
|
+
* When true, the shapes turn as `upAxis` `zUpToYUp` does; false, its old default, decides nothing.
|
|
13905
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
12395
13906
|
*/
|
|
12396
13907
|
adjustZtoY?: boolean | PipelineRef;
|
|
12397
13908
|
/**
|
|
@@ -12918,8 +14429,8 @@ export interface OperationParams {
|
|
|
12918
14429
|
* faces.
|
|
12919
14430
|
*
|
|
12920
14431
|
* `precision` is the meshing tolerance in model units: smaller values follow curved surfaces
|
|
12921
|
-
* more closely and give more triangles. `
|
|
12922
|
-
*
|
|
14432
|
+
* more closely and give more triangles. `upAxis` `yUpToZUp` makes the points Z-up for tools that treat
|
|
14433
|
+
* Z as up, and `reversedPoints` flips the winding of each triangle.
|
|
12923
14434
|
*/
|
|
12924
14435
|
"occt.shapeFacesToPolygonPoints": {
|
|
12925
14436
|
/** The shape to triangulate. */
|
|
@@ -12930,8 +14441,13 @@ export interface OperationParams {
|
|
|
12930
14441
|
*/
|
|
12931
14442
|
precision?: number | PipelineRef;
|
|
12932
14443
|
/**
|
|
12933
|
-
*
|
|
12934
|
-
*
|
|
14444
|
+
* `yUpToZUp` makes the points Z-up for tools that treat Z as up, turned about X when right-handed,
|
|
14445
|
+
* else with Y and Z swapped; `keep` leaves them. `zUpToYUp` is refused.
|
|
14446
|
+
*/
|
|
14447
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
14448
|
+
/**
|
|
14449
|
+
* When true, the points turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
14450
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
12935
14451
|
*/
|
|
12936
14452
|
adjustYtoZ?: boolean | PipelineRef;
|
|
12937
14453
|
/**
|
|
@@ -18061,8 +19577,13 @@ export interface OperationParams {
|
|
|
18061
19577
|
*/
|
|
18062
19578
|
precisionShare?: number | PipelineRef;
|
|
18063
19579
|
/**
|
|
18064
|
-
*
|
|
18065
|
-
*
|
|
19580
|
+
* `yUpToZUp` makes the meshes Z-up for tools that treat Z as up, turned about X when right-handed,
|
|
19581
|
+
* else with Y and Z swapped; `keep` leaves them. `zUpToYUp` is refused.
|
|
19582
|
+
*/
|
|
19583
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
19584
|
+
/**
|
|
19585
|
+
* When true, the meshes turn as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
19586
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
18066
19587
|
*/
|
|
18067
19588
|
adjustYtoZ?: boolean | PipelineRef;
|
|
18068
19589
|
/**
|
|
@@ -18152,8 +19673,13 @@ export interface OperationParams {
|
|
|
18152
19673
|
*/
|
|
18153
19674
|
precisionShare?: number | PipelineRef;
|
|
18154
19675
|
/**
|
|
18155
|
-
*
|
|
18156
|
-
*
|
|
19676
|
+
* `yUpToZUp` makes the mesh Z-up for tools that treat Z as up, turned about X when right-handed,
|
|
19677
|
+
* else with Y and Z swapped; `keep` leaves it. `zUpToYUp` is refused.
|
|
19678
|
+
*/
|
|
19679
|
+
upAxis?: "keep" | "zUpToYUp" | "yUpToZUp" | PipelineRef;
|
|
19680
|
+
/**
|
|
19681
|
+
* When true, the mesh turns as `upAxis` `yUpToZUp` does; false, its old default, decides nothing.
|
|
19682
|
+
* True wins over `upAxis` at its default; beside another chosen turn it is refused.
|
|
18157
19683
|
*/
|
|
18158
19684
|
adjustYtoZ?: boolean | PipelineRef;
|
|
18159
19685
|
/**
|
|
@@ -18478,20 +20004,19 @@ export interface OperationParams {
|
|
|
18478
20004
|
makeFace?: boolean | PipelineRef;
|
|
18479
20005
|
};
|
|
18480
20006
|
/**
|
|
18481
|
-
* Parses an SVG document
|
|
18482
|
-
* ground plane, ready to draw, extrude or transform as a whole.
|
|
20007
|
+
* Parses an SVG document into one compound on the ground, ready to draw, extrude or transform.
|
|
18483
20008
|
*
|
|
18484
|
-
* `faceStrategy` decides
|
|
18485
|
-
* units and its downward Y
|
|
18486
|
-
*
|
|
20009
|
+
* `faceStrategy` decides which closed outlines become faces; `unit`, `scale` and `flipY` map SVG
|
|
20010
|
+
* units and its downward Y; `alignment`, `direction`, `center` and `keepOrigin` place it. A very
|
|
20011
|
+
* large file is read up to its limits; `loadSVGStructured` lists what was left out.
|
|
18487
20012
|
*/
|
|
18488
20013
|
"occt.svg.loadSVG": {
|
|
18489
20014
|
/** The text of the SVG document. */
|
|
18490
20015
|
svg?: string | PipelineRef;
|
|
18491
20016
|
/**
|
|
18492
|
-
* How filled shapes become faces: `none` keeps
|
|
18493
|
-
*
|
|
18494
|
-
*
|
|
20017
|
+
* How filled shapes become faces: `none` keeps wires, `auto` follows each element's fill rule,
|
|
20018
|
+
* `nonzero` and `evenOdd` force one, `perSubpath` faces each closed subpath alone. Open subpaths
|
|
20019
|
+
* stay wires.
|
|
18495
20020
|
*/
|
|
18496
20021
|
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
18497
20022
|
/**
|
|
@@ -18503,33 +20028,53 @@ export interface OperationParams {
|
|
|
18503
20028
|
includeInvisible?: boolean | PipelineRef;
|
|
18504
20029
|
/** When true, consecutive segments of a subpath are merged into a single edge where they can be. */
|
|
18505
20030
|
joinSegments?: boolean | PipelineRef;
|
|
18506
|
-
/**
|
|
20031
|
+
/**
|
|
20032
|
+
* How far apart segment ends may be and still join, in model units; a subpath that ends this
|
|
20033
|
+
* close to its start counts as closed.
|
|
20034
|
+
*/
|
|
18507
20035
|
tolerance?: number | PipelineRef;
|
|
18508
|
-
/**
|
|
20036
|
+
/**
|
|
20037
|
+
* A factor applied to the SVG coordinates, or to the true size when `unit` is set; 1 keeps the
|
|
20038
|
+
* size.
|
|
20039
|
+
*/
|
|
18509
20040
|
scale?: number | PipelineRef;
|
|
18510
20041
|
/** When true, Y is negated so the drawing comes out upright, since SVG has Y pointing down. */
|
|
18511
20042
|
flipY?: boolean | PipelineRef;
|
|
18512
|
-
/**
|
|
20043
|
+
/**
|
|
20044
|
+
* Which point of the drawing's bounding box sits on `center`; `midMid` centers it. Not used
|
|
20045
|
+
* when `keepOrigin` is true.
|
|
20046
|
+
*/
|
|
18513
20047
|
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
18514
20048
|
/** The normal of the plane the drawing is laid on; the default lays it flat on the ground. */
|
|
18515
20049
|
direction?: [number, number, number] | PipelineRef;
|
|
18516
20050
|
/** The point the aligned drawing is placed at. */
|
|
18517
20051
|
center?: [number, number, number] | PipelineRef;
|
|
20052
|
+
/**
|
|
20053
|
+
* Imports at true size in this unit, read from the page's `width`, `height` and view box at 96
|
|
20054
|
+
* pixels an inch. Left out, SVG user units become model units.
|
|
20055
|
+
*/
|
|
20056
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
20057
|
+
/**
|
|
20058
|
+
* When true, the origin of the imported coordinates lands on `center`, ignoring `alignment`: the
|
|
20059
|
+
* SVG's own origin, or the page's top left corner when `unit` is set.
|
|
20060
|
+
*/
|
|
20061
|
+
keepOrigin?: boolean | PipelineRef;
|
|
18518
20062
|
};
|
|
18519
20063
|
/**
|
|
18520
20064
|
* Parses an SVG document and builds one shape per drawable element, each bundled with its
|
|
18521
|
-
* resolved fill, stroke and stroke width, plus the
|
|
20065
|
+
* resolved fill, stroke and stroke width, plus the warnings, the view box and the page size in
|
|
20066
|
+
* millimetres.
|
|
18522
20067
|
*
|
|
18523
20068
|
* Use it when the elements need their own colors or separate handling; `loadSVG` gives the
|
|
18524
|
-
* whole drawing as one shape.
|
|
20069
|
+
* whole drawing as one shape.
|
|
18525
20070
|
*/
|
|
18526
20071
|
"occt.svg.loadSVGStructured": {
|
|
18527
20072
|
/** The text of the SVG document. */
|
|
18528
20073
|
svg?: string | PipelineRef;
|
|
18529
20074
|
/**
|
|
18530
|
-
* How filled shapes become faces: `none` keeps
|
|
18531
|
-
*
|
|
18532
|
-
*
|
|
20075
|
+
* How filled shapes become faces: `none` keeps wires, `auto` follows each element's fill rule,
|
|
20076
|
+
* `nonzero` and `evenOdd` force one, `perSubpath` faces each closed subpath alone. Open subpaths
|
|
20077
|
+
* stay wires.
|
|
18533
20078
|
*/
|
|
18534
20079
|
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
18535
20080
|
/**
|
|
@@ -18541,18 +20086,37 @@ export interface OperationParams {
|
|
|
18541
20086
|
includeInvisible?: boolean | PipelineRef;
|
|
18542
20087
|
/** When true, consecutive segments of a subpath are merged into a single edge where they can be. */
|
|
18543
20088
|
joinSegments?: boolean | PipelineRef;
|
|
18544
|
-
/**
|
|
20089
|
+
/**
|
|
20090
|
+
* How far apart segment ends may be and still join, in model units; a subpath that ends this
|
|
20091
|
+
* close to its start counts as closed.
|
|
20092
|
+
*/
|
|
18545
20093
|
tolerance?: number | PipelineRef;
|
|
18546
|
-
/**
|
|
20094
|
+
/**
|
|
20095
|
+
* A factor applied to the SVG coordinates, or to the true size when `unit` is set; 1 keeps the
|
|
20096
|
+
* size.
|
|
20097
|
+
*/
|
|
18547
20098
|
scale?: number | PipelineRef;
|
|
18548
20099
|
/** When true, Y is negated so the drawing comes out upright, since SVG has Y pointing down. */
|
|
18549
20100
|
flipY?: boolean | PipelineRef;
|
|
18550
|
-
/**
|
|
20101
|
+
/**
|
|
20102
|
+
* Which point of the drawing's bounding box sits on `center`; `midMid` centers it. Not used
|
|
20103
|
+
* when `keepOrigin` is true.
|
|
20104
|
+
*/
|
|
18551
20105
|
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
18552
20106
|
/** The normal of the plane the drawing is laid on; the default lays it flat on the ground. */
|
|
18553
20107
|
direction?: [number, number, number] | PipelineRef;
|
|
18554
20108
|
/** The point the aligned drawing is placed at. */
|
|
18555
20109
|
center?: [number, number, number] | PipelineRef;
|
|
20110
|
+
/**
|
|
20111
|
+
* Imports at true size in this unit, read from the page's `width`, `height` and view box at 96
|
|
20112
|
+
* pixels an inch. Left out, SVG user units become model units.
|
|
20113
|
+
*/
|
|
20114
|
+
unit?: "mm" | "cm" | "m" | "in" | PipelineRef;
|
|
20115
|
+
/**
|
|
20116
|
+
* When true, the origin of the imported coordinates lands on `center`, ignoring `alignment`: the
|
|
20117
|
+
* SVG's own origin, or the page's top left corner when `unit` is set.
|
|
20118
|
+
*/
|
|
20119
|
+
keepOrigin?: boolean | PipelineRef;
|
|
18556
20120
|
};
|
|
18557
20121
|
/**
|
|
18558
20122
|
* Moves a shape so that one point and direction on it land on another point and direction: the
|
|
@@ -19120,6 +20684,20 @@ export interface OperationParams {
|
|
|
19120
20684
|
/** The move as `[x, y, z]`, in model units. */
|
|
19121
20685
|
translation?: [number, number, number] | PipelineRef;
|
|
19122
20686
|
};
|
|
20687
|
+
/** Read flat parts as nesting would, without nesting them */
|
|
20688
|
+
"occtPro.nesting.inspect": {
|
|
20689
|
+
/** The flat parts to read */
|
|
20690
|
+
shapes: unknown | PipelineRef;
|
|
20691
|
+
/** The tolerance and each part's xDirection; no stock is needed */
|
|
20692
|
+
options?: unknown | PipelineRef;
|
|
20693
|
+
};
|
|
20694
|
+
/** Place flat parts on sheets or a strip; returns the sheets as one compound and the layout report */
|
|
20695
|
+
"occtPro.nesting.nest": {
|
|
20696
|
+
/** The flat parts: planar faces, coplanar faces such as unfolded parts, plate solids, or drawings of closed wires */
|
|
20697
|
+
shapes: unknown | PipelineRef;
|
|
20698
|
+
/** The stock (rectangular sheets or one strip), each part's quantity, turns and flip, and the spacing, margin, tolerance and time budget; see NestingOptions */
|
|
20699
|
+
options: unknown | PipelineRef;
|
|
20700
|
+
};
|
|
19123
20701
|
/** Sheet-metal unfold metrics report for a single face */
|
|
19124
20702
|
"occtPro.sheetMetal.unfoldFaceReport": {
|
|
19125
20703
|
/** Shape that contains the face to unfold */
|
|
@@ -20395,9 +21973,9 @@ export interface OperationParams {
|
|
|
20395
21973
|
/**
|
|
20396
21974
|
* Draws one character as line paths with a simple stroke font.
|
|
20397
21975
|
*
|
|
20398
|
-
* The paths lie flat on the XZ plane,
|
|
20399
|
-
*
|
|
20400
|
-
* mark.
|
|
21976
|
+
* The paths lie flat on the XZ plane, the character `height` tall, and come with its width and
|
|
21977
|
+
* height. Accented Latin letters are drawn with their marks, other unknown characters as a
|
|
21978
|
+
* question mark.
|
|
20401
21979
|
* Example: 'A' at height 10 -> the strokes of an A, 10 units tall
|
|
20402
21980
|
*/
|
|
20403
21981
|
"text.vectorChar": {
|