@bitbybit-dev/cad-cloud-sdk 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/generated.d.ts +745 -47
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +563 -5
- 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 +44 -6
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +109 -0
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +119 -0
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.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.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.crossSection.transforms.warp" | "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.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.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.setProperties" | "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.manifold.transforms.warp" | "manifold.manifoldToMeshPointer" | "manifold.mesh.evaluate.extras" | "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.assembly.manager.buildAssemblyDocument" | "occt.assembly.manager.combineStructure" | "occt.assembly.manager.createAssemblyNode" | "occt.assembly.manager.createInstanceNode" | "occt.assembly.manager.createPart" | "occt.assembly.manager.createPartUpdate" | "occt.assembly.manager.deleteDocument" | "occt.assembly.manager.exportDocumentToGltf" | "occt.assembly.manager.exportDocumentToStep" | "occt.assembly.manager.loadStepToDoc" | "occt.assembly.manager.setDocLabelColor" | "occt.assembly.manager.setDocLabelName" | "occt.assembly.query.getAssemblyHierarchy" | "occt.assembly.query.getDocumentParts" | "occt.assembly.query.getLabelColor" | "occt.assembly.query.getLabelInfo" | "occt.assembly.query.getLabelTransform" | "occt.assembly.query.getShapeFromLabel" | "occt.booleans.difference" | "occt.booleans.intersection" | "occt.booleans.meshMeshIntersectionOfShapesPoints" | "occt.booleans.meshMeshIntersectionOfShapesWires" | "occt.booleans.meshMeshIntersectionPoints" | "occt.booleans.meshMeshIntersectionWires" | "occt.booleans.union" | "occt.cleanAllCache" | "occt.deleteShape" | "occt.deleteShapes" | "occt.dimensions.pinWithLabel" | "occt.dimensions.simpleAngularDimension" | "occt.dimensions.simpleLinearLengthDimension" | "occt.fillets.chamferEdgeDistAngle" | "occt.fillets.chamferEdges" | "occt.fillets.chamferEdgesDistAngle" | "occt.fillets.chamferEdgesDistsAngles" | "occt.fillets.chamferEdgesList" | "occt.fillets.chamferEdgesTwoDistances" | "occt.fillets.chamferEdgesTwoDistancesLists" | "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.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.dxfCreate" | "occt.io.dxfPathsWithLayer" | "occt.io.loadSTEPorIGES" | "occt.io.parseStepToJson" | "occt.io.saveShapeSTEP" | "occt.io.saveShapeSTEPAndReturn" | "occt.io.saveShapeStl" | "occt.io.saveShapeStlAndReturn" | "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.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.revolve" | "occt.operations.rotatedExtrude" | "occt.operations.slice" | "occt.operations.sliceInStepPattern" | "occt.operations.splitShapeWithShapes" | "occt.shapeFacesToPolygonPoints" | "occt.shapeFix.basicShapeRepair" | "occt.shapeFix.fixEdgeOrientationsAlongWire" | "occt.shapeFix.fixSmallEdgeOnWire" | "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.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.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.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.makeEdgeFromGeom2dCurveAndSurface" | "occt.shapes.edge.pointOnEdgeAtLength" | "occt.shapes.edge.pointOnEdgeAtParam" | "occt.shapes.edge.pointsOnEdgesAtLength" | "occt.shapes.edge.pointsOnEdgesAtParam" | "occt.shapes.edge.removeInternalEdges" | "occt.shapes.edge.reversedEdge" | "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.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.faceFromSurface" | "occt.shapes.face.faceFromSurfaceAndWire" | "occt.shapes.face.filterFacePoints" | "occt.shapes.face.filterFacesPoints" | "occt.shapes.face.fromBaseMesh" | "occt.shapes.face.fromBaseTriangle" | "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.normalOnUV" | "occt.shapes.face.normalsOnUVs" | "occt.shapes.face.pointOnUV" | "occt.shapes.face.pointsOnUVs" | "occt.shapes.face.reversedFace" | "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.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.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.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.createZigZagBetweenTwoWires" | "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.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.interpolateWires" | "occt.shapes.wire.isWireClosed" | "occt.shapes.wire.midPointOnWire" | "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.projectWires" | "occt.shapes.wire.reversedWire" | "occt.shapes.wire.reversedWireFromReversedEdges" | "occt.shapes.wire.splitOnPoints" | "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.shapesToMeshes" | "occt.shapeToMesh" | "occt.transforms.align" | "occt.transforms.alignAndTranslate" | "occt.transforms.alignAndTranslateShapes" | "occt.transforms.alignNormAndAxis" | "occt.transforms.alignShapes" | "occt.transforms.mirror" | "occt.transforms.mirrorAlongNormal" | "occt.transforms.mirrorAlongNormalShapes" | "occt.transforms.mirrorShapes" | "occt.transforms.rotate" | "occt.transforms.rotateAroundCenter" | "occt.transforms.rotateAroundCenterShapes" | "occt.transforms.rotateShapes" | "occt.transforms.scale" | "occt.transforms.scale3d" | "occt.transforms.scale3dShapes" | "occt.transforms.scaleShapes" | "occt.transforms.transform" | "occt.transforms.transformShapes" | "occt.transforms.translate" | "occt.transforms.translateShapes" | "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.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.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.crossSection.transforms.warp" | "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.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.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.setProperties" | "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.manifold.transforms.warp" | "manifold.manifoldToMeshPointer" | "manifold.mesh.evaluate.extras" | "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.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.exportDocumentToStep" | "occt.assembly.manager.loadStepToDoc" | "occt.assembly.manager.setDocLabelColor" | "occt.assembly.manager.setDocLabelName" | "occt.assembly.query.getAssemblyHierarchy" | "occt.assembly.query.getDocumentParts" | "occt.assembly.query.getLabelColor" | "occt.assembly.query.getLabelInfo" | "occt.assembly.query.getLabelTransform" | "occt.assembly.query.getShapeFromLabel" | "occt.booleans.difference" | "occt.booleans.intersection" | "occt.booleans.meshMeshIntersectionOfShapesPoints" | "occt.booleans.meshMeshIntersectionOfShapesWires" | "occt.booleans.meshMeshIntersectionPoints" | "occt.booleans.meshMeshIntersectionWires" | "occt.booleans.union" | "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.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.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.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.loadSTEPorIGES" | "occt.io.parseStepToJson" | "occt.io.saveShapeSTEP" | "occt.io.saveShapeSTEPAndReturn" | "occt.io.saveShapeStl" | "occt.io.saveShapeStlAndReturn" | "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.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.revolve" | "occt.operations.rotatedExtrude" | "occt.operations.slice" | "occt.operations.sliceInStepPattern" | "occt.operations.splitShapeWithShapes" | "occt.shapeFacesToPolygonPoints" | "occt.shapeFix.basicShapeRepair" | "occt.shapeFix.fixEdgeOrientationsAlongWire" | "occt.shapeFix.fixSmallEdgeOnWire" | "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.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.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.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.makeEdgeFromGeom2dCurveAndSurface" | "occt.shapes.edge.pointOnEdgeAtLength" | "occt.shapes.edge.pointOnEdgeAtParam" | "occt.shapes.edge.pointsOnEdgesAtLength" | "occt.shapes.edge.pointsOnEdgesAtParam" | "occt.shapes.edge.removeInternalEdges" | "occt.shapes.edge.reversedEdge" | "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.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.faceFromSurface" | "occt.shapes.face.faceFromSurfaceAndWire" | "occt.shapes.face.filterFacePoints" | "occt.shapes.face.filterFacesPoints" | "occt.shapes.face.fromBaseMesh" | "occt.shapes.face.fromBaseTriangle" | "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.normalOnUV" | "occt.shapes.face.normalsOnUVs" | "occt.shapes.face.pointOnUV" | "occt.shapes.face.pointsOnUVs" | "occt.shapes.face.reversedFace" | "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.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.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.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.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.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.interpolateWires" | "occt.shapes.wire.isWireClosed" | "occt.shapes.wire.midPointOnWire" | "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.projectWires" | "occt.shapes.wire.reversedWire" | "occt.shapes.wire.reversedWireFromReversedEdges" | "occt.shapes.wire.splitOnPoints" | "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.shapesToMeshes" | "occt.shapeToMesh" | "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.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";
|
|
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. */
|
|
@@ -2335,7 +2335,7 @@ export interface OperationParams {
|
|
|
2335
2335
|
/** Ease function */
|
|
2336
2336
|
ease?: "easeInSine" | "easeOutSine" | "easeInOutSine" | "easeInQuad" | "easeOutQuad" | "easeInOutQuad" | "easeInCubic" | "easeOutCubic" | "easeInOutCubic" | "easeInQuart" | "easeOutQuart" | "easeInOutQuart" | "easeInQuint" | "easeOutQuint" | "easeInOutQuint" | "easeInExpo" | "easeOutExpo" | "easeInOutExpo" | "easeInCirc" | "easeOutCirc" | "easeInOutCirc" | "easeInElastic" | "easeOutElastic" | "easeInOutElastic" | "easeInBack" | "easeOutBack" | "easeInOutBack" | "easeInBounce" | "easeOutBounce" | "easeInOutBounce" | PipelineRef;
|
|
2337
2337
|
};
|
|
2338
|
-
/** Safely evaluates a simple arithmetic expression containing only numbers, +, -, , /, parentheses, and whitespace. Uses the shunting-yard algorithm — no eval/Function. Example:
|
|
2338
|
+
/** Safely evaluates a simple arithmetic expression containing only numbers, +, -, , /, parentheses, and whitespace. Uses the shunting-yard algorithm — no eval/Function. Example: '(3+2)4' → 20, '10/3' → 3.3333... */
|
|
2339
2339
|
"math.evalArithmetic": {
|
|
2340
2340
|
/** Arithmetic expression containing numbers, +, -, , /, and parentheses */
|
|
2341
2341
|
expression?: string | PipelineRef;
|
|
@@ -2562,6 +2562,8 @@ export interface OperationParams {
|
|
|
2562
2562
|
structure: unknown | PipelineRef;
|
|
2563
2563
|
/** Optional existing document handle to reuse. If provided and valid, the document will be cleared and updated instead of creating a new one. This is useful for updating an assembly without creating a new document each time. */
|
|
2564
2564
|
existingDocument?: unknown | PipelineRef;
|
|
2565
|
+
/** Optional array of source document handles referenced by `structure.loadedParts` entries via `sourceDocumentIndex`. Typically these are documents previously loaded with loadStepToDoc. Lifetime of source documents is the caller's responsibility — they are not modified or deleted by buildAssemblyDocument. */
|
|
2566
|
+
sourceDocuments?: unknown[] | PipelineRef;
|
|
2565
2567
|
};
|
|
2566
2568
|
/** Combine parts and nodes into a complete assembly structure definition. This is the final step before calling buildAssemblyDocument. ```typescript const parts = [part1, part2]; const nodes = [rootAsm, inst1, inst2]; const structure = await occt.assembly.manager.combineStructure({ parts, nodes }); const result = await occt.assembly.manager.buildAssemblyDocument({ structure }); ``` */
|
|
2567
2569
|
"occt.assembly.manager.combineStructure": {
|
|
@@ -2569,6 +2571,8 @@ export interface OperationParams {
|
|
|
2569
2571
|
removals: unknown[] | PipelineRef;
|
|
2570
2572
|
/** Updates to apply to existing parts in the document. Each update can change the shape, name, and/or color of a part. Ignored when creating a new document (no existingDocument provided). */
|
|
2571
2573
|
partUpdates: unknown[] | PipelineRef;
|
|
2574
|
+
/** source document via `sourceDocumentIndex` (matching the order of `sourceDocuments` on buildAssemblyDocument) and copies a label (or all free shapes) into this assembly, preserving sub-assembly hierarchy, names and colors. Instance nodes can then reference */
|
|
2575
|
+
loadedParts: unknown[] | PipelineRef;
|
|
2572
2576
|
/** List of part definitions (shapes that can be instanced) */
|
|
2573
2577
|
parts?: unknown[] | PipelineRef;
|
|
2574
2578
|
/** List of node definitions (assemblies and instances) */
|
|
@@ -2584,9 +2588,21 @@ export interface OperationParams {
|
|
|
2584
2588
|
name: string | PipelineRef;
|
|
2585
2589
|
/** Parent node ID. Leave undefined for root level assembly. */
|
|
2586
2590
|
parentId: string | PipelineRef;
|
|
2591
|
+
/** Optional placement matrix (column-major, 16 numbers) or an ordered list of matrices applied first-to-last. When provided it fully defines the node's placement and takes precedence over any translation/rotation/scale. */
|
|
2592
|
+
matrix: unknown | PipelineRef;
|
|
2587
2593
|
/** Optional color for the assembly */
|
|
2588
2594
|
colorRgba?: unknown | PipelineRef;
|
|
2589
2595
|
};
|
|
2596
|
+
/** (typically a STEP-loaded document) into the new assembly. Preserves sub-assembly hierarchy, names and colors. The result can be referenced by `partId` from any ```typescript const chairDoc = occt.assembly.manager.loadStepToDoc({ stepData }); const chair = occt.assembly.manager.createImportedPart({ id: "chair", sourceDocumentIndex: 0, name: "Chair" }); const i1 = occt.assembly.manager.createInstanceNode({ id: "c1", partId: "chair", name: "Chair 1", translation: [0,0,0] }); const i2 = occt.assembly.manager.createInstanceNode({ id: "c2", partId: "chair", name: "Chair 2", translation: [500,0,0] }); const structure = occt.assembly.manager.combineStructure({ parts: [], nodes: [i1, i2], loadedParts: [chair] }); const doc = occt.assembly.manager.buildAssemblyDocument({ structure, sourceDocuments: [chairDoc] }); ``` */
|
|
2597
|
+
"occt.assembly.manager.createImportedPart": {
|
|
2598
|
+
id: string | PipelineRef;
|
|
2599
|
+
/** Optional OCAF entry string of the label to copy from the source document (e.g. "0:1:1:1"). assembly compound when there are multiple). */
|
|
2600
|
+
sourceLabel: string | PipelineRef;
|
|
2601
|
+
name: string | PipelineRef;
|
|
2602
|
+
colorRgba: unknown | PipelineRef;
|
|
2603
|
+
/** Index into the `sourceDocuments` array passed to buildAssemblyDocument. */
|
|
2604
|
+
sourceDocumentIndex?: number | PipelineRef;
|
|
2605
|
+
};
|
|
2590
2606
|
/** Create an instance node definition (a reference to a part with transform). Instance nodes place a part at a specific location with optional translation, rotation, and scale. ```typescript const inst1 = await occt.assembly.manager.createInstanceNode({ id: "box1", partId: "box", name: "Box 1" }); const inst2 = await occt.assembly.manager.createInstanceNode({ id: "box2", partId: "box", name: "Box 2", translation: [20, 0, 0], rotation: [0, 0, 45] }); ``` */
|
|
2591
2607
|
"occt.assembly.manager.createInstanceNode": {
|
|
2592
2608
|
/** Unique identifier for this instance node */
|
|
@@ -2599,9 +2615,11 @@ export interface OperationParams {
|
|
|
2599
2615
|
parentId: string | PipelineRef;
|
|
2600
2616
|
/** Optional color override for this instance */
|
|
2601
2617
|
colorRgba: unknown | PipelineRef;
|
|
2618
|
+
/** Optional placement matrix (column-major, 16 numbers) or an ordered list of matrices applied first-to-last. When provided it fully defines the instance's placement and takes precedence over translation/rotation/scale. */
|
|
2619
|
+
matrix: unknown | PipelineRef;
|
|
2602
2620
|
/** Translation as [x, y, z] */
|
|
2603
2621
|
translation?: [number, number, number] | PipelineRef;
|
|
2604
|
-
/** Rotation as [rx, ry, rz] in degrees (
|
|
2622
|
+
/** Rotation as [rx, ry, rz] Euler angles in degrees (applied Rx Ry Rz) */
|
|
2605
2623
|
rotation?: [number, number, number] | PipelineRef;
|
|
2606
2624
|
/** Uniform scale factor */
|
|
2607
2625
|
scale?: number | PipelineRef;
|
|
@@ -2641,6 +2659,10 @@ export interface OperationParams {
|
|
|
2641
2659
|
meshDeflection?: number | PipelineRef;
|
|
2642
2660
|
/** Angular deflection for meshing in radians. Lower values = smoother curves. */
|
|
2643
2661
|
meshAngle?: number | PipelineRef;
|
|
2662
|
+
/** Add interior vertices for better curved face fidelity (slower, set false for speed). */
|
|
2663
|
+
internalVerticesMode?: boolean | PipelineRef;
|
|
2664
|
+
/** Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
|
|
2665
|
+
controlSurfaceDeflection?: boolean | PipelineRef;
|
|
2644
2666
|
/** Whether to merge faces with same material for optimization. Set to false to preserve face boundaries. */
|
|
2645
2667
|
mergeFaces?: boolean | PipelineRef;
|
|
2646
2668
|
/** Whether to texture coordinates (UVs). */
|
|
@@ -2650,6 +2672,43 @@ export interface OperationParams {
|
|
|
2650
2672
|
/** Whether to trigger a file download in the browser */
|
|
2651
2673
|
tryDownload?: boolean | PipelineRef;
|
|
2652
2674
|
};
|
|
2675
|
+
/** Export an assembly document to glTF binary (GLB) format with explicit Draco geometry compression settings. ```typescript const document = await occt.assembly.manager.buildAssemblyDocument({ structure }); const glbData = await occt.assembly.manager.exportDocumentToGltfWithDraco({ document, meshDeflection: 0.1, useDraco: true, dracoCompressionLevel: 7, tryDownload: true }); ``` */
|
|
2676
|
+
"occt.assembly.manager.exportDocumentToGltfWithDraco": {
|
|
2677
|
+
/** Assembly document handle from buildAssemblyDocument or loadStepToDoc */
|
|
2678
|
+
document: unknown | PipelineRef;
|
|
2679
|
+
/** Whether to trigger a file download in the browser */
|
|
2680
|
+
tryDownload?: boolean | PipelineRef;
|
|
2681
|
+
/** File name for download (optional, should end with .glb) */
|
|
2682
|
+
fileName?: string | PipelineRef;
|
|
2683
|
+
/** Whether to texture coordinates (UVs). */
|
|
2684
|
+
forceUVExport?: boolean | PipelineRef;
|
|
2685
|
+
/** Whether to merge faces with same material for optimization. Set to false to preserve face boundaries. */
|
|
2686
|
+
mergeFaces?: boolean | PipelineRef;
|
|
2687
|
+
/** Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
|
|
2688
|
+
controlSurfaceDeflection?: boolean | PipelineRef;
|
|
2689
|
+
/** Add interior vertices for better curved face fidelity (slower, set false for speed). */
|
|
2690
|
+
internalVerticesMode?: boolean | PipelineRef;
|
|
2691
|
+
/** Angular deflection for meshing in radians. Lower values = smoother curves. */
|
|
2692
|
+
meshAngle?: number | PipelineRef;
|
|
2693
|
+
/** Mesh precision for triangulation. Lower values = finer mesh. */
|
|
2694
|
+
meshDeflection?: number | PipelineRef;
|
|
2695
|
+
/** Enable Draco geometry compression on output. */
|
|
2696
|
+
useDraco?: boolean | PipelineRef;
|
|
2697
|
+
/** Draco compression level - 0 (fastest, largest) ... 10 (slowest, smallest). */
|
|
2698
|
+
dracoCompressionLevel?: number | PipelineRef;
|
|
2699
|
+
/** Quantization bits for vertex positions. */
|
|
2700
|
+
dracoQuantizePositionBits?: number | PipelineRef;
|
|
2701
|
+
/** Quantization bits for normals. */
|
|
2702
|
+
dracoQuantizeNormalBits?: number | PipelineRef;
|
|
2703
|
+
/** Quantization bits for texture coordinates (UVs). */
|
|
2704
|
+
dracoQuantizeTexcoordBits?: number | PipelineRef;
|
|
2705
|
+
/** Quantization bits for vertex colors. */
|
|
2706
|
+
dracoQuantizeColorBits?: number | PipelineRef;
|
|
2707
|
+
/** Quantization bits for generic attributes. */
|
|
2708
|
+
dracoQuantizeGenericBits?: number | PipelineRef;
|
|
2709
|
+
/** Apply a single quantization grid across all attributes. */
|
|
2710
|
+
dracoUnifiedQuantization?: boolean | PipelineRef;
|
|
2711
|
+
};
|
|
2653
2712
|
/** Export an assembly document to STEP format. ```typescript const document = await occt.assembly.manager.buildAssemblyDocument({ structure }); const stepData = await occt.assembly.manager.exportDocumentToStep({ document, fileName: "my-assembly.step", author: "John Doe", tryDownload: true }); ``` */
|
|
2654
2713
|
"occt.assembly.manager.exportDocumentToStep": {
|
|
2655
2714
|
/** Assembly document handle from buildAssemblyDocument or loadStepToDoc */
|
|
@@ -2799,8 +2858,133 @@ export interface OperationParams {
|
|
|
2799
2858
|
/** Keeps edges */
|
|
2800
2859
|
keepEdges?: boolean | PipelineRef;
|
|
2801
2860
|
};
|
|
2861
|
+
/** Topology and assembly element counts plus graph metadata for a shape */
|
|
2862
|
+
"occt.brepGraph.analyze": {
|
|
2863
|
+
/** Shape on which action should be performed */
|
|
2864
|
+
shape: unknown | PipelineRef;
|
|
2865
|
+
};
|
|
2866
|
+
/** Graph-native assembly structure using the product and occurrence model */
|
|
2867
|
+
"occt.brepGraph.assembly": {
|
|
2868
|
+
/** Shape on which action should be performed */
|
|
2869
|
+
shape: unknown | PipelineRef;
|
|
2870
|
+
};
|
|
2871
|
+
/** Upward containment navigation with parent indices per child */
|
|
2872
|
+
"occt.brepGraph.containment": {
|
|
2873
|
+
/** Shape on which action should be performed */
|
|
2874
|
+
shape: unknown | PipelineRef;
|
|
2875
|
+
};
|
|
2876
|
+
/** Full structural dump of every active node with UID and direct downward references */
|
|
2877
|
+
"occt.brepGraph.dump": {
|
|
2878
|
+
/** Shape on which action should be performed */
|
|
2879
|
+
shape: unknown | PipelineRef;
|
|
2880
|
+
};
|
|
2881
|
+
/** Edge to face incidence with topology flags and end vertices */
|
|
2882
|
+
"occt.brepGraph.edgeFaceMap": {
|
|
2883
|
+
/** Shape on which action should be performed */
|
|
2884
|
+
shape: unknown | PipelineRef;
|
|
2885
|
+
};
|
|
2886
|
+
/** Per-edge geometry with curve type, parameter range, continuity and UID */
|
|
2887
|
+
"occt.brepGraph.edgeInfo": {
|
|
2888
|
+
/** Shape on which action should be performed */
|
|
2889
|
+
shape: unknown | PipelineRef;
|
|
2890
|
+
};
|
|
2891
|
+
/** Face adjacency graph with per-face edges, wire count and outer wire */
|
|
2892
|
+
"occt.brepGraph.faceAdjacency": {
|
|
2893
|
+
/** Shape on which action should be performed */
|
|
2894
|
+
shape: unknown | PipelineRef;
|
|
2895
|
+
};
|
|
2896
|
+
/** Per-face geometry with surface type, UV bounds, triangulation flag and UID */
|
|
2897
|
+
"occt.brepGraph.faceInfo": {
|
|
2898
|
+
/** Shape on which action should be performed */
|
|
2899
|
+
shape: unknown | PipelineRef;
|
|
2900
|
+
};
|
|
2901
|
+
/** Reverse lookup that finds the graph node for a sub-shape of the source shape */
|
|
2902
|
+
"occt.brepGraph.nodeOfShape": {
|
|
2903
|
+
/** Shape the graph is rebuilt from */
|
|
2904
|
+
shape: unknown | PipelineRef;
|
|
2905
|
+
/** Sub-shape of the shape to locate in the graph */
|
|
2906
|
+
subShape: unknown | PipelineRef;
|
|
2907
|
+
};
|
|
2908
|
+
/** Reconstruct a real sub-shape from a graph node identified by kind and index */
|
|
2909
|
+
"occt.brepGraph.reconstruct": {
|
|
2910
|
+
/** Shape the graph is rebuilt from */
|
|
2911
|
+
shape: unknown | PipelineRef;
|
|
2912
|
+
/** Kind of graph node to reconstruct into a sub-shape */
|
|
2913
|
+
kind?: "solid" | "shell" | "face" | "wire" | "edge" | "vertex" | "compound" | "compsolid" | PipelineRef;
|
|
2914
|
+
/** 0-based index of the node within its kind */
|
|
2915
|
+
index?: number | PipelineRef;
|
|
2916
|
+
};
|
|
2917
|
+
/** Structural graph validation that checks graph integrity, not geometric validity */
|
|
2918
|
+
"occt.brepGraph.validate": {
|
|
2919
|
+
/** Shape on which action should be performed */
|
|
2920
|
+
shape: unknown | PipelineRef;
|
|
2921
|
+
};
|
|
2922
|
+
/** Vertex report with 3D point, tolerance and incident edges */
|
|
2923
|
+
"occt.brepGraph.vertexEdgeMap": {
|
|
2924
|
+
/** Shape on which action should be performed */
|
|
2925
|
+
shape: unknown | PipelineRef;
|
|
2926
|
+
};
|
|
2927
|
+
/** Per-wire report with closure, outer flag, coedge and edge counts and owning face */
|
|
2928
|
+
"occt.brepGraph.wireInfo": {
|
|
2929
|
+
/** Shape on which action should be performed */
|
|
2930
|
+
shape: unknown | PipelineRef;
|
|
2931
|
+
};
|
|
2802
2932
|
/** Cleans all cache and all shapes from the memory */
|
|
2803
2933
|
"occt.cleanAllCache": {};
|
|
2934
|
+
/** Bevels (chamfers) the corner(s) of a shell or solid nearest the given point(s), affecting the corner only */
|
|
2935
|
+
"occt.corners.chamferCornerByPoint": {
|
|
2936
|
+
/** Shell or solid whose corner(s) will be beveled */
|
|
2937
|
+
shape: unknown | PipelineRef;
|
|
2938
|
+
/** Points near the corners to chamfer (the nearest vertex to each is used) */
|
|
2939
|
+
points?: [number, number, number][] | PipelineRef;
|
|
2940
|
+
/** Chamfer setback distance */
|
|
2941
|
+
distance?: number | PipelineRef;
|
|
2942
|
+
/** Chamfer angle in degrees (used by the planar 2D chamfer) */
|
|
2943
|
+
angle?: number | PipelineRef;
|
|
2944
|
+
/** Maximum point-to-vertex distance to accept; 0 or less snaps to the nearest vertex unconditionally */
|
|
2945
|
+
snapTolerance?: number | PipelineRef;
|
|
2946
|
+
/** auto: planar corners are corner-only, 3D corners use a local plane cut; planarOnly: 3D corners are skipped */
|
|
2947
|
+
mode?: "auto" | "planarOnly" | PipelineRef;
|
|
2948
|
+
};
|
|
2949
|
+
/** Classifies the corner(s) nearest the given point(s) without modifying the shape */
|
|
2950
|
+
"occt.corners.classifyCornerByPoint": {
|
|
2951
|
+
/** Shell or solid whose corner(s) will be classified */
|
|
2952
|
+
shape: unknown | PipelineRef;
|
|
2953
|
+
/** Points near the corners to classify (the nearest vertex to each is used) */
|
|
2954
|
+
points?: [number, number, number][] | PipelineRef;
|
|
2955
|
+
/** Maximum point-to-vertex distance to accept; 0 or less snaps to the nearest vertex unconditionally */
|
|
2956
|
+
snapTolerance?: number | PipelineRef;
|
|
2957
|
+
};
|
|
2958
|
+
/** Runs the corner fillet and returns a per-point diagnostic report alongside it */
|
|
2959
|
+
"occt.corners.cornerByPointReport": {
|
|
2960
|
+
/** Shell or solid whose corner(s) will be rounded */
|
|
2961
|
+
shape: unknown | PipelineRef;
|
|
2962
|
+
/** Points near the corners to round (the nearest vertex to each is used) */
|
|
2963
|
+
points?: [number, number, number][] | PipelineRef;
|
|
2964
|
+
/** Fillet radius */
|
|
2965
|
+
radius?: number | PipelineRef;
|
|
2966
|
+
/** 3D corners only: taper reach along the incident edges, 0 = tightest (near spherical corner), 1 = up to the edge neutral point */
|
|
2967
|
+
taperFactor?: number | PipelineRef;
|
|
2968
|
+
/** Maximum point-to-vertex distance to accept; 0 or less snaps to the nearest vertex unconditionally */
|
|
2969
|
+
snapTolerance?: number | PipelineRef;
|
|
2970
|
+
/** auto: planar corners are corner-only, 3D corners are taper-filleted; planarOnly: 3D corners are skipped */
|
|
2971
|
+
mode?: "auto" | "planarOnly" | PipelineRef;
|
|
2972
|
+
};
|
|
2973
|
+
/** Rounds (fillets) the corner(s) of a shell or solid nearest the given point(s), affecting the corner only */
|
|
2974
|
+
"occt.corners.filletCornerByPoint": {
|
|
2975
|
+
/** Shell or solid whose corner(s) will be rounded */
|
|
2976
|
+
shape: unknown | PipelineRef;
|
|
2977
|
+
/** Points near the corners to round (the nearest vertex to each is used) */
|
|
2978
|
+
points?: [number, number, number][] | PipelineRef;
|
|
2979
|
+
/** Fillet radius */
|
|
2980
|
+
radius?: number | PipelineRef;
|
|
2981
|
+
/** 3D corners only: taper reach along the incident edges, 0 = tightest (near spherical corner), 1 = up to the edge neutral point */
|
|
2982
|
+
taperFactor?: number | PipelineRef;
|
|
2983
|
+
/** Maximum point-to-vertex distance to accept; 0 or less snaps to the nearest vertex unconditionally */
|
|
2984
|
+
snapTolerance?: number | PipelineRef;
|
|
2985
|
+
/** auto: planar corners are corner-only, 3D corners are taper-filleted; planarOnly: 3D corners are skipped */
|
|
2986
|
+
mode?: "auto" | "planarOnly" | PipelineRef;
|
|
2987
|
+
};
|
|
2804
2988
|
/** Deletes shape from the cache to keep memory usage low */
|
|
2805
2989
|
"occt.deleteShape": {
|
|
2806
2990
|
/** Shape on which action should be performed */
|
|
@@ -2924,6 +3108,96 @@ export interface OperationParams {
|
|
|
2924
3108
|
/** Remove trailing zeros from decimal places */
|
|
2925
3109
|
removeTrailingZeros?: boolean | PipelineRef;
|
|
2926
3110
|
};
|
|
3111
|
+
/** Meshes an XCAF document's free (top-level) shapes as one combined mesh, resolving per-face colours into the colorGroups map of the output. */
|
|
3112
|
+
"occt.docToMesh": {
|
|
3113
|
+
/** The XCAF document to mesh. Its free (top-level) shapes are meshed as one combined mesh and per-face colours are resolved from the document into the colorGroups map of the output. */
|
|
3114
|
+
document: unknown | PipelineRef;
|
|
3115
|
+
/** Precision of the mesh */
|
|
3116
|
+
precision?: number | PipelineRef;
|
|
3117
|
+
/** Adjust Y (up) coordinate system to Z (up) coordinate system */
|
|
3118
|
+
adjustYtoZ?: boolean | PipelineRef;
|
|
3119
|
+
/** Compute additional per-face and per-edge metadata (area, length, centers of mass, surface/curve type, tolerance, adjacency, UIDs). Adds cost; base mesh is unchanged when false. */
|
|
3120
|
+
computeMetadata?: boolean | PipelineRef;
|
|
3121
|
+
/** Keep the cached triangulation on the shape after meshing. When false (default) the mesh data is flushed off the shape so it does not accumulate in memory across calls. */
|
|
3122
|
+
keepMeshData?: boolean | PipelineRef;
|
|
3123
|
+
/** Allow re-meshing to a lower resolution triangulation than one already cached on the shape (OCCT IMeshTools_Parameters.AllowQualityDecrease). */
|
|
3124
|
+
allowQualityDecrease?: boolean | PipelineRef;
|
|
3125
|
+
/** Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection). */
|
|
3126
|
+
forceFaceDeflection?: boolean | PipelineRef;
|
|
3127
|
+
};
|
|
3128
|
+
/** Meshes an XCAF document's free (top-level) shapes into separate meshes (one per shape), resolving per-face colours into each output's colorGroups map. */
|
|
3129
|
+
"occt.docToMeshes": {
|
|
3130
|
+
/** The XCAF document to mesh. Each of its free (top-level) shapes is meshed into a separate mesh (one array entry), with per-face colours resolved from the document into each colorGroups map. */
|
|
3131
|
+
document: unknown | PipelineRef;
|
|
3132
|
+
/** Precision of the mesh */
|
|
3133
|
+
precision?: number | PipelineRef;
|
|
3134
|
+
/** Adjust Y (up) coordinate system to Z (up) coordinate system */
|
|
3135
|
+
adjustYtoZ?: boolean | PipelineRef;
|
|
3136
|
+
/** Compute additional per-face and per-edge metadata (area, length, centers of mass, surface/curve type, tolerance, adjacency, UIDs). Adds cost; base mesh is unchanged when false. */
|
|
3137
|
+
computeMetadata?: boolean | PipelineRef;
|
|
3138
|
+
/** Keep the cached triangulation on each shape after meshing. When false (default) the mesh data is flushed so it does not accumulate in memory across calls. */
|
|
3139
|
+
keepMeshData?: boolean | PipelineRef;
|
|
3140
|
+
/** Allow re-meshing to a lower resolution triangulation than one already cached on a shape (OCCT IMeshTools_Parameters.AllowQualityDecrease). */
|
|
3141
|
+
allowQualityDecrease?: boolean | PipelineRef;
|
|
3142
|
+
/** Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection). */
|
|
3143
|
+
forceFaceDeflection?: boolean | PipelineRef;
|
|
3144
|
+
};
|
|
3145
|
+
/** Tapers the selected faces of a shape by a draft angle about a neutral plane */
|
|
3146
|
+
"occt.draft.draftAngle": {
|
|
3147
|
+
/** Shape to draft */
|
|
3148
|
+
shape: unknown | PipelineRef;
|
|
3149
|
+
/** Faces of the shape to taper */
|
|
3150
|
+
faces: unknown[] | PipelineRef;
|
|
3151
|
+
/** Pull direction the draft is applied along */
|
|
3152
|
+
direction?: [number, number, number] | PipelineRef;
|
|
3153
|
+
/** Draft angle in degrees */
|
|
3154
|
+
angle?: number | PipelineRef;
|
|
3155
|
+
/** Origin of the neutral plane (kept fixed during drafting) */
|
|
3156
|
+
neutralPlaneOrigin?: [number, number, number] | PipelineRef;
|
|
3157
|
+
/** Normal of the neutral plane */
|
|
3158
|
+
neutralPlaneDirection?: [number, number, number] | PipelineRef;
|
|
3159
|
+
/** Direction flag passed to OCCT (true keeps the standard draft side) */
|
|
3160
|
+
flag?: boolean | PipelineRef;
|
|
3161
|
+
};
|
|
3162
|
+
/** Builds a draft from a shape along a direction up to a maximum corner edge length */
|
|
3163
|
+
"occt.draft.makeDraft": {
|
|
3164
|
+
/** Shape (or face/wire) to draft from */
|
|
3165
|
+
shape: unknown | PipelineRef;
|
|
3166
|
+
/** Draft direction */
|
|
3167
|
+
direction?: [number, number, number] | PipelineRef;
|
|
3168
|
+
/** Draft angle in degrees */
|
|
3169
|
+
angle?: number | PipelineRef;
|
|
3170
|
+
/** Maximum length of the corner edge between two draft faces */
|
|
3171
|
+
lengthMax?: number | PipelineRef;
|
|
3172
|
+
/** Whether the draft is internal */
|
|
3173
|
+
internal?: boolean | PipelineRef;
|
|
3174
|
+
};
|
|
3175
|
+
/** Builds a draft from a shape along a direction up to a stop shape */
|
|
3176
|
+
"occt.draft.makeDraftToShape": {
|
|
3177
|
+
/** Shape (or face/wire) to draft from */
|
|
3178
|
+
shape: unknown | PipelineRef;
|
|
3179
|
+
/** Shape the draft is performed up to */
|
|
3180
|
+
stopShape: unknown | PipelineRef;
|
|
3181
|
+
/** Draft direction */
|
|
3182
|
+
direction?: [number, number, number] | PipelineRef;
|
|
3183
|
+
/** Draft angle in degrees */
|
|
3184
|
+
angle?: number | PipelineRef;
|
|
3185
|
+
/** Keep the part of the stop shape outside the draft */
|
|
3186
|
+
keepOut?: boolean | PipelineRef;
|
|
3187
|
+
/** Whether the draft is internal */
|
|
3188
|
+
internal?: boolean | PipelineRef;
|
|
3189
|
+
};
|
|
3190
|
+
/** Chamfers the corners of a 2d wire or planar face by a setback distance and angle */
|
|
3191
|
+
"occt.fillets.chamfer2dVertices": {
|
|
3192
|
+
/** 2D wire or planar face whose corners will be chamfered */
|
|
3193
|
+
shape: unknown | PipelineRef;
|
|
3194
|
+
/** Optional 1-based corner indexes to chamfer; chamfers all corners when omitted */
|
|
3195
|
+
indexes: number[] | PipelineRef;
|
|
3196
|
+
/** Chamfer setback distance along the corner edge */
|
|
3197
|
+
distance?: number | PipelineRef;
|
|
3198
|
+
/** Chamfer angle in degrees */
|
|
3199
|
+
angle?: number | PipelineRef;
|
|
3200
|
+
};
|
|
2927
3201
|
/** Chamfers edge by a given distance and angle from the face */
|
|
2928
3202
|
"occt.fillets.chamferEdgeDistAngle": {
|
|
2929
3203
|
/** Shape to apply the chamfer */
|
|
@@ -3242,14 +3516,20 @@ export interface OperationParams {
|
|
|
3242
3516
|
readLayers?: boolean | PipelineRef;
|
|
3243
3517
|
/** Read validation properties from STEP file. Usually not needed for glTF output. */
|
|
3244
3518
|
readProps?: boolean | PipelineRef;
|
|
3245
|
-
/** Mesh
|
|
3519
|
+
/** Mesh linear deflection (triangulation precision). When `meshRelative` is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%) so deflection auto-scales with feature size. When `meshRelative` is false, this is absolute in model units (mm for STEP). */
|
|
3246
3520
|
meshDeflection?: number | PipelineRef;
|
|
3247
3521
|
/** Mesh angular deflection in radians. Controls curvature-based refinement. */
|
|
3248
3522
|
meshAngle?: number | PipelineRef;
|
|
3249
3523
|
/** Enable parallel meshing for multi-threaded builds. Recommended to keep enabled. */
|
|
3250
3524
|
meshParallel?: boolean | PipelineRef;
|
|
3251
|
-
/** Face count threshold for
|
|
3525
|
+
/** Face count threshold for the legacy per-sub-shape meshing fallback. Default -1 means single-pass meshing of the whole compound (fastest, recommended). Set to a positive value (e.g. 100000) to fall back to per-solid meshing for very large assemblies in memory-constrained environments. */
|
|
3252
3526
|
faceCountThreshold?: number | PipelineRef;
|
|
3527
|
+
/** Use size-aware relative deflection per face (recommended). When true, `meshDeflection` is interpreted as a fraction of each edge's length. Set to false to use absolute deflection in model units. */
|
|
3528
|
+
meshRelative?: boolean | PipelineRef;
|
|
3529
|
+
/** Enable internal vertices mode for more accurate mesh on complex faces. */
|
|
3530
|
+
internalVerticesMode?: boolean | PipelineRef;
|
|
3531
|
+
/** Enable control surface deflection for better quality on curved surfaces. */
|
|
3532
|
+
controlSurfaceDeflection?: boolean | PipelineRef;
|
|
3253
3533
|
/** Merge faces within a single part into one mesh. Produces smaller file sizes. */
|
|
3254
3534
|
mergeFaces?: boolean | PipelineRef;
|
|
3255
3535
|
/** Prefer 16-bit indices when merging faces. Produces smaller binary data when mesh fits in 16-bit indices. */
|
|
@@ -3271,6 +3551,102 @@ export interface OperationParams {
|
|
|
3271
3551
|
/** Scale factor for the model. Useful for unit conversion (e.g., 0.001 to convert mm to meters). Set to 1.0 for no scaling. */
|
|
3272
3552
|
scale?: number | PipelineRef;
|
|
3273
3553
|
};
|
|
3554
|
+
/** Convert a STEP file to glTF format with full control over all reading, meshing and writer options, plus explicit Draco geometry compression settings. Same fast path as `convertStepToGltfAdvanced` but exposes the 8 Draco knobs. settings and Draco knobs. */
|
|
3555
|
+
"occt.io.convertStepToGltfAdvancedWithDraco": {
|
|
3556
|
+
/** STEP data as string (for plain text files), ArrayBuffer, Uint8Array, File, or Blob. Supports compressed .stpz files - gzip-compressed data is automatically decompressed. */
|
|
3557
|
+
stepData: unknown | PipelineRef;
|
|
3558
|
+
/** Scale factor for the model. Useful for unit conversion (e.g., 0.001 to convert mm to meters). Set to 1.0 for no scaling. */
|
|
3559
|
+
scale?: number | PipelineRef;
|
|
3560
|
+
/** Convert Z-up (OCCT default) to Y-up (glTF standard). Set to false to keep Z-up coordinate system. */
|
|
3561
|
+
adjustZtoY?: boolean | PipelineRef;
|
|
3562
|
+
/** Transformation format in output glTF. */
|
|
3563
|
+
transformFormat?: "compact" | "mat4" | "trs" | PipelineRef;
|
|
3564
|
+
/** Mesh naming format in output glTF. */
|
|
3565
|
+
meshNameFormat?: "empty" | "product" | "instance" | "instanceOrProduct" | "productOrInstance" | "productAndInstance" | "productAndInstanceAndOcaf" | PipelineRef;
|
|
3566
|
+
/** Node naming format in output glTF. */
|
|
3567
|
+
nodeNameFormat?: "empty" | "product" | "instance" | "instanceOrProduct" | "productOrInstance" | "productAndInstance" | "productAndInstanceAndOcaf" | PipelineRef;
|
|
3568
|
+
/** Export UV coordinates even without textures. */
|
|
3569
|
+
forceUVExport?: boolean | PipelineRef;
|
|
3570
|
+
/** Embed textures in GLB output. Only applies to binary (GLB) format. */
|
|
3571
|
+
embedTextures?: boolean | PipelineRef;
|
|
3572
|
+
/** Enable parallel glTF writing. Recommended for large files. */
|
|
3573
|
+
parallelWrite?: boolean | PipelineRef;
|
|
3574
|
+
/** Prefer 16-bit indices when merging faces. Produces smaller binary data when mesh fits in 16-bit indices. */
|
|
3575
|
+
splitIndices16?: boolean | PipelineRef;
|
|
3576
|
+
/** Merge faces within a single part into one mesh. Produces smaller file sizes. */
|
|
3577
|
+
mergeFaces?: boolean | PipelineRef;
|
|
3578
|
+
/** Enable control surface deflection for better quality on curved surfaces. */
|
|
3579
|
+
controlSurfaceDeflection?: boolean | PipelineRef;
|
|
3580
|
+
/** Enable internal vertices mode for more accurate mesh on complex faces. */
|
|
3581
|
+
internalVerticesMode?: boolean | PipelineRef;
|
|
3582
|
+
/** Use size-aware relative deflection per face (recommended). When true, `meshDeflection` is interpreted as a fraction of each edge's length. Set to false to use absolute deflection in model units. */
|
|
3583
|
+
meshRelative?: boolean | PipelineRef;
|
|
3584
|
+
/** Face count threshold for the legacy per-sub-shape meshing fallback. Default -1 means single-pass meshing of the whole compound (fastest, recommended). Set to a positive value (e.g. 100000) to fall back to per-solid meshing for very large assemblies in memory-constrained environments. */
|
|
3585
|
+
faceCountThreshold?: number | PipelineRef;
|
|
3586
|
+
/** Enable parallel meshing for multi-threaded builds. Recommended to keep enabled. */
|
|
3587
|
+
meshParallel?: boolean | PipelineRef;
|
|
3588
|
+
/** Mesh angular deflection in radians. Controls curvature-based refinement. */
|
|
3589
|
+
meshAngle?: number | PipelineRef;
|
|
3590
|
+
/** Mesh linear deflection (triangulation precision). When `meshRelative` is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%) so deflection auto-scales with feature size. When `meshRelative` is false, this is absolute in model units (mm for STEP). */
|
|
3591
|
+
meshDeflection?: number | PipelineRef;
|
|
3592
|
+
/** Read validation properties from STEP file. Usually not needed for glTF output. */
|
|
3593
|
+
readProps?: boolean | PipelineRef;
|
|
3594
|
+
/** Read layer attributes from STEP file. Usually not needed for glTF output. */
|
|
3595
|
+
readLayers?: boolean | PipelineRef;
|
|
3596
|
+
/** Read material attributes from STEP file. Required for material properties in glTF. */
|
|
3597
|
+
readMaterials?: boolean | PipelineRef;
|
|
3598
|
+
/** Read name attributes from STEP file. Disable for faster parsing if names are not needed. */
|
|
3599
|
+
readNames?: boolean | PipelineRef;
|
|
3600
|
+
/** Read color attributes from STEP file. Required for colored glTF output. */
|
|
3601
|
+
readColors?: boolean | PipelineRef;
|
|
3602
|
+
/** Enable Draco geometry compression on output. */
|
|
3603
|
+
useDraco?: boolean | PipelineRef;
|
|
3604
|
+
/** Draco compression level - 0 (fastest, largest) ... 10 (slowest, smallest). */
|
|
3605
|
+
dracoCompressionLevel?: number | PipelineRef;
|
|
3606
|
+
/** Quantization bits for vertex positions. */
|
|
3607
|
+
dracoQuantizePositionBits?: number | PipelineRef;
|
|
3608
|
+
/** Quantization bits for normals. */
|
|
3609
|
+
dracoQuantizeNormalBits?: number | PipelineRef;
|
|
3610
|
+
/** Quantization bits for texture coordinates (UVs). */
|
|
3611
|
+
dracoQuantizeTexcoordBits?: number | PipelineRef;
|
|
3612
|
+
/** Quantization bits for vertex colors. */
|
|
3613
|
+
dracoQuantizeColorBits?: number | PipelineRef;
|
|
3614
|
+
/** Quantization bits for generic attributes. */
|
|
3615
|
+
dracoQuantizeGenericBits?: number | PipelineRef;
|
|
3616
|
+
/** Apply a single quantization grid across all attributes. */
|
|
3617
|
+
dracoUnifiedQuantization?: boolean | PipelineRef;
|
|
3618
|
+
};
|
|
3619
|
+
/** Convert a STEP file to glTF format (binary GLB) with explicit Draco geometry compression settings. Same fast path as `convertStepToGltf` but exposes the Draco knobs of the underlying native function. Accepts File, Blob, string, ArrayBuffer, or Uint8Array. */
|
|
3620
|
+
"occt.io.convertStepToGltfWithDraco": {
|
|
3621
|
+
/** STEP data as string (for plain text files), ArrayBuffer, Uint8Array, File, or Blob. Supports compressed .stpz files - gzip-compressed data is automatically decompressed. */
|
|
3622
|
+
stepData: unknown | PipelineRef;
|
|
3623
|
+
/** Extra post-pass refining triangles that bulge beyond the deflection (slower, set false for speed). */
|
|
3624
|
+
controlSurfaceDeflection?: boolean | PipelineRef;
|
|
3625
|
+
/** Add interior vertices for better curved face fidelity (slower, set false for speed). */
|
|
3626
|
+
internalVerticesMode?: boolean | PipelineRef;
|
|
3627
|
+
/** Use size-aware relative deflection per face. Recommended default for mixed-scale assemblies (machine + small fasteners) - dramatically reduces triangle count and meshing time with negligible visual difference. Set to false for absolute deflection (the value of `meshPrecision` is then interpreted in model units). */
|
|
3628
|
+
meshRelative?: boolean | PipelineRef;
|
|
3629
|
+
/** Mesh angular deflection in radians (max normal deviation between adjacent triangles). Smaller values produce smoother curved surfaces but more triangles. */
|
|
3630
|
+
meshAngle?: number | PipelineRef;
|
|
3631
|
+
/** Mesh linear deflection (triangulation precision). When `meshRelative` is true (default), this is a fraction of each edge's length (e.g. 0.005 = 0.5%) so small parts get fine meshes and large parts get coarse ones. When `meshRelative` is false, this is an absolute value in model units (mm for STEP). */
|
|
3632
|
+
meshPrecision?: number | PipelineRef;
|
|
3633
|
+
/** Enable Draco geometry compression on output. */
|
|
3634
|
+
useDraco?: boolean | PipelineRef;
|
|
3635
|
+
/** Draco compression level - 0 (fastest, largest) ... 10 (slowest, smallest). */
|
|
3636
|
+
dracoCompressionLevel?: number | PipelineRef;
|
|
3637
|
+
/** Quantization bits for vertex positions. */
|
|
3638
|
+
dracoQuantizePositionBits?: number | PipelineRef;
|
|
3639
|
+
/** Quantization bits for normals. */
|
|
3640
|
+
dracoQuantizeNormalBits?: number | PipelineRef;
|
|
3641
|
+
/** Quantization bits for texture coordinates (UVs). */
|
|
3642
|
+
dracoQuantizeTexcoordBits?: number | PipelineRef;
|
|
3643
|
+
/** Quantization bits for vertex colors. */
|
|
3644
|
+
dracoQuantizeColorBits?: number | PipelineRef;
|
|
3645
|
+
/** Quantization bits for generic attributes. */
|
|
3646
|
+
dracoQuantizeGenericBits?: number | PipelineRef;
|
|
3647
|
+
/** Apply a single quantization grid across all attributes. */
|
|
3648
|
+
dracoUnifiedQuantization?: boolean | PipelineRef;
|
|
3649
|
+
};
|
|
3274
3650
|
/** Assembles multiple path parts into a complete DXF file. Important - shapes containing wires must lie on XZ plane (Y=0) for correct 2D DXF export. */
|
|
3275
3651
|
"occt.io.dxfCreate": {
|
|
3276
3652
|
/** Array of DXF paths parts (output from dxfPathsWithLayer) */
|
|
@@ -5764,6 +6140,32 @@ export interface OperationParams {
|
|
|
5764
6140
|
/** tolerance */
|
|
5765
6141
|
tolerance?: number | PipelineRef;
|
|
5766
6142
|
};
|
|
6143
|
+
/** Creates two wires by connecting the start points and the end points of two or more wires or edges */
|
|
6144
|
+
"occt.shapes.wire.createWiresBetweenStartEndPointsOfWiresAndEdges": {
|
|
6145
|
+
/** Two or more wires or edges whose start and end points will be connected */
|
|
6146
|
+
shapes: unknown[] | PipelineRef;
|
|
6147
|
+
/** Whether to connect the points with straight polyline segments or to interpolate a smooth BSpline through them */
|
|
6148
|
+
wireType?: "polyline" | "interpolated" | PipelineRef;
|
|
6149
|
+
/** Whether to close the resulting wires. For polyline wires this creates a polygon, for interpolated wires this creates a periodic (closed) BSpline. */
|
|
6150
|
+
closed?: boolean | PipelineRef;
|
|
6151
|
+
/** Tolerance used when interpolating the BSpline (only used when wireType is interpolated) */
|
|
6152
|
+
tolerance?: number | PipelineRef;
|
|
6153
|
+
};
|
|
6154
|
+
/** Subdivides two or more wires or edges and creates wires connecting the points found at matching subdivision indexes */
|
|
6155
|
+
"occt.shapes.wire.createWiresBetweenSubdividedPointsOfWiresAndEdges": {
|
|
6156
|
+
/** Two or more wires or edges that will be subdivided and connected through the points at matching subdivision indexes */
|
|
6157
|
+
shapes: unknown[] | PipelineRef;
|
|
6158
|
+
/** Into how many segments each wire or edge should be subdivided. The number of resulting wires will be nrOfDivisions + 1. */
|
|
6159
|
+
nrOfDivisions?: number | PipelineRef;
|
|
6160
|
+
/** If true, the subdivision points will be spaced by equal distance along each shape. By default the parametric subdivision is used, which is not always equal to distance based subdivisions. */
|
|
6161
|
+
divideByEqualDistance?: boolean | PipelineRef;
|
|
6162
|
+
/** Whether to connect the points with straight polyline segments or to interpolate a smooth BSpline through them */
|
|
6163
|
+
wireType?: "polyline" | "interpolated" | PipelineRef;
|
|
6164
|
+
/** Whether to close the resulting wires. For polyline wires this creates a polygon, for interpolated wires this creates a periodic (closed) BSpline. */
|
|
6165
|
+
closed?: boolean | PipelineRef;
|
|
6166
|
+
/** Tolerance used when interpolating the BSpline (only used when wireType is interpolated) */
|
|
6167
|
+
tolerance?: number | PipelineRef;
|
|
6168
|
+
};
|
|
5767
6169
|
/** Creates zig zag between two wires */
|
|
5768
6170
|
"occt.shapes.wire.createZigZagBetweenTwoWires": {
|
|
5769
6171
|
/** The first wire for zig zag */
|
|
@@ -6149,6 +6551,14 @@ export interface OperationParams {
|
|
|
6149
6551
|
precision?: number | PipelineRef;
|
|
6150
6552
|
/** Adjust Y (up) coordinate system to Z (up) coordinate system */
|
|
6151
6553
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6554
|
+
/** Compute additional per-face and per-edge metadata (area, length, centers of mass, surface/curve type, tolerance and adjacency). Adds cost; base mesh is unchanged when false. */
|
|
6555
|
+
computeMetadata?: boolean | PipelineRef;
|
|
6556
|
+
/** Keep the cached triangulation on each shape after meshing. When false (default) the mesh data is flushed so it does not accumulate in memory across calls. */
|
|
6557
|
+
keepMeshData?: boolean | PipelineRef;
|
|
6558
|
+
/** Allow re-meshing to a lower resolution triangulation than one already cached on a shape (OCCT IMeshTools_Parameters.AllowQualityDecrease). */
|
|
6559
|
+
allowQualityDecrease?: boolean | PipelineRef;
|
|
6560
|
+
/** Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection). */
|
|
6561
|
+
forceFaceDeflection?: boolean | PipelineRef;
|
|
6152
6562
|
};
|
|
6153
6563
|
/** Creates mesh from the shape */
|
|
6154
6564
|
"occt.shapeToMesh": {
|
|
@@ -6158,6 +6568,14 @@ export interface OperationParams {
|
|
|
6158
6568
|
precision?: number | PipelineRef;
|
|
6159
6569
|
/** Adjust Y (up) coordinate system to Z (up) coordinate system */
|
|
6160
6570
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6571
|
+
/** Compute additional per-face and per-edge metadata (area, length, centers of mass, surface/curve type, tolerance and adjacency). Adds cost; base mesh is unchanged when false. */
|
|
6572
|
+
computeMetadata?: boolean | PipelineRef;
|
|
6573
|
+
/** Keep the cached triangulation on the shape after meshing. When false (default) the mesh data is flushed off the shape so it does not accumulate in memory across calls. */
|
|
6574
|
+
keepMeshData?: boolean | PipelineRef;
|
|
6575
|
+
/** Allow re-meshing to a lower resolution triangulation than one already cached on the shape (OCCT IMeshTools_Parameters.AllowQualityDecrease). */
|
|
6576
|
+
allowQualityDecrease?: boolean | PipelineRef;
|
|
6577
|
+
/** Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection). */
|
|
6578
|
+
forceFaceDeflection?: boolean | PipelineRef;
|
|
6161
6579
|
};
|
|
6162
6580
|
/** Align the shape */
|
|
6163
6581
|
"occt.transforms.align": {
|
|
@@ -6217,6 +6635,27 @@ export interface OperationParams {
|
|
|
6217
6635
|
/** To direction */
|
|
6218
6636
|
toDirections?: [number, number, number][] | PipelineRef;
|
|
6219
6637
|
};
|
|
6638
|
+
/** Composes a matrix from translation, Euler rotation (degrees) and uniform scale (matches the T R S placement used by assembly nodes) */
|
|
6639
|
+
"occt.transforms.composeTransform": {
|
|
6640
|
+
/** Translation as [x, y, z] */
|
|
6641
|
+
translation?: [number, number, number] | PipelineRef;
|
|
6642
|
+
/** Rotation as Euler angles [rx, ry, rz] in degrees (applied Rx Ry Rz) */
|
|
6643
|
+
rotation?: [number, number, number] | PipelineRef;
|
|
6644
|
+
/** Uniform scale factor */
|
|
6645
|
+
scale?: number | PipelineRef;
|
|
6646
|
+
};
|
|
6647
|
+
/** Reads a shape's current placement (location) transform as a decomposed transform */
|
|
6648
|
+
"occt.transforms.getShapeTransform": {
|
|
6649
|
+
/** Shape whose current placement (location) transform will be read */
|
|
6650
|
+
shape: unknown | PipelineRef;
|
|
6651
|
+
};
|
|
6652
|
+
/** Builds an identity transformation matrix */
|
|
6653
|
+
"occt.transforms.identityTransform": {};
|
|
6654
|
+
/** Inverts a transformation matrix */
|
|
6655
|
+
"occt.transforms.invertTransform": {
|
|
6656
|
+
/** Transformation matrix (column-major, 16 numbers) to invert */
|
|
6657
|
+
transformation: unknown | PipelineRef;
|
|
6658
|
+
};
|
|
6220
6659
|
/** Mirrors the shape */
|
|
6221
6660
|
"occt.transforms.mirror": {
|
|
6222
6661
|
/** Shape to mirror */
|
|
@@ -6226,6 +6665,13 @@ export interface OperationParams {
|
|
|
6226
6665
|
/** Axis direction vector */
|
|
6227
6666
|
direction?: [number, number, number] | PipelineRef;
|
|
6228
6667
|
};
|
|
6668
|
+
/** Mirrors (point-inverts) the shape about a point */
|
|
6669
|
+
"occt.transforms.mirrorAboutPoint": {
|
|
6670
|
+
/** Shape to mirror */
|
|
6671
|
+
shape: unknown | PipelineRef;
|
|
6672
|
+
/** Point to mirror (point-invert) about */
|
|
6673
|
+
point?: [number, number, number] | PipelineRef;
|
|
6674
|
+
};
|
|
6229
6675
|
/** Mirrors the shape along the normal and origin */
|
|
6230
6676
|
"occt.transforms.mirrorAlongNormal": {
|
|
6231
6677
|
/** Shape to mirror */
|
|
@@ -6244,6 +6690,25 @@ export interface OperationParams {
|
|
|
6244
6690
|
/** First normal axis direction vector */
|
|
6245
6691
|
normals?: [number, number, number][] | PipelineRef;
|
|
6246
6692
|
};
|
|
6693
|
+
/** Builds a mirror matrix about an axis */
|
|
6694
|
+
"occt.transforms.mirrorAxisToMatrix": {
|
|
6695
|
+
/** Axis origin */
|
|
6696
|
+
origin?: [number, number, number] | PipelineRef;
|
|
6697
|
+
/** Axis direction to mirror about */
|
|
6698
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6699
|
+
};
|
|
6700
|
+
/** Builds a mirror matrix about a plane (origin + normal) */
|
|
6701
|
+
"occt.transforms.mirrorPlaneToMatrix": {
|
|
6702
|
+
/** Plane origin */
|
|
6703
|
+
origin?: [number, number, number] | PipelineRef;
|
|
6704
|
+
/** Plane normal to mirror about */
|
|
6705
|
+
normal?: [number, number, number] | PipelineRef;
|
|
6706
|
+
};
|
|
6707
|
+
/** Builds a mirror (point inversion) matrix about a point */
|
|
6708
|
+
"occt.transforms.mirrorPointToMatrix": {
|
|
6709
|
+
/** Point to mirror (point-invert) about */
|
|
6710
|
+
point?: [number, number, number] | PipelineRef;
|
|
6711
|
+
};
|
|
6247
6712
|
/** Mirrors the shapes with multiple mirrors */
|
|
6248
6713
|
"occt.transforms.mirrorShapes": {
|
|
6249
6714
|
/** Shape to mirror */
|
|
@@ -6253,6 +6718,16 @@ export interface OperationParams {
|
|
|
6253
6718
|
/** Axis direction vector */
|
|
6254
6719
|
directions?: [number, number, number][] | PipelineRef;
|
|
6255
6720
|
};
|
|
6721
|
+
/** Folds a matrix or an ordered list of matrices (applied first-to-last) into one matrix */
|
|
6722
|
+
"occt.transforms.multiplyTransforms": {
|
|
6723
|
+
/** Ordered list of matrices (applied first-to-last) folded into a single matrix */
|
|
6724
|
+
transformation: unknown | PipelineRef;
|
|
6725
|
+
};
|
|
6726
|
+
/** Builds a rotation matrix from a quaternion [x, y, z, w] */
|
|
6727
|
+
"occt.transforms.quaternionToMatrix": {
|
|
6728
|
+
/** Rotation quaternion [x, y, z, w] */
|
|
6729
|
+
quaternion?: unknown | PipelineRef;
|
|
6730
|
+
};
|
|
6256
6731
|
/** Rotate the shape */
|
|
6257
6732
|
"occt.transforms.rotate": {
|
|
6258
6733
|
/** Shape to rotate */
|
|
@@ -6284,6 +6759,13 @@ export interface OperationParams {
|
|
|
6284
6759
|
/** Axes around which to rotate */
|
|
6285
6760
|
axes?: [number, number, number][] | PipelineRef;
|
|
6286
6761
|
};
|
|
6762
|
+
/** Rotates the shape by a quaternion [x, y, z, w] */
|
|
6763
|
+
"occt.transforms.rotateByQuaternion": {
|
|
6764
|
+
/** Shape to rotate */
|
|
6765
|
+
shape: unknown | PipelineRef;
|
|
6766
|
+
/** Rotation quaternion [x, y, z, w] */
|
|
6767
|
+
quaternion?: unknown | PipelineRef;
|
|
6768
|
+
};
|
|
6287
6769
|
/** Rotate the shapes with rotations */
|
|
6288
6770
|
"occt.transforms.rotateShapes": {
|
|
6289
6771
|
/** Shape to rotate */
|
|
@@ -6293,6 +6775,15 @@ export interface OperationParams {
|
|
|
6293
6775
|
/** Rotation degrees */
|
|
6294
6776
|
angles?: number[] | PipelineRef;
|
|
6295
6777
|
};
|
|
6778
|
+
/** Builds a rotation matrix from an axis (through an optional center) and angle in degrees */
|
|
6779
|
+
"occt.transforms.rotationAxisAngleToMatrix": {
|
|
6780
|
+
/** Rotation axis direction */
|
|
6781
|
+
axis?: [number, number, number] | PipelineRef;
|
|
6782
|
+
/** Rotation angle in degrees */
|
|
6783
|
+
angle?: number | PipelineRef;
|
|
6784
|
+
/** Point the axis passes through */
|
|
6785
|
+
center?: [number, number, number] | PipelineRef;
|
|
6786
|
+
};
|
|
6296
6787
|
/** Scales the shape */
|
|
6297
6788
|
"occt.transforms.scale": {
|
|
6298
6789
|
/** Shape to scale */
|
|
@@ -6318,6 +6809,15 @@ export interface OperationParams {
|
|
|
6318
6809
|
/** Scale from the center */
|
|
6319
6810
|
centers?: [number, number, number][] | PipelineRef;
|
|
6320
6811
|
};
|
|
6812
|
+
/** Scales the shape uniformly about an arbitrary center point */
|
|
6813
|
+
"occt.transforms.scaleFromCenter": {
|
|
6814
|
+
/** Shape to scale */
|
|
6815
|
+
shape: unknown | PipelineRef;
|
|
6816
|
+
/** Uniform scale factor */
|
|
6817
|
+
factor?: number | PipelineRef;
|
|
6818
|
+
/** Center point to scale about */
|
|
6819
|
+
center?: [number, number, number] | PipelineRef;
|
|
6820
|
+
};
|
|
6321
6821
|
/** Scales the shapes with scale factors */
|
|
6322
6822
|
"occt.transforms.scaleShapes": {
|
|
6323
6823
|
/** Shape to scale */
|
|
@@ -6325,6 +6825,13 @@ export interface OperationParams {
|
|
|
6325
6825
|
/** Scale factor to apply */
|
|
6326
6826
|
factors?: number[] | PipelineRef;
|
|
6327
6827
|
};
|
|
6828
|
+
/** Builds a uniform-scale matrix about an optional center point */
|
|
6829
|
+
"occt.transforms.scaleUniformToMatrix": {
|
|
6830
|
+
/** Uniform scale factor */
|
|
6831
|
+
factor?: number | PipelineRef;
|
|
6832
|
+
/** Center point to scale about */
|
|
6833
|
+
center?: [number, number, number] | PipelineRef;
|
|
6834
|
+
};
|
|
6328
6835
|
/** Transforms the shape */
|
|
6329
6836
|
"occt.transforms.transform": {
|
|
6330
6837
|
/** Shape to transform */
|
|
@@ -6338,6 +6845,13 @@ export interface OperationParams {
|
|
|
6338
6845
|
/** Scale factor to apply */
|
|
6339
6846
|
scaleFactor?: number | PipelineRef;
|
|
6340
6847
|
};
|
|
6848
|
+
/** Applies an arbitrary 4x4 matrix (column-major) - or an ordered list of matrices applied first-to-last - to a shape */
|
|
6849
|
+
"occt.transforms.transformByMatrix": {
|
|
6850
|
+
/** Shape to transform */
|
|
6851
|
+
shape: unknown | PipelineRef;
|
|
6852
|
+
/** Transformation matrix (column-major, 16 numbers) or an ordered list of matrices applied first-to-last */
|
|
6853
|
+
transformation: unknown | PipelineRef;
|
|
6854
|
+
};
|
|
6341
6855
|
/** Transforms the array of shapes with transformations */
|
|
6342
6856
|
"occt.transforms.transformShapes": {
|
|
6343
6857
|
/** Shape to transform */
|
|
@@ -6351,6 +6865,13 @@ export interface OperationParams {
|
|
|
6351
6865
|
/** Scale factor to apply */
|
|
6352
6866
|
scaleFactors?: number[] | PipelineRef;
|
|
6353
6867
|
};
|
|
6868
|
+
/** Applies the same matrix (or ordered list) to multiple shapes */
|
|
6869
|
+
"occt.transforms.transformShapesByMatrix": {
|
|
6870
|
+
/** Shapes to transform (the same transformation is applied to each) */
|
|
6871
|
+
shapes: unknown[] | PipelineRef;
|
|
6872
|
+
/** Transformation matrix (column-major) or an ordered list of matrices applied first-to-last */
|
|
6873
|
+
transformation: unknown | PipelineRef;
|
|
6874
|
+
};
|
|
6354
6875
|
/** Translates the shape */
|
|
6355
6876
|
"occt.transforms.translate": {
|
|
6356
6877
|
/** Shape for translation */
|
|
@@ -6365,6 +6886,43 @@ export interface OperationParams {
|
|
|
6365
6886
|
/** Translation vector */
|
|
6366
6887
|
translations?: [number, number, number][] | PipelineRef;
|
|
6367
6888
|
};
|
|
6889
|
+
/** Builds a translation matrix */
|
|
6890
|
+
"occt.transforms.translationToMatrix": {
|
|
6891
|
+
/** Translation as [x, y, z] */
|
|
6892
|
+
translation?: [number, number, number] | PipelineRef;
|
|
6893
|
+
};
|
|
6894
|
+
/** Sheet-metal unfold metrics report for a single face */
|
|
6895
|
+
"occtPro.sheetMetal.unfoldFaceReport": {
|
|
6896
|
+
/** Shape that contains the face to unfold */
|
|
6897
|
+
shape: unknown | PipelineRef;
|
|
6898
|
+
/** 0-based index of the developable face to unfold */
|
|
6899
|
+
faceIndex?: number | PipelineRef;
|
|
6900
|
+
};
|
|
6901
|
+
/** Unfold a single developable face to a flat face */
|
|
6902
|
+
"occtPro.sheetMetal.unfoldFaceToFlat": {
|
|
6903
|
+
/** Shape that contains the face to unfold */
|
|
6904
|
+
shape: unknown | PipelineRef;
|
|
6905
|
+
/** 0-based index of the developable face to unfold */
|
|
6906
|
+
faceIndex?: number | PipelineRef;
|
|
6907
|
+
};
|
|
6908
|
+
/** Sheet-metal unfold metrics report for a solid */
|
|
6909
|
+
"occtPro.sheetMetal.unfoldSolidReport": {
|
|
6910
|
+
/** Constant-thickness sheet-metal solid to flatten */
|
|
6911
|
+
shape: unknown | PipelineRef;
|
|
6912
|
+
/** Neutral-axis K-factor (~0.5) */
|
|
6913
|
+
kFactor?: number | PipelineRef;
|
|
6914
|
+
/** Sheet thickness; 0 auto-detects from face pairs */
|
|
6915
|
+
thicknessOverride?: number | PipelineRef;
|
|
6916
|
+
};
|
|
6917
|
+
/** Flatten a constant-thickness sheet-metal solid */
|
|
6918
|
+
"occtPro.sheetMetal.unfoldSolidToFlat": {
|
|
6919
|
+
/** Constant-thickness sheet-metal solid to flatten */
|
|
6920
|
+
shape: unknown | PipelineRef;
|
|
6921
|
+
/** Neutral-axis K-factor (~0.5) */
|
|
6922
|
+
kFactor?: number | PipelineRef;
|
|
6923
|
+
/** Sheet thickness; 0 auto-detects from face pairs */
|
|
6924
|
+
thicknessOverride?: number | PipelineRef;
|
|
6925
|
+
};
|
|
6368
6926
|
/** Calculates centroid (average position) of multiple points. Example: points=[[0,0,0], [10,0,0], [10,10,0]] → [6.67,3.33,0] */
|
|
6369
6927
|
"point.averagePoint": {
|
|
6370
6928
|
/** Points */
|