@bitbybit-dev/cad-cloud-sdk 1.4.1 → 1.5.0-rc.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/client.js +6 -3
- package/dist/client.js.map +1 -1
- package/dist/endpoints/files.d.ts.map +1 -1
- package/dist/endpoints/files.js +8 -4
- package/dist/endpoints/files.js.map +1 -1
- package/dist/endpoints/tasks.d.ts.map +1 -1
- package/dist/endpoints/tasks.js +8 -4
- package/dist/endpoints/tasks.js.map +1 -1
- package/dist/types/generated.d.ts +4 -4
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +946 -94
- 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 +2 -2
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +1 -1
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +3 -1
- package/dist/validation/request-schemas.js.map +1 -1
- package/dist/validation/validator.d.ts.map +1 -1
- package/dist/validation/validator.js +4 -2
- package/dist/validation/validator.js.map +1 -1
- package/package.json +1 -1
- package/src/__test__/helpers.ts +6 -18
- package/src/client.ts +9 -3
- package/src/endpoints/files.ts +12 -4
- package/src/endpoints/tasks.ts +12 -4
- package/src/polling.test.ts +1 -1
- package/src/types/generated.ts +4 -4
- package/src/types/pipeline-operations.ts +977 -94
- package/src/types/schema-exports.ts +2 -2
- package/src/validation/request-schemas.ts +3 -1
- package/src/validation/validator.ts +6 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** All valid pipeline operation paths. */
|
|
2
|
-
export type OperationPath = "color.getBlueParam" | "color.getGreenParam" | "color.getRedParam" | "color.hexColor" | "color.hexToRgb" | "color.hexToRgbMapped" | "color.invert" | "color.rgb1Color" | "color.rgb255Color" | "color.rgba1Color" | "color.rgba255Color" | "color.rgbAtomic1Color" | "color.rgbAtomic255Color" | "color.rgbObjToHex" | "color.rgbToBlue" | "color.rgbToGreen" | "color.rgbToHex" | "color.rgbToRed" | "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.offset" | "manifold.crossSection.operations.revolve" | "manifold.crossSection.operations.simplify" | "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.toPolygonPoints" | "math.abs" | "math.acos" | "math.add" | "math.asin" | "math.atan" | "math.ceil" | "math.clamp" | "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.modulus" | "math.moveTowards" | "math.multiply" | "math.negate" | "math.number" | "math.oneNrOperation" | "math.pi" | "math.pingPong" | "math.power" | "math.radToDeg" | "math.random" | "math.randomNumber" | "math.randomNumbers" | "math.remap" | "math.round" | "math.roundAndRemoveTrailingZeros" | "math.roundToDecimals" | "math.sign" | "math.sin" | "math.smoothstep" | "math.sqrt" | "math.subtract" | "math.tan" | "math.tenPow" | "math.toFixed" | "math.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.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.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.dimensions.pinWithLabel" | "occt.dimensions.simpleAngularDimension" | "occt.dimensions.simpleLinearLengthDimension" | "occt.docToMesh" | "occt.docToMeshes" | "occt.draft.draftAngle" | "occt.draft.makeDraft" | "occt.draft.makeDraftToShape" | "occt.features.boss" | "occt.features.counterboredHoles" | "occt.features.countersunkHoles" | "occt.features.groove" | "occt.features.holes" | "occt.features.pocket" | "occt.features.pushPullFaces" | "occt.features.removeFaces" | "occt.features.revolvedBoss" | "occt.features.revolvedPocket" | "occt.features.rib" | "occt.features.taperedBoss" | "occt.features.taperedPocket" | "occt.fillets.chamfer2dVertices" | "occt.fillets.chamferEdgeDistAngle" | "occt.fillets.chamferEdges" | "occt.fillets.chamferEdgesDistAngle" | "occt.fillets.chamferEdgesDistsAngles" | "occt.fillets.chamferEdgesList" | "occt.fillets.chamferEdgesTwoDistances" | "occt.fillets.chamferEdgesTwoDistancesLists" | "occt.fillets.chamferEdgesWithHistory" | "occt.fillets.chamferEdgeTwoDistances" | "occt.fillets.fillet2d" | "occt.fillets.fillet2dShapes" | "occt.fillets.fillet3DWire" | "occt.fillets.fillet3DWires" | "occt.fillets.filletEdges" | "occt.fillets.filletEdgesList" | "occt.fillets.filletEdgesListOneRadius" | "occt.fillets.filletEdgesSameVariableRadius" | "occt.fillets.filletEdgesVariableRadius" | "occt.fillets.filletEdgesWithHistory" | "occt.fillets.filletEdgeVariableRadius" | "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.loadBrep" | "occt.io.loadSTEPorIGES" | "occt.io.loadStl" | "occt.io.parseStepToJson" | "occt.io.saveShapeBrep" | "occt.io.saveShapeBrepAndReturn" | "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.distancesToShapeFromPoints" | "occt.operations.extrude" | "occt.operations.extrudeShapes" | "occt.operations.extrudeWithHistory" | "occt.operations.hiddenLines" | "occt.operations.loft" | "occt.operations.loftAdvanced" | "occt.operations.makeThickSolidByJoin" | "occt.operations.makeThickSolidSimple" | "occt.operations.offset" | "occt.operations.offset3DWire" | "occt.operations.offsetAdv" | "occt.operations.pipe" | "occt.operations.pipePolylineWireNGon" | "occt.operations.pipeWireCylindrical" | "occt.operations.pipeWiresCylindrical" | "occt.operations.pipeWithScaling" | "occt.operations.revolve" | "occt.operations.revolveWithHistory" | "occt.operations.rotatedExtrude" | "occt.operations.sectionWires" | "occt.operations.slice" | "occt.operations.sliceByFrames" | "occt.operations.sliceInStepPattern" | "occt.operations.splitByFrame" | "occt.operations.splitFaceByWires" | "occt.operations.splitShapeWithShapes" | "occt.operations.sweepEvolved" | "occt.path.shapeFromPath" | "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.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.shell.debugInfo" | "occt.shapes.shell.getShellSurfaceArea" | "occt.shapes.shell.sewFaces" | "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.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.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.length" | "polyline.maxFilletsHalfLine" | "polyline.polylineSelfIntersection" | "polyline.polylineToLines" | "polyline.polylineToSegments" | "polyline.reverse" | "polyline.safestFilletRadius" | "polyline.sortSegmentsIntoPolylines" | "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.hexToRgbMapped" | "color.invert" | "color.rgb1Color" | "color.rgb255Color" | "color.rgba1Color" | "color.rgba255Color" | "color.rgbAtomic1Color" | "color.rgbAtomic255Color" | "color.rgbObjToHex" | "color.rgbToBlue" | "color.rgbToGreen" | "color.rgbToHex" | "color.rgbToRed" | "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.cos" | "math.degToRad" | "math.divide" | "math.ease" | "math.evalArithmetic" | "math.exp" | "math.floor" | "math.fract" | "math.inverseLerp" | "math.lerp" | "math.ln" | "math.log10" | "math.modulus" | "math.moveTowards" | "math.multiply" | "math.negate" | "math.number" | "math.oneNrOperation" | "math.pi" | "math.pingPong" | "math.power" | "math.radToDeg" | "math.random" | "math.randomNumber" | "math.randomNumbers" | "math.remap" | "math.round" | "math.roundAndRemoveTrailingZeros" | "math.roundToDecimals" | "math.sign" | "math.sin" | "math.smoothstep" | "math.sqrt" | "math.subtract" | "math.tan" | "math.tenPow" | "math.toFixed" | "math.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.makeDraft" | "occt.draft.makeDraftToShape" | "occt.features.boss" | "occt.features.bossWithHistory" | "occt.features.counterboredHoles" | "occt.features.counterboredHolesWithHistory" | "occt.features.countersunkHoles" | "occt.features.countersunkHolesWithHistory" | "occt.features.groove" | "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.revolvedPocket" | "occt.features.rib" | "occt.features.taperedBoss" | "occt.features.taperedPocket" | "occt.fillets.chamfer2dVertices" | "occt.fillets.chamferEdgeDistAngle" | "occt.fillets.chamferEdges" | "occt.fillets.chamferEdgesDistAngle" | "occt.fillets.chamferEdgesDistsAngles" | "occt.fillets.chamferEdgesList" | "occt.fillets.chamferEdgesTwoDistances" | "occt.fillets.chamferEdgesTwoDistancesLists" | "occt.fillets.chamferEdgesWithHistory" | "occt.fillets.chamferEdgeTwoDistances" | "occt.fillets.fillet2d" | "occt.fillets.fillet2dShapes" | "occt.fillets.fillet3DWire" | "occt.fillets.fillet3DWires" | "occt.fillets.filletEdges" | "occt.fillets.filletEdgesList" | "occt.fillets.filletEdgesListOneRadius" | "occt.fillets.filletEdgesSameVariableRadius" | "occt.fillets.filletEdgesVariableRadius" | "occt.fillets.filletEdgesWithHistory" | "occt.fillets.filletEdgeVariableRadius" | "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.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.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.pipe" | "occt.operations.pipePolylineWireNGon" | "occt.operations.pipeWireCylindrical" | "occt.operations.pipeWiresCylindrical" | "occt.operations.pipeWithHistory" | "occt.operations.pipeWithScaling" | "occt.operations.revolve" | "occt.operations.revolveWithHistory" | "occt.operations.rotatedExtrude" | "occt.operations.sectionWires" | "occt.operations.slice" | "occt.operations.sliceByFrames" | "occt.operations.sliceInStepPattern" | "occt.operations.splitByFrame" | "occt.operations.splitFaceByWires" | "occt.operations.splitShapeWithShapes" | "occt.operations.sweepEvolved" | "occt.path.shapeFromPath" | "occt.recipes.build" | "occt.recipes.buildDocument" | "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.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.shell.debugInfo" | "occt.shapes.shell.getShellSurfaceArea" | "occt.shapes.shell.sewFaces" | "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.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.length" | "polyline.maxFilletsHalfLine" | "polyline.polygonArea" | "polyline.polygonNormal" | "polyline.polylineSelfIntersection" | "polyline.polylineToLines" | "polyline.polylineToSegments" | "polyline.reverse" | "polyline.safestFilletRadius" | "polyline.sortSegmentsIntoPolylines" | "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. */
|
|
@@ -2931,6 +2931,26 @@ export interface OperationParams {
|
|
|
2931
2931
|
/** The cross-section to work on; it is not changed. */
|
|
2932
2932
|
crossSection: unknown | PipelineRef;
|
|
2933
2933
|
};
|
|
2934
|
+
/**
|
|
2935
|
+
* Joins cross-sections placed by frames into a solid, each section to the next by straight
|
|
2936
|
+
* sides, closed at both ends: a taper from one outline to another, or one outline through many
|
|
2937
|
+
* frames.
|
|
2938
|
+
*
|
|
2939
|
+
* Corner `i` of a section joins corner `i` of the next, so differing sections need matching loops;
|
|
2940
|
+
* frames move the sections apart, mirroring all or none.
|
|
2941
|
+
*/
|
|
2942
|
+
"manifold.crossSection.operations.loft": {
|
|
2943
|
+
/**
|
|
2944
|
+
* One cross-section, placed by every frame, or one for each frame. Cross-sections that differ
|
|
2945
|
+
* need as many loops with as many corners each, as a moved or scaled copy has.
|
|
2946
|
+
*/
|
|
2947
|
+
crossSections: unknown[] | PipelineRef;
|
|
2948
|
+
/**
|
|
2949
|
+
* Where each section stands, at least two: sixteen numbers in column-major order that place the
|
|
2950
|
+
* cross-section's XY plane, with 0, 0, 0, 1 as the bottom row.
|
|
2951
|
+
*/
|
|
2952
|
+
frames: unknown[] | PipelineRef;
|
|
2953
|
+
};
|
|
2934
2954
|
/**
|
|
2935
2955
|
* Moves the outline of a cross-section outward by `delta`, or inward for a negative delta, so
|
|
2936
2956
|
* an outer contour grows and a hole shrinks.
|
|
@@ -2991,6 +3011,31 @@ export interface OperationParams {
|
|
|
2991
3011
|
/** Points closer than this, in model units, to the line between their neighbors are dropped. */
|
|
2992
3012
|
epsilon?: number | PipelineRef;
|
|
2993
3013
|
};
|
|
3014
|
+
/**
|
|
3015
|
+
* Carries a cross-section along a path of points into a solid, square to the path at every
|
|
3016
|
+
* point and turning with it without twisting, like a pipe, a rail or a cable.
|
|
3017
|
+
*
|
|
3018
|
+
* Sharp corners are mitred so the solid keeps its width; `cornerRadius` rounds them instead.
|
|
3019
|
+
* `xDirection` sets where the profile's X axis points at the start.
|
|
3020
|
+
*/
|
|
3021
|
+
"manifold.crossSection.operations.sweep": {
|
|
3022
|
+
/** The profile to carry, drawn around the origin of its XY plane, which follows the path. */
|
|
3023
|
+
crossSection: unknown | PipelineRef;
|
|
3024
|
+
/** The points the path runs through, at least two. */
|
|
3025
|
+
path: [number, number, number][] | PipelineRef;
|
|
3026
|
+
/**
|
|
3027
|
+
* How much the path's corners are rounded; 0 keeps them sharp, mitred so the solid keeps its
|
|
3028
|
+
* width.
|
|
3029
|
+
*/
|
|
3030
|
+
cornerRadius?: number | PipelineRef;
|
|
3031
|
+
/** How many segments a whole turn of a rounded corner is divided into; more is rounder. */
|
|
3032
|
+
circularSegments?: number | PipelineRef;
|
|
3033
|
+
/**
|
|
3034
|
+
* Where the profile's X axis points at the start of the path, turned square to it; left out,
|
|
3035
|
+
* one is chosen. The profile then follows the path's turns without twisting.
|
|
3036
|
+
*/
|
|
3037
|
+
xDirection?: [number, number, number] | PipelineRef;
|
|
3038
|
+
};
|
|
2994
3039
|
/**
|
|
2995
3040
|
* Creates a circular cross-section of the given radius, centered on the origin and drawn with
|
|
2996
3041
|
* `circularSegments` straight sides.
|
|
@@ -3103,14 +3148,19 @@ export interface OperationParams {
|
|
|
3103
3148
|
* Turns a solid into plain mesh data, or a cross-section into its polygons, ready for drawing
|
|
3104
3149
|
* or export.
|
|
3105
3150
|
*
|
|
3106
|
-
* `normalIdx` names the
|
|
3107
|
-
*
|
|
3151
|
+
* `normalIdx` names the channel holding normals the solid carries. With `minSharpAngle`, normals
|
|
3152
|
+
* follow each position, smooth across flatter edges and split across sharper ones.
|
|
3108
3153
|
*/
|
|
3109
3154
|
"manifold.decomposeManifoldOrCrossSection": {
|
|
3110
3155
|
/** The solid or cross-section to turn into plain data. */
|
|
3111
3156
|
manifoldOrCrossSection: unknown | PipelineRef;
|
|
3112
3157
|
/** The property channel holding the normals of a solid, when it carries them. */
|
|
3113
3158
|
normalIdx?: number | PipelineRef;
|
|
3159
|
+
/**
|
|
3160
|
+
* When given, a solid's mesh carries normals after its positions, and edges sharper than this,
|
|
3161
|
+
* in degrees, keep a normal on each side; 0 shades every face flat.
|
|
3162
|
+
*/
|
|
3163
|
+
minSharpAngle?: number | PipelineRef;
|
|
3114
3164
|
};
|
|
3115
3165
|
/**
|
|
3116
3166
|
* Turns several solids into mesh data, or cross-sections into polygons, as
|
|
@@ -3123,6 +3173,11 @@ export interface OperationParams {
|
|
|
3123
3173
|
manifoldsOrCrossSections: unknown[] | PipelineRef;
|
|
3124
3174
|
/** One normal channel per shape, for the solids that carry normals. */
|
|
3125
3175
|
normalIdx?: number[] | PipelineRef;
|
|
3176
|
+
/**
|
|
3177
|
+
* When given, each solid's mesh carries normals after its positions, and edges sharper than
|
|
3178
|
+
* this, in degrees, keep a normal on each side; 0 shades every face flat.
|
|
3179
|
+
*/
|
|
3180
|
+
minSharpAngle?: number | PipelineRef;
|
|
3126
3181
|
};
|
|
3127
3182
|
/**
|
|
3128
3183
|
* Frees the memory a solid or a cross-section holds inside the kernel; the object cannot be
|
|
@@ -3951,6 +4006,87 @@ export interface OperationParams {
|
|
|
3951
4006
|
/** The mesh data, as `manifoldToMesh` hands it out. */
|
|
3952
4007
|
mesh: unknown | PipelineRef;
|
|
3953
4008
|
};
|
|
4009
|
+
/**
|
|
4010
|
+
* Builds each root of a recipe as a solid placed by its matrix, in root order.
|
|
4011
|
+
*
|
|
4012
|
+
* Shared nodes are built once. An invalid recipe throws before anything is built; a root the
|
|
4013
|
+
* kernel cannot build, such as an open mesh, throws naming its node unless `emptyWhenFailed` is
|
|
4014
|
+
* set. Circles get `circularSegments` sides; `tolerance` and `millimetresPerUnit` are not applied.
|
|
4015
|
+
*/
|
|
4016
|
+
"manifold.recipes.build": {
|
|
4017
|
+
/**
|
|
4018
|
+
* The recipe: steps such as polygons, extrusions and cuts, and the roots to build from them, as
|
|
4019
|
+
* a package that describes geometry as data writes it.
|
|
4020
|
+
*/
|
|
4021
|
+
recipe: unknown | PipelineRef;
|
|
4022
|
+
/**
|
|
4023
|
+
* How many flat sides each circle of the recipe is divided into; more is rounder. The recipe
|
|
4024
|
+
* leaves this to the kernel, so it is chosen here.
|
|
4025
|
+
*/
|
|
4026
|
+
circularSegments?: number | PipelineRef;
|
|
4027
|
+
/**
|
|
4028
|
+
* When true, each solid turns a quarter turn about X so the recipe's Z points along Y, which is
|
|
4029
|
+
* up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
|
|
4030
|
+
*/
|
|
4031
|
+
adjustZtoY?: boolean | PipelineRef;
|
|
4032
|
+
/**
|
|
4033
|
+
* When true, a root that cannot be built, such as an open mesh, comes back empty, and an
|
|
4034
|
+
* opening that cannot is left uncut; when false, both stop the build.
|
|
4035
|
+
*/
|
|
4036
|
+
emptyWhenFailed?: boolean | PipelineRef;
|
|
4037
|
+
};
|
|
4038
|
+
/**
|
|
4039
|
+
* Builds a recipe into the meshes its roots draw, each step several roots place meshed once in
|
|
4040
|
+
* its own coordinates, and gives every root a placement: its mesh, its matrix and its tag.
|
|
4041
|
+
*
|
|
4042
|
+
* Turns and moves fold into the placements, so a door type placed a hundred times is one mesh;
|
|
4043
|
+
* normals split at edges sharper than `minSharpAngle`.
|
|
4044
|
+
*/
|
|
4045
|
+
"manifold.recipes.meshes": {
|
|
4046
|
+
/**
|
|
4047
|
+
* The recipe: steps such as polygons, extrusions and cuts, and the roots to draw from them, as
|
|
4048
|
+
* a package that describes geometry as data writes it.
|
|
4049
|
+
*/
|
|
4050
|
+
recipe: unknown | PipelineRef;
|
|
4051
|
+
/** How many flat sides each circle of the recipe is divided into; more is rounder. */
|
|
4052
|
+
circularSegments?: number | PipelineRef;
|
|
4053
|
+
/**
|
|
4054
|
+
* When true, every placement turns a quarter turn about X so the recipe's Z points along Y,
|
|
4055
|
+
* which is up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
|
|
4056
|
+
*/
|
|
4057
|
+
adjustZtoY?: boolean | PipelineRef;
|
|
4058
|
+
/**
|
|
4059
|
+
* When true, a root that cannot be built draws as its surface if it is triangles alone, else
|
|
4060
|
+
* draws nothing; when false, it stops the build.
|
|
4061
|
+
*/
|
|
4062
|
+
emptyWhenFailed?: boolean | PipelineRef;
|
|
4063
|
+
/** Edges sharper than this, in degrees, keep a normal on each side; 0 shades every face flat. */
|
|
4064
|
+
minSharpAngle?: number | PipelineRef;
|
|
4065
|
+
};
|
|
4066
|
+
/**
|
|
4067
|
+
* Gives the roots of a recipe made of triangle meshes alone as meshes, placed as `build` places
|
|
4068
|
+
* its solids, without building anything.
|
|
4069
|
+
*
|
|
4070
|
+
* `build` gives an open mesh back empty, since it cannot be a solid; this gives it as the surface
|
|
4071
|
+
* it is, its openings left uncut. A root holding any other step comes back as an empty mesh.
|
|
4072
|
+
*/
|
|
4073
|
+
"manifold.recipes.surfaceMeshes": {
|
|
4074
|
+
/**
|
|
4075
|
+
* The recipe: steps such as polygons, extrusions and triangle meshes, and the roots to build
|
|
4076
|
+
* from them, as a package that describes geometry as data writes it.
|
|
4077
|
+
*/
|
|
4078
|
+
recipe: unknown | PipelineRef;
|
|
4079
|
+
/**
|
|
4080
|
+
* The positions of the roots to read, such as the ones `recipes.build` gave back empty; every
|
|
4081
|
+
* root when left out.
|
|
4082
|
+
*/
|
|
4083
|
+
roots?: number[] | PipelineRef;
|
|
4084
|
+
/**
|
|
4085
|
+
* When true, each mesh turns a quarter turn about X so the recipe's Z points along Y, as
|
|
4086
|
+
* `recipes.build` turns its solids: `(x, y, z)` becomes `(x, z, -y)`.
|
|
4087
|
+
*/
|
|
4088
|
+
adjustZtoY?: boolean | PipelineRef;
|
|
4089
|
+
};
|
|
3954
4090
|
/**
|
|
3955
4091
|
* Turns a solid into a list of triangles, each three points, the same form
|
|
3956
4092
|
* `shapes.fromPolygonPoints` reads back.
|
|
@@ -4779,6 +4915,17 @@ export interface OperationParams {
|
|
|
4779
4915
|
/** The shape to work on; it is not changed. */
|
|
4780
4916
|
shape: unknown | PipelineRef;
|
|
4781
4917
|
};
|
|
4918
|
+
/**
|
|
4919
|
+
* Describes every face and edge of a shape in one pass: each face's surface kind, area, centre,
|
|
4920
|
+
* outward normal and box, and each edge's curve kind, length, midpoint and direction there.
|
|
4921
|
+
*
|
|
4922
|
+
* The numbering and the measures are the selectors' own, so a kept description finds the same
|
|
4923
|
+
* face again after a rebuild.
|
|
4924
|
+
*/
|
|
4925
|
+
"occt.analysis.signatures": {
|
|
4926
|
+
/** The shape to work on; it is not changed. */
|
|
4927
|
+
shape: unknown | PipelineRef;
|
|
4928
|
+
};
|
|
4782
4929
|
/**
|
|
4783
4930
|
* Finds the point of a face nearest each given point, with its (u, v) and the face's normal there.
|
|
4784
4931
|
*
|
|
@@ -4823,10 +4970,10 @@ export interface OperationParams {
|
|
|
4823
4970
|
* Builds an assembly document from a structure, or applies the structure to an existing
|
|
4824
4971
|
* document.
|
|
4825
4972
|
*
|
|
4826
|
-
* With `existingDocument
|
|
4827
|
-
*
|
|
4828
|
-
*
|
|
4829
|
-
*
|
|
4973
|
+
* With `existingDocument`, `removals` go first, then `partUpdates`, then new parts and nodes;
|
|
4974
|
+
* with neither, the document is cleared unless `clearDocument` is false. `sourceDocuments` feeds
|
|
4975
|
+
* imported parts; a placed root assembly goes under a top "Assembly". The document stays in
|
|
4976
|
+
* memory until deleted.
|
|
4830
4977
|
*/
|
|
4831
4978
|
"occt.assembly.manager.buildAssemblyDocument": {
|
|
4832
4979
|
/** The parts, nodes and updates to build, from `combineStructure`. */
|
|
@@ -5044,6 +5191,11 @@ export interface OperationParams {
|
|
|
5044
5191
|
mergeFaces?: boolean | PipelineRef;
|
|
5045
5192
|
/** When true, texture coordinates are written even for meshes without textures. */
|
|
5046
5193
|
forceUVExport?: boolean | PipelineRef;
|
|
5194
|
+
/**
|
|
5195
|
+
* Which axis points up in the document. A z-up document is turned so that z becomes glTF's y;
|
|
5196
|
+
* a y-up one is written as it is.
|
|
5197
|
+
*/
|
|
5198
|
+
up?: "y" | "z" | PipelineRef;
|
|
5047
5199
|
/** The name the downloaded file gets; it should end in `.glb`. */
|
|
5048
5200
|
fileName?: string | PipelineRef;
|
|
5049
5201
|
/**
|
|
@@ -5087,6 +5239,11 @@ export interface OperationParams {
|
|
|
5087
5239
|
mergeFaces?: boolean | PipelineRef;
|
|
5088
5240
|
/** When true, texture coordinates are written even for meshes without textures. */
|
|
5089
5241
|
forceUVExport?: boolean | PipelineRef;
|
|
5242
|
+
/**
|
|
5243
|
+
* Which axis points up in the document. A z-up document is turned so that z becomes glTF's y;
|
|
5244
|
+
* a y-up one is written as it is.
|
|
5245
|
+
*/
|
|
5246
|
+
up?: "y" | "z" | PipelineRef;
|
|
5090
5247
|
/** The name the downloaded file gets; it should end in `.glb`. */
|
|
5091
5248
|
fileName?: string | PipelineRef;
|
|
5092
5249
|
/**
|
|
@@ -5401,6 +5558,21 @@ export interface OperationParams {
|
|
|
5401
5558
|
*/
|
|
5402
5559
|
keepEdges?: boolean | PipelineRef;
|
|
5403
5560
|
};
|
|
5561
|
+
/**
|
|
5562
|
+
* Intersects shapes as `intersection` does, and reports what became of every shape's faces,
|
|
5563
|
+
* edges and vertices, in the order given, as indexes into the compound it returns.
|
|
5564
|
+
*
|
|
5565
|
+
* A shape that does not touch the first adds no piece and maps to nothing.
|
|
5566
|
+
*/
|
|
5567
|
+
"occt.booleans.intersectionWithHistory": {
|
|
5568
|
+
/** The shapes; the first is intersected with every other one in turn. */
|
|
5569
|
+
shapes: unknown[] | PipelineRef;
|
|
5570
|
+
/**
|
|
5571
|
+
* When false, faces on one surface are merged and their seams removed; when true every edge
|
|
5572
|
+
* stays.
|
|
5573
|
+
*/
|
|
5574
|
+
keepEdges?: boolean | PipelineRef;
|
|
5575
|
+
};
|
|
5404
5576
|
/**
|
|
5405
5577
|
* Finds where the surface of one shape crosses the surfaces of several others by triangulating
|
|
5406
5578
|
* them all and intersecting the triangles, and returns the crossing lines as lists of points.
|
|
@@ -5801,6 +5973,131 @@ export interface OperationParams {
|
|
|
5801
5973
|
/** The shapes to work on, in the order the results should come back. */
|
|
5802
5974
|
shapes: unknown[] | PipelineRef;
|
|
5803
5975
|
};
|
|
5976
|
+
/**
|
|
5977
|
+
* Builds the parts of a design document, with a configuration's values and then `parameters`
|
|
5978
|
+
* replacing the document's own.
|
|
5979
|
+
*
|
|
5980
|
+
* A document `validate` faults is refused. A failed feature is reported and what uses it
|
|
5981
|
+
* skipped; unchanged features are reused. `structure` exports the parts to STEP and glTF through
|
|
5982
|
+
* `assembly.manager.buildAssemblyDocument`; an assembly adds components and a bill of materials.
|
|
5983
|
+
*/
|
|
5984
|
+
"occt.design.build": {
|
|
5985
|
+
/**
|
|
5986
|
+
* The document: a part document with its `parameters`, `features` and `parts`, or an assembly
|
|
5987
|
+
* document with its `components`.
|
|
5988
|
+
*/
|
|
5989
|
+
document: unknown | PipelineRef;
|
|
5990
|
+
/**
|
|
5991
|
+
* The id of one of the document's `configurations`, whose values replace the parameters' own;
|
|
5992
|
+
* left out or empty, none is used.
|
|
5993
|
+
*/
|
|
5994
|
+
configuration?: string | PipelineRef;
|
|
5995
|
+
/**
|
|
5996
|
+
* Values that replace the parameters of the same names after the configuration's, each read as
|
|
5997
|
+
* the parameter's own value is, such as `{ width: 40 }`.
|
|
5998
|
+
*/
|
|
5999
|
+
parameters?: unknown | PipelineRef;
|
|
6000
|
+
/**
|
|
6001
|
+
* The contents of the document's `assets` by asset id, as text or bytes, for the features that
|
|
6002
|
+
* import them; each is checked against the SHA-256 the document records.
|
|
6003
|
+
*/
|
|
6004
|
+
assets?: unknown | PipelineRef;
|
|
6005
|
+
/** The documents an assembly's components place, each with the `id` they name it by. */
|
|
6006
|
+
documents?: unknown[] | PipelineRef;
|
|
6007
|
+
/**
|
|
6008
|
+
* When a hinted reference loses its faces: `never` fails and offers the faces most like its hint
|
|
6009
|
+
* as repairs; `report` takes them, if they stand clear, and reports `rebound`.
|
|
6010
|
+
*/
|
|
6011
|
+
rebind?: "never" | "report" | PipelineRef;
|
|
6012
|
+
/**
|
|
6013
|
+
* Outcomes the caller made for features the build lists as `pending`, such as scripts, or kept from an
|
|
6014
|
+
* earlier build, each under the hash of the feature it is for; the build takes them instead of
|
|
6015
|
+
* making those features.
|
|
6016
|
+
*/
|
|
6017
|
+
outcomes?: unknown[] | PipelineRef;
|
|
6018
|
+
/**
|
|
6019
|
+
* Whether a part document's build also lists its `sketches`: each one's outline, the frame it was
|
|
6020
|
+
* drawn in and the command that drew each edge, for editors that draw and edit sketches.
|
|
6021
|
+
*/
|
|
6022
|
+
sketches?: boolean | PipelineRef;
|
|
6023
|
+
};
|
|
6024
|
+
/**
|
|
6025
|
+
* Finds the placed parts of a design build that overlap, touch or come within `clearance` of each
|
|
6026
|
+
* other, such as a sleeve that runs into the arm it slides on.
|
|
6027
|
+
*
|
|
6028
|
+
* The document is built as `build` builds it and every part placement is checked against every
|
|
6029
|
+
* other in place. Two components a joint holds together are expected to touch, so a touch between
|
|
6030
|
+
* them is left out and an overlap is listed with `joined` true. A part document's parts are checked
|
|
6031
|
+
* where they were built.
|
|
6032
|
+
*/
|
|
6033
|
+
"occt.design.clashes": {
|
|
6034
|
+
/**
|
|
6035
|
+
* The document: an assembly document with its `components`, or a part document whose parts are
|
|
6036
|
+
* checked where they were built.
|
|
6037
|
+
*/
|
|
6038
|
+
document: unknown | PipelineRef;
|
|
6039
|
+
/** The documents an assembly's components place, each with the `id` they name it by. */
|
|
6040
|
+
documents?: unknown[] | PipelineRef;
|
|
6041
|
+
/**
|
|
6042
|
+
* The id of one of the document's `configurations`, whose values replace the parameters' own;
|
|
6043
|
+
* left out or empty, none is used.
|
|
6044
|
+
*/
|
|
6045
|
+
configuration?: string | PipelineRef;
|
|
6046
|
+
/**
|
|
6047
|
+
* Values that replace the parameters of the same names after the configuration's, each read as
|
|
6048
|
+
* the parameter's own value is, such as `{ width: 40 }`.
|
|
6049
|
+
*/
|
|
6050
|
+
parameters?: unknown | PipelineRef;
|
|
6051
|
+
/**
|
|
6052
|
+
* The contents of the document's `assets` by asset id, as text or bytes, for the features that
|
|
6053
|
+
* import them.
|
|
6054
|
+
*/
|
|
6055
|
+
assets?: unknown | PipelineRef;
|
|
6056
|
+
/**
|
|
6057
|
+
* How close two placed parts may come before they clash; 0 reports only parts that touch or
|
|
6058
|
+
* overlap.
|
|
6059
|
+
*/
|
|
6060
|
+
clearance?: number | PipelineRef;
|
|
6061
|
+
};
|
|
6062
|
+
/**
|
|
6063
|
+
* Checks a design document without building it and lists every problem found.
|
|
6064
|
+
*
|
|
6065
|
+
* Each problem carries the JSON pointer of the value it is about, such as `/features/2/radius`,
|
|
6066
|
+
* and a message. An assembly is checked with the `documents` it places, whose problems come
|
|
6067
|
+
* under their position, such as `/documents/2`. Undefined properties and bad expressions count.
|
|
6068
|
+
*/
|
|
6069
|
+
"occt.design.validate": {
|
|
6070
|
+
/**
|
|
6071
|
+
* The document: a part document with its `parameters`, `features` and `parts`, or an assembly
|
|
6072
|
+
* document with its `components`.
|
|
6073
|
+
*/
|
|
6074
|
+
document: unknown | PipelineRef;
|
|
6075
|
+
/**
|
|
6076
|
+
* The documents an assembly's components place, each with the `id` they name it by; their
|
|
6077
|
+
* problems are listed under their position, such as `/documents/2`.
|
|
6078
|
+
*/
|
|
6079
|
+
documents?: unknown[] | PipelineRef;
|
|
6080
|
+
};
|
|
6081
|
+
/**
|
|
6082
|
+
* Works out the version of a design document, the value a component's `version` pins its source
|
|
6083
|
+
* with.
|
|
6084
|
+
*
|
|
6085
|
+
* The version is the SHA-256 of the document's canonical JSON (RFC 8785) without what only
|
|
6086
|
+
* editors and tools read, such as `meta` but its name, `extras`, labels, descriptions and
|
|
6087
|
+
* reference hints, so editing those keeps it.
|
|
6088
|
+
*/
|
|
6089
|
+
"occt.design.versionOf": {
|
|
6090
|
+
/**
|
|
6091
|
+
* The document: a part document with its `parameters`, `features` and `parts`, or an assembly
|
|
6092
|
+
* document with its `components`.
|
|
6093
|
+
*/
|
|
6094
|
+
document: unknown | PipelineRef;
|
|
6095
|
+
/**
|
|
6096
|
+
* The documents an assembly's components place, each with the `id` they name it by; their
|
|
6097
|
+
* problems are listed under their position, such as `/documents/2`.
|
|
6098
|
+
*/
|
|
6099
|
+
documents?: unknown[] | PipelineRef;
|
|
6100
|
+
};
|
|
5804
6101
|
/**
|
|
5805
6102
|
* Draws a pin, a line from a start point to an end point with a text label at the end, for
|
|
5806
6103
|
* pointing at a spot on a model and naming it.
|
|
@@ -5961,6 +6258,16 @@ export interface OperationParams {
|
|
|
5961
6258
|
* with more triangles.
|
|
5962
6259
|
*/
|
|
5963
6260
|
precision?: number | PipelineRef;
|
|
6261
|
+
/**
|
|
6262
|
+
* The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
|
|
6263
|
+
* follows curvature more closely with more triangles.
|
|
6264
|
+
*/
|
|
6265
|
+
angularDeflection?: number | PipelineRef;
|
|
6266
|
+
/**
|
|
6267
|
+
* When true, `precision` is a fraction of each edge's and face's size instead of model units, so
|
|
6268
|
+
* small and large parts get triangles in proportion to their size.
|
|
6269
|
+
*/
|
|
6270
|
+
relativeDeflection?: boolean | PipelineRef;
|
|
5964
6271
|
/**
|
|
5965
6272
|
* When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as
|
|
5966
6273
|
* up.
|
|
@@ -5972,18 +6279,18 @@ export interface OperationParams {
|
|
|
5972
6279
|
*/
|
|
5973
6280
|
computeMetadata?: boolean | PipelineRef;
|
|
5974
6281
|
/**
|
|
5975
|
-
* When true, the
|
|
5976
|
-
*
|
|
6282
|
+
* When true, the triangulations stay on the shapes for the next mesh with the same settings to
|
|
6283
|
+
* reuse; when false they are cleared. A mesh retention budget keeps every mesh.
|
|
5977
6284
|
*/
|
|
5978
6285
|
keepMeshData?: boolean | PipelineRef;
|
|
5979
6286
|
/**
|
|
5980
|
-
* When true, a
|
|
5981
|
-
*
|
|
6287
|
+
* When true, a face whose triangulation is not within 10% of the precision it needs is meshed
|
|
6288
|
+
* again; when false, a finer one is kept.
|
|
5982
6289
|
*/
|
|
5983
6290
|
allowQualityDecrease?: boolean | PipelineRef;
|
|
5984
6291
|
/**
|
|
5985
|
-
* When true, every face is
|
|
5986
|
-
*
|
|
6292
|
+
* When true, every face is meshed at exactly the requested precision; when false, a face's
|
|
6293
|
+
* precision is raised to the average of its edges' and to twice its tolerance.
|
|
5987
6294
|
*/
|
|
5988
6295
|
forceFaceDeflection?: boolean | PipelineRef;
|
|
5989
6296
|
};
|
|
@@ -6002,6 +6309,16 @@ export interface OperationParams {
|
|
|
6002
6309
|
* with more triangles.
|
|
6003
6310
|
*/
|
|
6004
6311
|
precision?: number | PipelineRef;
|
|
6312
|
+
/**
|
|
6313
|
+
* The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
|
|
6314
|
+
* follows curvature more closely with more triangles.
|
|
6315
|
+
*/
|
|
6316
|
+
angularDeflection?: number | PipelineRef;
|
|
6317
|
+
/**
|
|
6318
|
+
* When true, `precision` is a fraction of each edge's and face's size instead of model units, so
|
|
6319
|
+
* small and large parts get triangles in proportion to their size.
|
|
6320
|
+
*/
|
|
6321
|
+
relativeDeflection?: boolean | PipelineRef;
|
|
6005
6322
|
/**
|
|
6006
6323
|
* When true, the meshes are turned so this library's Y-up becomes Z-up, for tools that treat Z
|
|
6007
6324
|
* as up.
|
|
@@ -6013,18 +6330,18 @@ export interface OperationParams {
|
|
|
6013
6330
|
*/
|
|
6014
6331
|
computeMetadata?: boolean | PipelineRef;
|
|
6015
6332
|
/**
|
|
6016
|
-
* When true, the
|
|
6017
|
-
*
|
|
6333
|
+
* When true, the triangulations stay on the shapes for the next mesh with the same settings to
|
|
6334
|
+
* reuse; when false they are cleared. A mesh retention budget keeps every mesh.
|
|
6018
6335
|
*/
|
|
6019
6336
|
keepMeshData?: boolean | PipelineRef;
|
|
6020
6337
|
/**
|
|
6021
|
-
* When true, a
|
|
6022
|
-
*
|
|
6338
|
+
* When true, a face whose triangulation is not within 10% of the precision it needs is meshed
|
|
6339
|
+
* again; when false, a finer one is kept.
|
|
6023
6340
|
*/
|
|
6024
6341
|
allowQualityDecrease?: boolean | PipelineRef;
|
|
6025
6342
|
/**
|
|
6026
|
-
* When true, every face is
|
|
6027
|
-
*
|
|
6343
|
+
* When true, every face is meshed at exactly the requested precision; when false, a face's
|
|
6344
|
+
* precision is raised to the average of its edges' and to twice its tolerance.
|
|
6028
6345
|
*/
|
|
6029
6346
|
forceFaceDeflection?: boolean | PipelineRef;
|
|
6030
6347
|
};
|
|
@@ -6128,6 +6445,35 @@ export interface OperationParams {
|
|
|
6128
6445
|
*/
|
|
6129
6446
|
untilFaceIndex?: number | PipelineRef;
|
|
6130
6447
|
};
|
|
6448
|
+
/**
|
|
6449
|
+
* Grows a boss as `boss` does, and reports two histories: the base's, then the profile's, whose
|
|
6450
|
+
* `facesFromEdges` holds the side each profile edge swept and `lastFaces` the far end.
|
|
6451
|
+
*
|
|
6452
|
+
* A face the kernel leaves unreported is found from where it lies, and left out when it could
|
|
6453
|
+
* belong to more than one input.
|
|
6454
|
+
*/
|
|
6455
|
+
"occt.features.bossWithHistory": {
|
|
6456
|
+
/** The base shape the feature is built on. */
|
|
6457
|
+
shape: unknown | PipelineRef;
|
|
6458
|
+
/** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
|
|
6459
|
+
profile: unknown | PipelineRef;
|
|
6460
|
+
/** The face of the base the profile lies on, counted from 0 as `shapes.face.getFaces` lists them. */
|
|
6461
|
+
sketchFaceIndex?: number | PipelineRef;
|
|
6462
|
+
/** The direction the profile travels in: away from the base for a boss, into it for a pocket. */
|
|
6463
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6464
|
+
/**
|
|
6465
|
+
* Where the feature stops: after `length`, at the face `untilFaceIndex` names, or once it has
|
|
6466
|
+
* passed through the whole base.
|
|
6467
|
+
*/
|
|
6468
|
+
extent?: "length" | "untilFace" | "throughAll" | PipelineRef;
|
|
6469
|
+
/** How far the profile travels when `extent` is `length`, in model units. */
|
|
6470
|
+
length?: number | PipelineRef;
|
|
6471
|
+
/**
|
|
6472
|
+
* The face the feature stops at when `extent` is `untilFace`: one the profile meets on its way,
|
|
6473
|
+
* such as the underside of an overhang or a void's ceiling.
|
|
6474
|
+
*/
|
|
6475
|
+
untilFaceIndex?: number | PipelineRef;
|
|
6476
|
+
};
|
|
6131
6477
|
/**
|
|
6132
6478
|
* Drills holes as `holes` does, each with a wider, flat-bottomed counterbore at its mouth that
|
|
6133
6479
|
* sinks a screw head below the surface.
|
|
@@ -6163,6 +6509,40 @@ export interface OperationParams {
|
|
|
6163
6509
|
*/
|
|
6164
6510
|
counterboreDepth?: number | PipelineRef;
|
|
6165
6511
|
};
|
|
6512
|
+
/**
|
|
6513
|
+
* Drills holes as `counterboredHoles` does, and reports a history for the shape, then one per hole in the
|
|
6514
|
+
* order of `frames`.
|
|
6515
|
+
*
|
|
6516
|
+
* `histories[i + 1].faces.flat()` lists every face hole `i` left in the shape.
|
|
6517
|
+
*/
|
|
6518
|
+
"occt.features.counterboredHolesWithHistory": {
|
|
6519
|
+
/** The shape to drill into. */
|
|
6520
|
+
shape: unknown | PipelineRef;
|
|
6521
|
+
/**
|
|
6522
|
+
* One hole per frame: the origin is where the hole enters and the normal points out of the
|
|
6523
|
+
* material, so the hole runs against it.
|
|
6524
|
+
*/
|
|
6525
|
+
frames: unknown[] | PipelineRef;
|
|
6526
|
+
/** The diameter of each hole, in model units. */
|
|
6527
|
+
diameter?: number | PipelineRef;
|
|
6528
|
+
/**
|
|
6529
|
+
* How deep each hole goes from its entry, in model units, not counting a drill point; 0 drills
|
|
6530
|
+
* through the whole shape.
|
|
6531
|
+
*/
|
|
6532
|
+
depth?: number | PipelineRef;
|
|
6533
|
+
/**
|
|
6534
|
+
* The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
|
|
6535
|
+
* bottom, and 118 is the point of a twist drill.
|
|
6536
|
+
*/
|
|
6537
|
+
tipAngle?: number | PipelineRef;
|
|
6538
|
+
/** The diameter of the counterbore, in model units; it must be wider than `diameter`. */
|
|
6539
|
+
counterboreDiameter?: number | PipelineRef;
|
|
6540
|
+
/**
|
|
6541
|
+
* How deep the counterbore goes from the hole's entry, in model units; it must stay shallower
|
|
6542
|
+
* than a hole of a given `depth`.
|
|
6543
|
+
*/
|
|
6544
|
+
counterboreDepth?: number | PipelineRef;
|
|
6545
|
+
};
|
|
6166
6546
|
/**
|
|
6167
6547
|
* Drills holes as `holes` does, each with a cone-shaped countersink at its mouth that sinks a
|
|
6168
6548
|
* flat screw head flush with the surface.
|
|
@@ -6201,6 +6581,43 @@ export interface OperationParams {
|
|
|
6201
6581
|
*/
|
|
6202
6582
|
countersinkAngle?: number | PipelineRef;
|
|
6203
6583
|
};
|
|
6584
|
+
/**
|
|
6585
|
+
* Drills holes as `countersunkHoles` does, and reports a history for the shape, then one per hole in the
|
|
6586
|
+
* order of `frames`.
|
|
6587
|
+
*
|
|
6588
|
+
* `histories[i + 1].faces.flat()` lists every face hole `i` left in the shape.
|
|
6589
|
+
*/
|
|
6590
|
+
"occt.features.countersunkHolesWithHistory": {
|
|
6591
|
+
/** The shape to drill into. */
|
|
6592
|
+
shape: unknown | PipelineRef;
|
|
6593
|
+
/**
|
|
6594
|
+
* One hole per frame: the origin is where the hole enters and the normal points out of the
|
|
6595
|
+
* material, so the hole runs against it.
|
|
6596
|
+
*/
|
|
6597
|
+
frames: unknown[] | PipelineRef;
|
|
6598
|
+
/** The diameter of each hole, in model units. */
|
|
6599
|
+
diameter?: number | PipelineRef;
|
|
6600
|
+
/**
|
|
6601
|
+
* How deep each hole goes from its entry, in model units, not counting a drill point; 0 drills
|
|
6602
|
+
* through the whole shape.
|
|
6603
|
+
*/
|
|
6604
|
+
depth?: number | PipelineRef;
|
|
6605
|
+
/**
|
|
6606
|
+
* The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
|
|
6607
|
+
* bottom, and 118 is the point of a twist drill.
|
|
6608
|
+
*/
|
|
6609
|
+
tipAngle?: number | PipelineRef;
|
|
6610
|
+
/**
|
|
6611
|
+
* The diameter of the countersink where it meets the surface, in model units; it must be wider
|
|
6612
|
+
* than `diameter`.
|
|
6613
|
+
*/
|
|
6614
|
+
countersinkDiameter?: number | PipelineRef;
|
|
6615
|
+
/**
|
|
6616
|
+
* The full angle of the countersink cone, in degrees, such as 90 or 82 for common flat head
|
|
6617
|
+
* screws.
|
|
6618
|
+
*/
|
|
6619
|
+
countersinkAngle?: number | PipelineRef;
|
|
6620
|
+
};
|
|
6204
6621
|
/**
|
|
6205
6622
|
* Cuts a groove into a base: the part of the base's section on the left of a wire as it runs,
|
|
6206
6623
|
* seen from the side the frame's normal points to, removed across the plane.
|
|
@@ -6255,19 +6672,75 @@ export interface OperationParams {
|
|
|
6255
6672
|
*/
|
|
6256
6673
|
depth?: number | PipelineRef;
|
|
6257
6674
|
/**
|
|
6258
|
-
* The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
|
|
6259
|
-
* bottom, and 118 is the point of a twist drill.
|
|
6675
|
+
* The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
|
|
6676
|
+
* bottom, and 118 is the point of a twist drill.
|
|
6677
|
+
*/
|
|
6678
|
+
tipAngle?: number | PipelineRef;
|
|
6679
|
+
};
|
|
6680
|
+
/**
|
|
6681
|
+
* Drills holes as `holes` does, and reports a history for the shape, then one per hole in the
|
|
6682
|
+
* order of `frames`.
|
|
6683
|
+
*
|
|
6684
|
+
* `histories[i + 1].faces.flat()` lists every face hole `i` left in the shape.
|
|
6685
|
+
*/
|
|
6686
|
+
"occt.features.holesWithHistory": {
|
|
6687
|
+
/** The shape to drill into. */
|
|
6688
|
+
shape: unknown | PipelineRef;
|
|
6689
|
+
/**
|
|
6690
|
+
* One hole per frame: the origin is where the hole enters and the normal points out of the
|
|
6691
|
+
* material, so the hole runs against it.
|
|
6692
|
+
*/
|
|
6693
|
+
frames: unknown[] | PipelineRef;
|
|
6694
|
+
/** The diameter of each hole, in model units. */
|
|
6695
|
+
diameter?: number | PipelineRef;
|
|
6696
|
+
/**
|
|
6697
|
+
* How deep each hole goes from its entry, in model units, not counting a drill point; 0 drills
|
|
6698
|
+
* through the whole shape.
|
|
6699
|
+
*/
|
|
6700
|
+
depth?: number | PipelineRef;
|
|
6701
|
+
/**
|
|
6702
|
+
* The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
|
|
6703
|
+
* bottom, and 118 is the point of a twist drill.
|
|
6704
|
+
*/
|
|
6705
|
+
tipAngle?: number | PipelineRef;
|
|
6706
|
+
};
|
|
6707
|
+
/**
|
|
6708
|
+
* Cuts a pocket into a base by sweeping a profile face that lies on one of its faces along
|
|
6709
|
+
* `direction`, which points into the base.
|
|
6710
|
+
*
|
|
6711
|
+
* `extent` stops it after `length`, at the face `untilFaceIndex` names, such as the ceiling of a
|
|
6712
|
+
* void or the far side of the base, or through all of it.
|
|
6713
|
+
*/
|
|
6714
|
+
"occt.features.pocket": {
|
|
6715
|
+
/** The base shape the feature is built on. */
|
|
6716
|
+
shape: unknown | PipelineRef;
|
|
6717
|
+
/** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
|
|
6718
|
+
profile: unknown | PipelineRef;
|
|
6719
|
+
/** The face of the base the profile lies on, counted from 0 as `shapes.face.getFaces` lists them. */
|
|
6720
|
+
sketchFaceIndex?: number | PipelineRef;
|
|
6721
|
+
/** The direction the profile travels in: away from the base for a boss, into it for a pocket. */
|
|
6722
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6723
|
+
/**
|
|
6724
|
+
* Where the feature stops: after `length`, at the face `untilFaceIndex` names, or once it has
|
|
6725
|
+
* passed through the whole base.
|
|
6726
|
+
*/
|
|
6727
|
+
extent?: "length" | "untilFace" | "throughAll" | PipelineRef;
|
|
6728
|
+
/** How far the profile travels when `extent` is `length`, in model units. */
|
|
6729
|
+
length?: number | PipelineRef;
|
|
6730
|
+
/**
|
|
6731
|
+
* The face the feature stops at when `extent` is `untilFace`: one the profile meets on its way,
|
|
6732
|
+
* such as the underside of an overhang or a void's ceiling.
|
|
6260
6733
|
*/
|
|
6261
|
-
|
|
6734
|
+
untilFaceIndex?: number | PipelineRef;
|
|
6262
6735
|
};
|
|
6263
6736
|
/**
|
|
6264
|
-
* Cuts a pocket
|
|
6265
|
-
* `
|
|
6737
|
+
* Cuts a pocket as `pocket` does, and reports two histories: the base's, then the profile's,
|
|
6738
|
+
* whose `facesFromEdges` holds the wall each profile edge swept and `lastFaces` the floor.
|
|
6266
6739
|
*
|
|
6267
|
-
*
|
|
6268
|
-
*
|
|
6740
|
+
* A face the kernel leaves unreported is found from where it lies, and left out when it could
|
|
6741
|
+
* belong to more than one input.
|
|
6269
6742
|
*/
|
|
6270
|
-
"occt.features.
|
|
6743
|
+
"occt.features.pocketWithHistory": {
|
|
6271
6744
|
/** The base shape the feature is built on. */
|
|
6272
6745
|
shape: unknown | PipelineRef;
|
|
6273
6746
|
/** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
|
|
@@ -6312,6 +6785,26 @@ export interface OperationParams {
|
|
|
6312
6785
|
*/
|
|
6313
6786
|
distances?: number[] | PipelineRef;
|
|
6314
6787
|
};
|
|
6788
|
+
/**
|
|
6789
|
+
* Moves faces as `pushPullFaces` does, and reports one history, the shape's: each face, edge and
|
|
6790
|
+
* vertex lists what it became, so a moved face is followed to where it went, curved ones too.
|
|
6791
|
+
*/
|
|
6792
|
+
"occt.features.pushPullFacesWithHistory": {
|
|
6793
|
+
/** The shape whose faces move. */
|
|
6794
|
+
shape: unknown | PipelineRef;
|
|
6795
|
+
/** The faces to move, counted from 0 as `shapes.face.getFaces` lists them, each at most once. */
|
|
6796
|
+
indexes: number[] | PipelineRef;
|
|
6797
|
+
/**
|
|
6798
|
+
* How far every chosen face moves along its outward normal, in model units; a negative
|
|
6799
|
+
* distance moves it inward.
|
|
6800
|
+
*/
|
|
6801
|
+
distance?: number | PipelineRef;
|
|
6802
|
+
/**
|
|
6803
|
+
* One distance per entry of `indexes`, in the same order, used instead of `distance`; left out,
|
|
6804
|
+
* every chosen face moves by `distance`.
|
|
6805
|
+
*/
|
|
6806
|
+
distances?: number[] | PipelineRef;
|
|
6807
|
+
};
|
|
6315
6808
|
/**
|
|
6316
6809
|
* Removes faces from a solid and closes the gap by extending the faces around them, as when a
|
|
6317
6810
|
* hole or a rounded edge is deleted from a part.
|
|
@@ -6325,6 +6818,16 @@ export interface OperationParams {
|
|
|
6325
6818
|
/** The faces to remove, counted from 0 as `shapes.face.getFaces` lists them. */
|
|
6326
6819
|
indexes: number[] | PipelineRef;
|
|
6327
6820
|
};
|
|
6821
|
+
/**
|
|
6822
|
+
* Removes faces as `removeFaces` does, and reports one history, the shape's: a removed face's
|
|
6823
|
+
* `faces` entry is empty, and each face that stays lists the face it became, grown over the gap.
|
|
6824
|
+
*/
|
|
6825
|
+
"occt.features.removeFacesWithHistory": {
|
|
6826
|
+
/** The shape to remove faces from; it must hold solids only. */
|
|
6827
|
+
shape: unknown | PipelineRef;
|
|
6828
|
+
/** The faces to remove, counted from 0 as `shapes.face.getFaces` lists them. */
|
|
6829
|
+
indexes: number[] | PipelineRef;
|
|
6830
|
+
};
|
|
6328
6831
|
/**
|
|
6329
6832
|
* Adds a ring to a base by turning a profile face about an axis, such as a collar round a shaft:
|
|
6330
6833
|
* the profile lies on a face of the base, in a plane through the axis.
|
|
@@ -6675,9 +7178,9 @@ export interface OperationParams {
|
|
|
6675
7178
|
/**
|
|
6676
7179
|
* Rounds the corners of a flat wire or face with arcs of a given radius.
|
|
6677
7180
|
*
|
|
6678
|
-
* Without `indexes` every corner is rounded with `radius`. With `indexes`, counted from 1
|
|
6679
|
-
*
|
|
6680
|
-
*
|
|
7181
|
+
* Without `indexes` every corner is rounded with `radius`. With `indexes`, counted from 1, only
|
|
7182
|
+
* those corners are rounded, each with `radius` or the matching entry of `radiusList`, as long
|
|
7183
|
+
* as `indexes`. Straight corners stay; free-form wires use `fillet3DWire`.
|
|
6681
7184
|
*/
|
|
6682
7185
|
"occt.fillets.fillet2d": {
|
|
6683
7186
|
/** The shape whose edges, or whose corners for a flat wire or face, are rounded. */
|
|
@@ -7373,6 +7876,16 @@ export interface OperationParams {
|
|
|
7373
7876
|
/** The BREP file's text, or a File or Blob that holds it. */
|
|
7374
7877
|
brepData: unknown | PipelineRef;
|
|
7375
7878
|
};
|
|
7879
|
+
/**
|
|
7880
|
+
* Reads a binary BREP file, the bytes `io.saveShapeBrepBinary` writes, back into the shape it
|
|
7881
|
+
* holds, with its faces and edges in the same order.
|
|
7882
|
+
*
|
|
7883
|
+
* The bytes are checked first: damaged ones, or ones not in version 4, are refused, saying where.
|
|
7884
|
+
*/
|
|
7885
|
+
"occt.io.loadBrepBinary": {
|
|
7886
|
+
/** The binary BREP file's bytes, or a File or Blob that holds them. */
|
|
7887
|
+
brepData: unknown | PipelineRef;
|
|
7888
|
+
};
|
|
7376
7889
|
/** 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). */
|
|
7377
7890
|
"occt.io.loadSTEPorIGES": {
|
|
7378
7891
|
/** File content: string for plain text files (.step, .stp, .iges, .igs), or base64-encoded ArrayBuffer for compressed files (.stpz, .igz). */
|
|
@@ -7436,6 +7949,11 @@ export interface OperationParams {
|
|
|
7436
7949
|
* itself only returns the text.
|
|
7437
7950
|
*/
|
|
7438
7951
|
tryDownload?: boolean | PipelineRef;
|
|
7952
|
+
/**
|
|
7953
|
+
* When true, the mesh a shape carries is written with it, so a shape read back draws without
|
|
7954
|
+
* meshing again; false writes only the exact geometry.
|
|
7955
|
+
*/
|
|
7956
|
+
withTriangulation?: boolean | PipelineRef;
|
|
7439
7957
|
};
|
|
7440
7958
|
/**
|
|
7441
7959
|
* Writes a shape as BREP, the text format that keeps its exact geometry and topology, and
|
|
@@ -7454,14 +7972,65 @@ export interface OperationParams {
|
|
|
7454
7972
|
* itself only returns the text.
|
|
7455
7973
|
*/
|
|
7456
7974
|
tryDownload?: boolean | PipelineRef;
|
|
7975
|
+
/**
|
|
7976
|
+
* When true, the mesh a shape carries is written with it, so a shape read back draws without
|
|
7977
|
+
* meshing again; false writes only the exact geometry.
|
|
7978
|
+
*/
|
|
7979
|
+
withTriangulation?: boolean | PipelineRef;
|
|
7980
|
+
};
|
|
7981
|
+
/**
|
|
7982
|
+
* Writes a shape as binary BREP, the exact geometry and topology `saveShapeBrep` writes as text,
|
|
7983
|
+
* in bytes, and starts a browser download of the file.
|
|
7984
|
+
*
|
|
7985
|
+
* `io.loadBrepBinary` reads the file back into the same shape. `fileName` names the download and
|
|
7986
|
+
* `tryDownload` false skips it; `saveShapeBrepBinaryAndReturn` gives the bytes instead.
|
|
7987
|
+
*/
|
|
7988
|
+
"occt.io.saveShapeBrepBinary": {
|
|
7989
|
+
/** The shape written to the file. */
|
|
7990
|
+
shape: unknown | PipelineRef;
|
|
7991
|
+
/** The name the downloaded file gets. */
|
|
7992
|
+
fileName?: string | PipelineRef;
|
|
7993
|
+
/**
|
|
7994
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
7995
|
+
* itself only returns the bytes.
|
|
7996
|
+
*/
|
|
7997
|
+
tryDownload?: boolean | PipelineRef;
|
|
7998
|
+
/**
|
|
7999
|
+
* When true, the mesh a shape carries is written with it, so a shape read back draws without
|
|
8000
|
+
* meshing again; false writes only the exact geometry.
|
|
8001
|
+
*/
|
|
8002
|
+
withTriangulation?: boolean | PipelineRef;
|
|
8003
|
+
};
|
|
8004
|
+
/**
|
|
8005
|
+
* Writes a shape as binary BREP, the exact geometry and topology `saveShapeBrep` writes as text,
|
|
8006
|
+
* in bytes, and returns them.
|
|
8007
|
+
*
|
|
8008
|
+
* `io.loadBrepBinary` reads them back with every face and edge at the same index.
|
|
8009
|
+
* `withTriangulation` false leaves out the mesh.
|
|
8010
|
+
*/
|
|
8011
|
+
"occt.io.saveShapeBrepBinaryAndReturn": {
|
|
8012
|
+
/** The shape written to the file. */
|
|
8013
|
+
shape: unknown | PipelineRef;
|
|
8014
|
+
/** The name the downloaded file gets. */
|
|
8015
|
+
fileName?: string | PipelineRef;
|
|
8016
|
+
/**
|
|
8017
|
+
* When true, a browser download of the file is started where that is possible; the kernel
|
|
8018
|
+
* itself only returns the bytes.
|
|
8019
|
+
*/
|
|
8020
|
+
tryDownload?: boolean | PipelineRef;
|
|
8021
|
+
/**
|
|
8022
|
+
* When true, the mesh a shape carries is written with it, so a shape read back draws without
|
|
8023
|
+
* meshing again; false writes only the exact geometry.
|
|
8024
|
+
*/
|
|
8025
|
+
withTriangulation?: boolean | PipelineRef;
|
|
7457
8026
|
};
|
|
7458
8027
|
/**
|
|
7459
8028
|
* Triangulates a shape, writes it as OBJ, the mesh format most 3D programs read, and starts a
|
|
7460
8029
|
* browser download of the file.
|
|
7461
8030
|
*
|
|
7462
|
-
* `precision` is the meshing tolerance in model units and `adjustYtoZ`
|
|
7463
|
-
* file name may hold no spaces or slashes; `tryDownload` false skips the
|
|
7464
|
-
* `saveShapeObjAndReturn` gives the text instead.
|
|
8031
|
+
* `precision` is the meshing tolerance in model units and `adjustYtoZ` swaps Y and Z, which
|
|
8032
|
+
* mirrors the shape. The file name may hold no spaces or slashes; `tryDownload` false skips the
|
|
8033
|
+
* download, and `saveShapeObjAndReturn` gives the text instead.
|
|
7465
8034
|
*/
|
|
7466
8035
|
"occt.io.saveShapeObj": {
|
|
7467
8036
|
/** The shape written to the file. */
|
|
@@ -7476,7 +8045,10 @@ export interface OperationParams {
|
|
|
7476
8045
|
* and makes a bigger file.
|
|
7477
8046
|
*/
|
|
7478
8047
|
precision?: number | PipelineRef;
|
|
7479
|
-
/**
|
|
8048
|
+
/**
|
|
8049
|
+
* When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
|
|
8050
|
+
* turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8051
|
+
*/
|
|
7480
8052
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7481
8053
|
/**
|
|
7482
8054
|
* When true, a browser download of the OBJ file and of any material library is started where
|
|
@@ -7488,9 +8060,9 @@ export interface OperationParams {
|
|
|
7488
8060
|
* Triangulates a shape and writes it as OBJ, the mesh format most 3D programs read, returning
|
|
7489
8061
|
* the file's text.
|
|
7490
8062
|
*
|
|
7491
|
-
* `precision` is the meshing tolerance in model units, `adjustYtoZ`
|
|
7492
|
-
* coordinates keep six decimals. `mtl` stays empty, since a shape
|
|
7493
|
-
* `assembly.manager.exportDocumentToObj` writes colored parts.
|
|
8063
|
+
* `precision` is the meshing tolerance in model units, `adjustYtoZ` swaps Y and Z, which
|
|
8064
|
+
* mirrors the shape, and coordinates keep six decimals. `mtl` stays empty, since a shape
|
|
8065
|
+
* carries no colors; `assembly.manager.exportDocumentToObj` writes colored parts.
|
|
7494
8066
|
*/
|
|
7495
8067
|
"occt.io.saveShapeObjAndReturn": {
|
|
7496
8068
|
/** The shape written to the file. */
|
|
@@ -7505,7 +8077,10 @@ export interface OperationParams {
|
|
|
7505
8077
|
* and makes a bigger file.
|
|
7506
8078
|
*/
|
|
7507
8079
|
precision?: number | PipelineRef;
|
|
7508
|
-
/**
|
|
8080
|
+
/**
|
|
8081
|
+
* When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
|
|
8082
|
+
* turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8083
|
+
*/
|
|
7509
8084
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7510
8085
|
/**
|
|
7511
8086
|
* When true, a browser download of the OBJ file and of any material library is started where
|
|
@@ -7517,9 +8092,9 @@ export interface OperationParams {
|
|
|
7517
8092
|
* Triangulates a shape, writes it as ASCII PLY with a normal per vertex, and starts a browser
|
|
7518
8093
|
* download of the file.
|
|
7519
8094
|
*
|
|
7520
|
-
* `precision` is the meshing tolerance in model units and `adjustYtoZ`
|
|
7521
|
-
* `fileName` names the download and `tryDownload` false skips it;
|
|
7522
|
-
* the text instead.
|
|
8095
|
+
* `precision` is the meshing tolerance in model units and `adjustYtoZ` swaps Y and Z, which
|
|
8096
|
+
* mirrors the shape. `fileName` names the download and `tryDownload` false skips it;
|
|
8097
|
+
* `saveShapePlyAndReturn` gives the text instead.
|
|
7523
8098
|
*/
|
|
7524
8099
|
"occt.io.saveShapePly": {
|
|
7525
8100
|
/** The shape written to the file. */
|
|
@@ -7531,7 +8106,10 @@ export interface OperationParams {
|
|
|
7531
8106
|
* and makes a bigger file.
|
|
7532
8107
|
*/
|
|
7533
8108
|
precision?: number | PipelineRef;
|
|
7534
|
-
/**
|
|
8109
|
+
/**
|
|
8110
|
+
* When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
|
|
8111
|
+
* turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8112
|
+
*/
|
|
7535
8113
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7536
8114
|
/**
|
|
7537
8115
|
* When true, a browser download of the file is started where that is possible; the kernel
|
|
@@ -7544,7 +8122,8 @@ export interface OperationParams {
|
|
|
7544
8122
|
* scanning tools read, returning the file's text.
|
|
7545
8123
|
*
|
|
7546
8124
|
* Coordinates keep six significant digits, so past 1000 units they keep two decimals.
|
|
7547
|
-
* `precision` is the meshing tolerance in model units and `adjustYtoZ`
|
|
8125
|
+
* `precision` is the meshing tolerance in model units and `adjustYtoZ` swaps Y and Z, which
|
|
8126
|
+
* mirrors the shape.
|
|
7548
8127
|
*/
|
|
7549
8128
|
"occt.io.saveShapePlyAndReturn": {
|
|
7550
8129
|
/** The shape written to the file. */
|
|
@@ -7556,7 +8135,10 @@ export interface OperationParams {
|
|
|
7556
8135
|
* and makes a bigger file.
|
|
7557
8136
|
*/
|
|
7558
8137
|
precision?: number | PipelineRef;
|
|
7559
|
-
/**
|
|
8138
|
+
/**
|
|
8139
|
+
* When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
|
|
8140
|
+
* turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8141
|
+
*/
|
|
7560
8142
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7561
8143
|
/**
|
|
7562
8144
|
* When true, a browser download of the file is started where that is possible; the kernel
|
|
@@ -7568,20 +8150,23 @@ export interface OperationParams {
|
|
|
7568
8150
|
* Writes a shape as STEP, the standard exchange format for exact CAD geometry, and starts a
|
|
7569
8151
|
* browser download of the file.
|
|
7570
8152
|
*
|
|
7571
|
-
* With `adjustYtoZ` true the shape
|
|
7572
|
-
*
|
|
7573
|
-
*
|
|
8153
|
+
* With `adjustYtoZ` true, Y and Z swap, which mirrors the shape; to keep it as built, turn it 90
|
|
8154
|
+
* degrees about X with `transforms.rotate` first. `fileName` names the download, `tryDownload`
|
|
8155
|
+
* false skips it, and `saveShapeSTEPAndReturn` gives the text instead.
|
|
7574
8156
|
*/
|
|
7575
8157
|
"occt.io.saveShapeSTEP": {
|
|
7576
8158
|
/** The shape written to the file. */
|
|
7577
8159
|
shape: unknown | PipelineRef;
|
|
7578
8160
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
7579
8161
|
fileName?: string | PipelineRef;
|
|
7580
|
-
/**
|
|
8162
|
+
/**
|
|
8163
|
+
* When true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape. To keep it as
|
|
8164
|
+
* built, turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8165
|
+
*/
|
|
7581
8166
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7582
8167
|
/**
|
|
7583
|
-
* When true, the
|
|
7584
|
-
*
|
|
8168
|
+
* When true, the swap of `adjustYtoZ` becomes a turn of -90 degrees about X: the shape is not
|
|
8169
|
+
* mirrored but stands upside down in a Z-up tool.
|
|
7585
8170
|
*/
|
|
7586
8171
|
fromRightHanded?: boolean | PipelineRef;
|
|
7587
8172
|
/**
|
|
@@ -7594,20 +8179,23 @@ export interface OperationParams {
|
|
|
7594
8179
|
* Writes a shape as STEP, the standard exchange format for exact CAD geometry, and returns the
|
|
7595
8180
|
* file's text.
|
|
7596
8181
|
*
|
|
7597
|
-
* With `adjustYtoZ` true
|
|
7598
|
-
* `
|
|
7599
|
-
* matter only where a browser download can be started.
|
|
8182
|
+
* With `adjustYtoZ` true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape;
|
|
8183
|
+
* turn it 90 degrees about X with `transforms.rotate` first to keep it as built. `fileName` and
|
|
8184
|
+
* `tryDownload` matter only where a browser download can be started.
|
|
7600
8185
|
*/
|
|
7601
8186
|
"occt.io.saveShapeSTEPAndReturn": {
|
|
7602
8187
|
/** The shape written to the file. */
|
|
7603
8188
|
shape: unknown | PipelineRef;
|
|
7604
8189
|
/** The name the downloaded file gets; `.step` is appended when missing. */
|
|
7605
8190
|
fileName?: string | PipelineRef;
|
|
7606
|
-
/**
|
|
8191
|
+
/**
|
|
8192
|
+
* When true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape. To keep it as
|
|
8193
|
+
* built, turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8194
|
+
*/
|
|
7607
8195
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7608
8196
|
/**
|
|
7609
|
-
* When true, the
|
|
7610
|
-
*
|
|
8197
|
+
* When true, the swap of `adjustYtoZ` becomes a turn of -90 degrees about X: the shape is not
|
|
8198
|
+
* mirrored but stands upside down in a Z-up tool.
|
|
7611
8199
|
*/
|
|
7612
8200
|
fromRightHanded?: boolean | PipelineRef;
|
|
7613
8201
|
/**
|
|
@@ -7620,9 +8208,9 @@ export interface OperationParams {
|
|
|
7620
8208
|
* Triangulates a shape, writes it as STL, the mesh format 3D printers read, and starts a browser
|
|
7621
8209
|
* download of the file.
|
|
7622
8210
|
*
|
|
7623
|
-
* `precision` is the meshing tolerance in model units, `adjustYtoZ`
|
|
7624
|
-
* `binary` writes the smaller binary form. `fileName` names the
|
|
7625
|
-
* skips it. `saveShapeStlAndReturn` gives the file instead.
|
|
8211
|
+
* `precision` is the meshing tolerance in model units, `adjustYtoZ` swaps Y and Z, which
|
|
8212
|
+
* mirrors the shape, and `binary` writes the smaller binary form. `fileName` names the
|
|
8213
|
+
* download, `tryDownload` false skips it. `saveShapeStlAndReturn` gives the file instead.
|
|
7626
8214
|
*/
|
|
7627
8215
|
"occt.io.saveShapeStl": {
|
|
7628
8216
|
/** The shape written to the file. */
|
|
@@ -7634,7 +8222,10 @@ export interface OperationParams {
|
|
|
7634
8222
|
* and makes a bigger file.
|
|
7635
8223
|
*/
|
|
7636
8224
|
precision?: number | PipelineRef;
|
|
7637
|
-
/**
|
|
8225
|
+
/**
|
|
8226
|
+
* When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
|
|
8227
|
+
* turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8228
|
+
*/
|
|
7638
8229
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7639
8230
|
/**
|
|
7640
8231
|
* When true, a browser download of the file is started where that is possible; the kernel
|
|
@@ -7652,8 +8243,8 @@ export interface OperationParams {
|
|
|
7652
8243
|
* returning the file's text, or its bytes when `binary` is true.
|
|
7653
8244
|
*
|
|
7654
8245
|
* `precision` is the meshing tolerance in model units; smaller values follow curved surfaces
|
|
7655
|
-
* more closely. `adjustYtoZ`
|
|
7656
|
-
*
|
|
8246
|
+
* more closely. `adjustYtoZ` swaps Y and Z, which mirrors the shape. `fileName` and
|
|
8247
|
+
* `tryDownload` matter only for a download.
|
|
7657
8248
|
*/
|
|
7658
8249
|
"occt.io.saveShapeStlAndReturn": {
|
|
7659
8250
|
/** The shape written to the file. */
|
|
@@ -7665,7 +8256,10 @@ export interface OperationParams {
|
|
|
7665
8256
|
* and makes a bigger file.
|
|
7666
8257
|
*/
|
|
7667
8258
|
precision?: number | PipelineRef;
|
|
7668
|
-
/**
|
|
8259
|
+
/**
|
|
8260
|
+
* When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
|
|
8261
|
+
* turn it 90 degrees about X with `transforms.rotate` instead.
|
|
8262
|
+
*/
|
|
7669
8263
|
adjustYtoZ?: boolean | PipelineRef;
|
|
7670
8264
|
/**
|
|
7671
8265
|
* When true, a browser download of the file is started where that is possible; the kernel
|
|
@@ -8061,6 +8655,66 @@ export interface OperationParams {
|
|
|
8061
8655
|
*/
|
|
8062
8656
|
endVertex?: [number, number, number] | PipelineRef;
|
|
8063
8657
|
};
|
|
8658
|
+
/**
|
|
8659
|
+
* Lofts as `loftAdvanced` does, and reports what each section in `shapes` became, as
|
|
8660
|
+
* `loftWithHistory` does: the sides along each section edge, and the caps at the start and end
|
|
8661
|
+
* of a solid.
|
|
8662
|
+
*
|
|
8663
|
+
* A `periodic` loft runs through curves resampled from the sections rather than the sections
|
|
8664
|
+
* themselves, so it has no history to report and is refused.
|
|
8665
|
+
*/
|
|
8666
|
+
"occt.operations.loftAdvancedWithHistory": {
|
|
8667
|
+
/** The section wires, or edges, in the order the surface passes through them. */
|
|
8668
|
+
shapes: unknown[] | PipelineRef;
|
|
8669
|
+
/** When true, the loft is capped into a solid; the sections must be closed for that. */
|
|
8670
|
+
makeSolid?: boolean | PipelineRef;
|
|
8671
|
+
/** When true, the surface loops from the last section back to the first. */
|
|
8672
|
+
closed?: boolean | PipelineRef;
|
|
8673
|
+
/**
|
|
8674
|
+
* When true, the closed loop is made smooth across the seam by resampling the sections; needs
|
|
8675
|
+
* `closed`.
|
|
8676
|
+
*/
|
|
8677
|
+
periodic?: boolean | PipelineRef;
|
|
8678
|
+
/**
|
|
8679
|
+
* When true, the patches between sections are ruled surfaces with straight lines instead of a
|
|
8680
|
+
* smooth blend.
|
|
8681
|
+
*/
|
|
8682
|
+
straight?: boolean | PipelineRef;
|
|
8683
|
+
/** How many points each section is resampled into for a periodic loft. */
|
|
8684
|
+
nrPeriodicSections?: number | PipelineRef;
|
|
8685
|
+
/** When true, the kernel smooths the fitted surface. */
|
|
8686
|
+
useSmoothing?: boolean | PipelineRef;
|
|
8687
|
+
/** The highest polynomial degree the surface may use across the sections. */
|
|
8688
|
+
maxUDegree?: number | PipelineRef;
|
|
8689
|
+
/** How far the fitted surface may stray from the sections, in model units. */
|
|
8690
|
+
tolerance?: number | PipelineRef;
|
|
8691
|
+
/**
|
|
8692
|
+
* How the sections are parametrized before fitting: by chord length, centripetal, or
|
|
8693
|
+
* isoparametric; centripetal handles uneven sections best.
|
|
8694
|
+
*/
|
|
8695
|
+
parType?: "approxChordLength" | "approxCentripetal" | "approxIsoParametric" | PipelineRef;
|
|
8696
|
+
/**
|
|
8697
|
+
* A point the loft closes to before the first section, making a pointed end; leave it out for
|
|
8698
|
+
* an open end.
|
|
8699
|
+
*/
|
|
8700
|
+
startVertex?: [number, number, number] | PipelineRef;
|
|
8701
|
+
/**
|
|
8702
|
+
* A point the loft closes to after the last section, making a pointed end; leave it out for an
|
|
8703
|
+
* open end.
|
|
8704
|
+
*/
|
|
8705
|
+
endVertex?: [number, number, number] | PipelineRef;
|
|
8706
|
+
};
|
|
8707
|
+
/**
|
|
8708
|
+
* Lofts as `loft` does, and reports one history per section: `facesFromEdges` holds the skin
|
|
8709
|
+
* along each section edge, the first section's `firstFaces` and the last's `lastFaces` the caps
|
|
8710
|
+
* of a solid.
|
|
8711
|
+
*/
|
|
8712
|
+
"occt.operations.loftWithHistory": {
|
|
8713
|
+
/** The section wires, or edges, in the order the surface passes through them. */
|
|
8714
|
+
shapes: unknown[] | PipelineRef;
|
|
8715
|
+
/** When true, the loft is capped into a solid; the sections must be closed for that. */
|
|
8716
|
+
makeSolid?: boolean | PipelineRef;
|
|
8717
|
+
};
|
|
8064
8718
|
/**
|
|
8065
8719
|
* Hollows a solid into a shell of the given wall thickness by removing the listed faces and
|
|
8066
8720
|
* offsetting the rest.
|
|
@@ -8099,6 +8753,41 @@ export interface OperationParams {
|
|
|
8099
8753
|
/** When true, the internal edges the offset can leave on the walls are removed from the result. */
|
|
8100
8754
|
removeIntEdges?: boolean | PipelineRef;
|
|
8101
8755
|
};
|
|
8756
|
+
/**
|
|
8757
|
+
* Hollows a solid as `makeThickSolidByJoin` does, and reports what became of its faces: each
|
|
8758
|
+
* kept face stays (`faces`) and gains the inner wall offset from it (`facesFromFaces`), and each
|
|
8759
|
+
* removed face becomes the rim left where it was.
|
|
8760
|
+
*/
|
|
8761
|
+
"occt.operations.makeThickSolidByJoinWithHistory": {
|
|
8762
|
+
/** The solid to hollow out. */
|
|
8763
|
+
shape: unknown | PipelineRef;
|
|
8764
|
+
/** The faces of the solid to remove, leaving the openings of the shell. */
|
|
8765
|
+
shapes: unknown[] | PipelineRef;
|
|
8766
|
+
/** The wall thickness in model units; negative grows the wall inward. */
|
|
8767
|
+
offset?: number | PipelineRef;
|
|
8768
|
+
/**
|
|
8769
|
+
* How close two points must be to count as the same when the offset walls are joined, in model
|
|
8770
|
+
* units.
|
|
8771
|
+
*/
|
|
8772
|
+
tolerance?: number | PipelineRef;
|
|
8773
|
+
/**
|
|
8774
|
+
* When true, the offset faces are intersected with each other rather than joined by their
|
|
8775
|
+
* parallels; the kernel's default is false.
|
|
8776
|
+
*/
|
|
8777
|
+
intersection?: boolean | PipelineRef;
|
|
8778
|
+
/**
|
|
8779
|
+
* Whether the kernel should look for self-intersections in the result; not implemented by the
|
|
8780
|
+
* kernel, so leave it false.
|
|
8781
|
+
*/
|
|
8782
|
+
selfIntersection?: boolean | PipelineRef;
|
|
8783
|
+
/**
|
|
8784
|
+
* How the offset walls meet at corners: `arc` rounds them, `intersection` extends them to a
|
|
8785
|
+
* sharp corner, `tangent` keeps them tangent.
|
|
8786
|
+
*/
|
|
8787
|
+
joinType?: "arc" | "intersection" | "tangent" | PipelineRef;
|
|
8788
|
+
/** When true, the internal edges the offset can leave on the walls are removed from the result. */
|
|
8789
|
+
removeIntEdges?: boolean | PipelineRef;
|
|
8790
|
+
};
|
|
8102
8791
|
/**
|
|
8103
8792
|
* Gives a face or shell a thickness, turning it into a solid slab or wall of the given
|
|
8104
8793
|
* `offset`.
|
|
@@ -8116,6 +8805,20 @@ export interface OperationParams {
|
|
|
8116
8805
|
*/
|
|
8117
8806
|
offset?: number | PipelineRef;
|
|
8118
8807
|
};
|
|
8808
|
+
/**
|
|
8809
|
+
* Thickens a shape as `makeThickSolidSimple` does, and reports what became of its faces and
|
|
8810
|
+
* edges: each face stays where it was (`faces`) and gains its offset copy (`facesFromFaces`),
|
|
8811
|
+
* and each free edge raises the wall between the two (`facesFromEdges`).
|
|
8812
|
+
*/
|
|
8813
|
+
"occt.operations.makeThickSolidSimpleWithHistory": {
|
|
8814
|
+
/** The face or shell to give a thickness to. */
|
|
8815
|
+
shape: unknown | PipelineRef;
|
|
8816
|
+
/**
|
|
8817
|
+
* The thickness in model units, along the surface normal for a positive value and the other way
|
|
8818
|
+
* for a negative one.
|
|
8819
|
+
*/
|
|
8820
|
+
offset?: number | PipelineRef;
|
|
8821
|
+
};
|
|
8119
8822
|
/**
|
|
8120
8823
|
* Moves the boundary of a shape outward, or inward for a negative distance, by a fixed
|
|
8121
8824
|
* distance: a wire grows into a parallel outline, a face or solid into a bigger one.
|
|
@@ -8202,12 +8905,11 @@ export interface OperationParams {
|
|
|
8202
8905
|
shapes: unknown[] | PipelineRef;
|
|
8203
8906
|
};
|
|
8204
8907
|
/**
|
|
8205
|
-
* Sweeps a regular polygon along a wire, giving a
|
|
8206
|
-
* instance a hexagonal bar along a path.
|
|
8908
|
+
* Sweeps a regular polygon along a wire, giving a bar with `nrCorners` flat sides.
|
|
8207
8909
|
*
|
|
8208
|
-
* The polygon of `radius`
|
|
8209
|
-
*
|
|
8210
|
-
* path,
|
|
8910
|
+
* The polygon of `radius` starts perpendicular to the wire. `makeSolid` gives a solid instead of
|
|
8911
|
+
* a shell, `trihedronEnum` sets how the profile turns, and `forceApproxC1` smooths the result.
|
|
8912
|
+
* An invalid bar is refused; on a nearly straight path, use the discrete trihedron.
|
|
8211
8913
|
*/
|
|
8212
8914
|
"occt.operations.pipePolylineWireNGon": {
|
|
8213
8915
|
/** The path wire the tube follows. */
|
|
@@ -8229,9 +8931,9 @@ export interface OperationParams {
|
|
|
8229
8931
|
/**
|
|
8230
8932
|
* Sweeps a circle along a wire, giving a round tube of the given radius that follows the path.
|
|
8231
8933
|
*
|
|
8232
|
-
* The circle
|
|
8233
|
-
*
|
|
8234
|
-
*
|
|
8934
|
+
* The circle starts perpendicular to the wire. `makeSolid` gives a solid instead of a shell,
|
|
8935
|
+
* `trihedronEnum` sets how the profile turns, and `forceApproxC1` smooths the result. An invalid
|
|
8936
|
+
* tube is refused; on a nearly straight path, use the discrete trihedron.
|
|
8235
8937
|
*/
|
|
8236
8938
|
"occt.operations.pipeWireCylindrical": {
|
|
8237
8939
|
/** The path wire the tube follows. */
|
|
@@ -8267,6 +8969,17 @@ export interface OperationParams {
|
|
|
8267
8969
|
/** When true, a swept surface that came out with kinks is refitted to be smooth. */
|
|
8268
8970
|
forceApproxC1?: boolean | PipelineRef;
|
|
8269
8971
|
};
|
|
8972
|
+
/**
|
|
8973
|
+
* Sweeps profiles along a path as `pipe` does, and reports what each profile became, one
|
|
8974
|
+
* history per profile in the order given: `facesFromEdges` holds the side each profile edge
|
|
8975
|
+
* swept, `firstFaces` and `lastFaces` the caps at the two ends of the path.
|
|
8976
|
+
*/
|
|
8977
|
+
"occt.operations.pipeWithHistory": {
|
|
8978
|
+
/** The main shape: the path wire for a pipe, the wire to extend when adding edges. */
|
|
8979
|
+
shape: unknown | PipelineRef;
|
|
8980
|
+
/** The other shapes: the profiles placed on the path, or the edges and wires to add. */
|
|
8981
|
+
shapes: unknown[] | PipelineRef;
|
|
8982
|
+
};
|
|
8270
8983
|
/**
|
|
8271
8984
|
* Sweeps a profile along a spine while scaling it, such as a tube that widens toward one end.
|
|
8272
8985
|
*
|
|
@@ -8523,6 +9236,76 @@ export interface OperationParams {
|
|
|
8523
9236
|
/** The point the scaled and flipped drawing is moved to. */
|
|
8524
9237
|
origin?: [number, number, number] | PipelineRef;
|
|
8525
9238
|
};
|
|
9239
|
+
/**
|
|
9240
|
+
* Builds each root of a recipe as a shape placed by its matrix, in root order.
|
|
9241
|
+
*
|
|
9242
|
+
* Shared steps are built once. A mesh keeps its triangles unless `facetedMeshes` is set or a
|
|
9243
|
+
* boolean needs it. A root that failed, or whose opening failed, throws naming the step; with
|
|
9244
|
+
* `emptyWhenFailed` it comes back empty, or cut by the openings built.
|
|
9245
|
+
*/
|
|
9246
|
+
"occt.recipes.build": {
|
|
9247
|
+
/**
|
|
9248
|
+
* The recipe: steps such as polygons, extrusions and cuts, and the roots to build from them, as
|
|
9249
|
+
* a package that describes geometry as data writes it.
|
|
9250
|
+
*/
|
|
9251
|
+
recipe: unknown | PipelineRef;
|
|
9252
|
+
/**
|
|
9253
|
+
* When true, each shape turns a quarter turn about X so the recipe's Z points along Y, which is
|
|
9254
|
+
* up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
|
|
9255
|
+
*/
|
|
9256
|
+
adjustZtoY?: boolean | PipelineRef;
|
|
9257
|
+
/**
|
|
9258
|
+
* When true, a root that cannot be built comes back as an empty compound and an opening that
|
|
9259
|
+
* cannot is left uncut; when false, either stops the build.
|
|
9260
|
+
*/
|
|
9261
|
+
emptyWhenFailed?: boolean | PipelineRef;
|
|
9262
|
+
/**
|
|
9263
|
+
* When true, triangle meshes become faceted solids, flat faces that cut and fillet like any
|
|
9264
|
+
* shape; when false they keep their triangles, which draw, measure and export to STEP faster.
|
|
9265
|
+
*/
|
|
9266
|
+
facetedMeshes?: boolean | PipelineRef;
|
|
9267
|
+
/**
|
|
9268
|
+
* The most triangles a mesh built as a faceted solid may hold; a larger one is not built and
|
|
9269
|
+
* counts as a step that failed.
|
|
9270
|
+
*/
|
|
9271
|
+
maxTriangles?: number | PipelineRef;
|
|
9272
|
+
};
|
|
9273
|
+
/**
|
|
9274
|
+
* Builds the roots of a recipe into an assembly document, ready to export to STEP.
|
|
9275
|
+
*
|
|
9276
|
+
* Roots sharing the `groupBy` tag form one product named by its `name` tag, with its tags as
|
|
9277
|
+
* properties and its parts coloured by `rgba`. A step only moved and turned is one part placed
|
|
9278
|
+
* by each root. Failures are handled as in `build`.
|
|
9279
|
+
*/
|
|
9280
|
+
"occt.recipes.buildDocument": {
|
|
9281
|
+
/**
|
|
9282
|
+
* The recipe: steps such as polygons, extrusions and cuts, and the roots to build from them, as
|
|
9283
|
+
* a package that describes geometry as data writes it.
|
|
9284
|
+
*/
|
|
9285
|
+
recipe: unknown | PipelineRef;
|
|
9286
|
+
/** The name of the assembly at the top of the document, which holds every product. */
|
|
9287
|
+
name?: string | PipelineRef;
|
|
9288
|
+
/**
|
|
9289
|
+
* The tag whose value gathers roots into one product, such as the pieces of one element in
|
|
9290
|
+
* different colours. Roots without it are each a product of their own.
|
|
9291
|
+
*/
|
|
9292
|
+
groupBy?: string | PipelineRef;
|
|
9293
|
+
/**
|
|
9294
|
+
* When true, a root that cannot be built is left out of the document and an opening that cannot
|
|
9295
|
+
* is left uncut; when false, either stops the build.
|
|
9296
|
+
*/
|
|
9297
|
+
emptyWhenFailed?: boolean | PipelineRef;
|
|
9298
|
+
/**
|
|
9299
|
+
* When true, triangle meshes become faceted solids, flat faces that cut and fillet like any
|
|
9300
|
+
* shape; when false they keep their triangles, which draw, measure and export to STEP faster.
|
|
9301
|
+
*/
|
|
9302
|
+
facetedMeshes?: boolean | PipelineRef;
|
|
9303
|
+
/**
|
|
9304
|
+
* The most triangles a mesh built as a faceted solid may hold; a larger one is not built and
|
|
9305
|
+
* counts as a step that failed.
|
|
9306
|
+
*/
|
|
9307
|
+
maxTriangles?: number | PipelineRef;
|
|
9308
|
+
};
|
|
8526
9309
|
/**
|
|
8527
9310
|
* Chooses the straight edges that run within `angle` degrees of `direction`, either way along
|
|
8528
9311
|
* it: an angle of 0 finds the edges parallel to it.
|
|
@@ -11717,8 +12500,11 @@ export interface OperationParams {
|
|
|
11717
12500
|
otherShape: unknown | PipelineRef;
|
|
11718
12501
|
};
|
|
11719
12502
|
/**
|
|
11720
|
-
*
|
|
11721
|
-
*
|
|
12503
|
+
* Removes the edges that lie inside a face without bounding it, such as the segment a split
|
|
12504
|
+
* leaves on a face, and rebuilds the faces around them.
|
|
12505
|
+
*
|
|
12506
|
+
* An edge that bounds any face of the shape stays, and a shape with nothing to remove comes
|
|
12507
|
+
* back as it was.
|
|
11722
12508
|
*/
|
|
11723
12509
|
"occt.shapes.shape.purgeInternalEdges": {
|
|
11724
12510
|
/** The shape to work on; it is not changed. */
|
|
@@ -12210,11 +12996,11 @@ export interface OperationParams {
|
|
|
12210
12996
|
extrusionLengthBack?: number | PipelineRef;
|
|
12211
12997
|
};
|
|
12212
12998
|
/**
|
|
12213
|
-
* Collects diagnostic facts about a solid:
|
|
12214
|
-
*
|
|
12215
|
-
* counts, bounds and area.
|
|
12999
|
+
* Collects diagnostic facts about a solid: how many faces and edges it has, its surface area and
|
|
13000
|
+
* volume, and for every face the surface type, degrees, control point counts, bounds and area.
|
|
12216
13001
|
*
|
|
12217
|
-
*
|
|
13002
|
+
* `valid` is false only for an empty or null shape, which gives zero counts; it does not check
|
|
13003
|
+
* the geometry, which `shapeFix.isValid` does.
|
|
12218
13004
|
*/
|
|
12219
13005
|
"occt.shapes.solid.debugInfo": {
|
|
12220
13006
|
/** The shape to work on; it is not changed. */
|
|
@@ -13504,13 +14290,19 @@ export interface OperationParams {
|
|
|
13504
14290
|
* cusps and overshoot with uneven points, or `uniform`.
|
|
13505
14291
|
*/
|
|
13506
14292
|
parametrization?: "uniform" | "chordLength" | "centripetal" | PipelineRef;
|
|
13507
|
-
/**
|
|
14293
|
+
/**
|
|
14294
|
+
* A direction the curve must leave the first point in, for open curves and with `endTangent` only.
|
|
14295
|
+
* Shorter than `tolerance`, such as `[0, 0, 0]`, it counts as not given.
|
|
14296
|
+
*/
|
|
13508
14297
|
startTangent?: [number, number, number] | PipelineRef;
|
|
13509
|
-
/**
|
|
14298
|
+
/**
|
|
14299
|
+
* A direction the curve must arrive at the last point in; only for open curves, and only together
|
|
14300
|
+
* with `startTangent`. A tangent shorter than `tolerance` counts as not given.
|
|
14301
|
+
*/
|
|
13510
14302
|
endTangent?: [number, number, number] | PipelineRef;
|
|
13511
14303
|
/**
|
|
13512
|
-
* One direction per point that the curve must follow there, with undefined entries
|
|
13513
|
-
* when given, the start and end tangents are ignored.
|
|
14304
|
+
* One direction per point that the curve must follow there, with undefined entries, and entries
|
|
14305
|
+
* shorter than `tolerance`, left free; when given, the start and end tangents are ignored.
|
|
13514
14306
|
*/
|
|
13515
14307
|
tangents?: [number, number, number][] | PipelineRef;
|
|
13516
14308
|
};
|
|
@@ -14005,6 +14797,16 @@ export interface OperationParams {
|
|
|
14005
14797
|
* with more triangles.
|
|
14006
14798
|
*/
|
|
14007
14799
|
precision?: number | PipelineRef;
|
|
14800
|
+
/**
|
|
14801
|
+
* The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
|
|
14802
|
+
* follows curvature more closely with more triangles.
|
|
14803
|
+
*/
|
|
14804
|
+
angularDeflection?: number | PipelineRef;
|
|
14805
|
+
/**
|
|
14806
|
+
* When true, `precision` is a fraction of each edge's and face's size instead of model units, so
|
|
14807
|
+
* small and large parts get triangles in proportion to their size.
|
|
14808
|
+
*/
|
|
14809
|
+
relativeDeflection?: boolean | PipelineRef;
|
|
14008
14810
|
/**
|
|
14009
14811
|
* When true, the meshes are turned so this library's Y-up becomes Z-up, for tools that treat Z
|
|
14010
14812
|
* as up.
|
|
@@ -14016,18 +14818,18 @@ export interface OperationParams {
|
|
|
14016
14818
|
*/
|
|
14017
14819
|
computeMetadata?: boolean | PipelineRef;
|
|
14018
14820
|
/**
|
|
14019
|
-
* When true, the
|
|
14020
|
-
*
|
|
14821
|
+
* When true, the triangulations stay on the shapes for the next mesh with the same settings to
|
|
14822
|
+
* reuse; when false they are cleared. A mesh retention budget keeps every mesh.
|
|
14021
14823
|
*/
|
|
14022
14824
|
keepMeshData?: boolean | PipelineRef;
|
|
14023
14825
|
/**
|
|
14024
|
-
* When true, a
|
|
14025
|
-
*
|
|
14826
|
+
* When true, a face whose triangulation is not within 10% of the precision it needs is meshed
|
|
14827
|
+
* again; when false, a finer one is kept.
|
|
14026
14828
|
*/
|
|
14027
14829
|
allowQualityDecrease?: boolean | PipelineRef;
|
|
14028
14830
|
/**
|
|
14029
|
-
* When true, every face is
|
|
14030
|
-
*
|
|
14831
|
+
* When true, every face is meshed at exactly the requested precision; when false, a face's
|
|
14832
|
+
* precision is raised to the average of its edges' and to twice its tolerance.
|
|
14031
14833
|
*/
|
|
14032
14834
|
forceFaceDeflection?: boolean | PipelineRef;
|
|
14033
14835
|
/**
|
|
@@ -14081,6 +14883,16 @@ export interface OperationParams {
|
|
|
14081
14883
|
* with more triangles.
|
|
14082
14884
|
*/
|
|
14083
14885
|
precision?: number | PipelineRef;
|
|
14886
|
+
/**
|
|
14887
|
+
* The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
|
|
14888
|
+
* follows curvature more closely with more triangles.
|
|
14889
|
+
*/
|
|
14890
|
+
angularDeflection?: number | PipelineRef;
|
|
14891
|
+
/**
|
|
14892
|
+
* When true, `precision` is a fraction of each edge's and face's size instead of model units, so
|
|
14893
|
+
* small and large parts get triangles in proportion to their size.
|
|
14894
|
+
*/
|
|
14895
|
+
relativeDeflection?: boolean | PipelineRef;
|
|
14084
14896
|
/**
|
|
14085
14897
|
* When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as
|
|
14086
14898
|
* up.
|
|
@@ -14092,18 +14904,18 @@ export interface OperationParams {
|
|
|
14092
14904
|
*/
|
|
14093
14905
|
computeMetadata?: boolean | PipelineRef;
|
|
14094
14906
|
/**
|
|
14095
|
-
* When true, the triangulation stays
|
|
14096
|
-
*
|
|
14907
|
+
* When true, the triangulation stays on the shape for the next mesh with the same settings to
|
|
14908
|
+
* reuse; when false it is cleared. A mesh retention budget keeps every mesh.
|
|
14097
14909
|
*/
|
|
14098
14910
|
keepMeshData?: boolean | PipelineRef;
|
|
14099
14911
|
/**
|
|
14100
|
-
* When true, a
|
|
14101
|
-
*
|
|
14912
|
+
* When true, a face whose triangulation is not within 10% of the precision it needs is meshed
|
|
14913
|
+
* again; when false, a finer one is kept.
|
|
14102
14914
|
*/
|
|
14103
14915
|
allowQualityDecrease?: boolean | PipelineRef;
|
|
14104
14916
|
/**
|
|
14105
|
-
* When true, every face is
|
|
14106
|
-
*
|
|
14917
|
+
* When true, every face is meshed at exactly the requested precision; when false, a face's
|
|
14918
|
+
* precision is raised to the average of its edges' and to twice its tolerance.
|
|
14107
14919
|
*/
|
|
14108
14920
|
forceFaceDeflection?: boolean | PipelineRef;
|
|
14109
14921
|
/**
|
|
@@ -15082,6 +15894,24 @@ export interface OperationParams {
|
|
|
15082
15894
|
/** Sheet thickness; 0 auto-detects from face pairs */
|
|
15083
15895
|
thicknessOverride?: number | PipelineRef;
|
|
15084
15896
|
};
|
|
15897
|
+
/**
|
|
15898
|
+
* Lays out points along the circular arc through three points, from the first through the
|
|
15899
|
+
* second to the third.
|
|
15900
|
+
*
|
|
15901
|
+
* The arc is divided into `segments` equal steps between the given ends. Points on one line fix
|
|
15902
|
+
* no arc and come back as they are.
|
|
15903
|
+
* Example: [1,0,0], [0,1,0] and [-1,0,0] in 2 segments -> [[1,0,0], [0,1,0], [-1,0,0]]
|
|
15904
|
+
*/
|
|
15905
|
+
"point.arcThroughThreePoints": {
|
|
15906
|
+
/** Where the arc starts. */
|
|
15907
|
+
start: [number, number, number] | PipelineRef;
|
|
15908
|
+
/** A point the arc passes through on its way, which decides the side it bulges to. */
|
|
15909
|
+
middle: [number, number, number] | PipelineRef;
|
|
15910
|
+
/** Where the arc ends. */
|
|
15911
|
+
end: [number, number, number] | PipelineRef;
|
|
15912
|
+
/** How many equal steps the arc is divided into; more steps follow the circle more closely. */
|
|
15913
|
+
segments?: number | PipelineRef;
|
|
15914
|
+
};
|
|
15085
15915
|
/**
|
|
15086
15916
|
* Finds the average of the points, which is their center of mass when they weigh the same.
|
|
15087
15917
|
*
|
|
@@ -15645,6 +16475,28 @@ export interface OperationParams {
|
|
|
15645
16475
|
/** Distance, in model units, below which two points count as the same. */
|
|
15646
16476
|
tolerance?: number | PipelineRef;
|
|
15647
16477
|
};
|
|
16478
|
+
/**
|
|
16479
|
+
* Measures the area a polyline encloses, read as a closed outline in its own plane.
|
|
16480
|
+
*
|
|
16481
|
+
* The polyline need not repeat its first point at its end. An outline that is not quite flat
|
|
16482
|
+
* gives the area of its outline seen along its normal.
|
|
16483
|
+
* Example: [[0,0,0], [4,0,0], [4,4,0], [0,4,0]] -> 16
|
|
16484
|
+
*/
|
|
16485
|
+
"polyline.polygonArea": {
|
|
16486
|
+
/** The polyline object with its points. */
|
|
16487
|
+
polyline: unknown | PipelineRef;
|
|
16488
|
+
};
|
|
16489
|
+
/**
|
|
16490
|
+
* Finds the unit normal of the plane a polyline encloses, read as a closed outline.
|
|
16491
|
+
*
|
|
16492
|
+
* Newell's method makes it hold for an outline that is not convex or not quite flat. It points
|
|
16493
|
+
* the way the outline turns by the right-hand rule; an outline with no area gives undefined.
|
|
16494
|
+
* Example: [[0,0,0], [4,0,0], [4,4,0], [0,4,0]] -> [0, 0, 1]
|
|
16495
|
+
*/
|
|
16496
|
+
"polyline.polygonNormal": {
|
|
16497
|
+
/** The polyline object with its points. */
|
|
16498
|
+
polyline: unknown | PipelineRef;
|
|
16499
|
+
};
|
|
15648
16500
|
/**
|
|
15649
16501
|
* Finds the points where the polyline crosses itself.
|
|
15650
16502
|
*
|
|
@@ -16749,7 +17601,7 @@ export interface TypedChoiceStep {
|
|
|
16749
17601
|
/** Any step in a typed pipeline. */
|
|
16750
17602
|
export type TypedPipelineAnyStep = TypedStep | TypedMapStep | TypedChoiceStep;
|
|
16751
17603
|
/** Pipeline output format. */
|
|
16752
|
-
export type TypedPipelineOutputFormat = "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf";
|
|
17604
|
+
export type TypedPipelineOutputFormat = "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf" | "brep" | "brep-binary";
|
|
16753
17605
|
/** Output options for a typed pipeline. */
|
|
16754
17606
|
export interface TypedPipelineOutputOptions {
|
|
16755
17607
|
formats: TypedPipelineOutputFormat[];
|