@bitbybit-dev/cad-cloud-sdk 1.0.2 → 1.1.1
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 +762 -6
- 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.path.shapeFromPath" | "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.debugInfo" | "occt.shapes.edge.divideEdgeByEqualDistanceToPoints" | "occt.shapes.edge.divideEdgeByParamsToPoints" | "occt.shapes.edge.divideEdgesByEqualDistanceToPoints" | "occt.shapes.edge.divideEdgesByParamsToPoints" | "occt.shapes.edge.edgesToPoints" | "occt.shapes.edge.endPointOnEdge" | "occt.shapes.edge.endPointsOnEdges" | "occt.shapes.edge.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.moveEdgeSeamByLength" | "occt.shapes.edge.moveEdgeSeamByParameter" | "occt.shapes.edge.pointOnEdgeAtLength" | "occt.shapes.edge.pointOnEdgeAtParam" | "occt.shapes.edge.pointsOnEdgesAtLength" | "occt.shapes.edge.pointsOnEdgesAtParam" | "occt.shapes.edge.rebuildEdgeDegree" | "occt.shapes.edge.removeInternalEdges" | "occt.shapes.edge.reversedEdge" | "occt.shapes.edge.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.debugInfo" | "occt.shapes.face.faceFromSurface" | "occt.shapes.face.faceFromSurfaceAndWire" | "occt.shapes.face.filterFacePoints" | "occt.shapes.face.filterFacesPoints" | "occt.shapes.face.flipFaceUV" | "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.normalizeFaceParametrization" | "occt.shapes.face.normalOnUV" | "occt.shapes.face.normalsOnUVs" | "occt.shapes.face.pointOnUV" | "occt.shapes.face.pointsOnUVs" | "occt.shapes.face.rebuildFaceDegree" | "occt.shapes.face.reversedFace" | "occt.shapes.face.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.debugInfo" | "occt.shapes.shell.getShellSurfaceArea" | "occt.shapes.shell.sewFaces" | "occt.shapes.solid.createBox" | "occt.shapes.solid.createBoxFromCorner" | "occt.shapes.solid.createChristmasTreeSolid" | "occt.shapes.solid.createCone" | "occt.shapes.solid.createCube" | "occt.shapes.solid.createCylinder" | "occt.shapes.solid.createCylindersOnLines" | "occt.shapes.solid.createHBeamProfileSolid" | "occt.shapes.solid.createHeartSolid" | "occt.shapes.solid.createIBeamProfileSolid" | "occt.shapes.solid.createLPolygonSolid" | "occt.shapes.solid.createNGonSolid" | "occt.shapes.solid.createParallelogramSolid" | "occt.shapes.solid.createSphere" | "occt.shapes.solid.createStarSolid" | "occt.shapes.solid.createTBeamProfileSolid" | "occt.shapes.solid.createTorus" | "occt.shapes.solid.createUBeamProfileSolid" | "occt.shapes.solid.debugInfo" | "occt.shapes.solid.filterSolidPoints" | "occt.shapes.solid.fromClosedShell" | "occt.shapes.solid.getSolidCenterOfMass" | "occt.shapes.solid.getSolids" | "occt.shapes.solid.getSolidsCentersOfMass" | "occt.shapes.solid.getSolidSurfaceArea" | "occt.shapes.solid.getSolidsVolumes" | "occt.shapes.solid.getSolidVolume" | "occt.shapes.vertex.getVertices" | "occt.shapes.vertex.getVerticesAsPoints" | "occt.shapes.vertex.projectPoints" | "occt.shapes.vertex.vertexFromPoint" | "occt.shapes.vertex.vertexFromXYZ" | "occt.shapes.vertex.vertexToPoint" | "occt.shapes.vertex.verticesCompoundFromPoints" | "occt.shapes.vertex.verticesFromPoints" | "occt.shapes.vertex.verticesToPoints" | "occt.shapes.wire.addEdgesAndWiresToWire" | "occt.shapes.wire.closeOpenWire" | "occt.shapes.wire.combineEdgesAndWiresIntoAWire" | "occt.shapes.wire.createBezier" | "occt.shapes.wire.createBezierWeights" | "occt.shapes.wire.createBezierWires" | "occt.shapes.wire.createBSpline" | "occt.shapes.wire.createBSplines" | "occt.shapes.wire.createChristmasTreeWire" | "occt.shapes.wire.createCircleWire" | "occt.shapes.wire.createEllipseWire" | "occt.shapes.wire.createFlatSpiralWire" | "occt.shapes.wire.createHBeamProfileWire" | "occt.shapes.wire.createHeartWire" | "occt.shapes.wire.createHelixWire" | "occt.shapes.wire.createHelixWireByTurns" | "occt.shapes.wire.createIBeamProfileWire" | "occt.shapes.wire.createLines" | "occt.shapes.wire.createLineWire" | "occt.shapes.wire.createLineWireWithExtensions" | "occt.shapes.wire.createLPolygonWire" | "occt.shapes.wire.createNGonWire" | "occt.shapes.wire.createParallelogramWire" | "occt.shapes.wire.createPolygons" | "occt.shapes.wire.createPolygonWire" | "occt.shapes.wire.createPolylines" | "occt.shapes.wire.createPolylineWire" | "occt.shapes.wire.createRectangleWire" | "occt.shapes.wire.createSquareWire" | "occt.shapes.wire.createStarWire" | "occt.shapes.wire.createTaperedHelixWire" | "occt.shapes.wire.createTBeamProfileWire" | "occt.shapes.wire.createUBeamProfileWire" | "occt.shapes.wire.createWireFromEdge" | "occt.shapes.wire.createWireFromTwoCirclesTan" | "occt.shapes.wire.createWiresBetweenStartEndPointsOfWiresAndEdges" | "occt.shapes.wire.createWiresBetweenSubdividedPointsOfWiresAndEdges" | "occt.shapes.wire.createZigZagBetweenTwoWires" | "occt.shapes.wire.debugInfo" | "occt.shapes.wire.derivativesOnWireAtLength" | "occt.shapes.wire.derivativesOnWireAtParam" | "occt.shapes.wire.divideWireByEqualDistanceToPoints" | "occt.shapes.wire.divideWireByParamsToPoints" | "occt.shapes.wire.divideWiresByEqualDistanceToPoints" | "occt.shapes.wire.divideWiresByParamsToPoints" | "occt.shapes.wire.endPointOnWire" | "occt.shapes.wire.fromBaseLine" | "occt.shapes.wire.fromBaseLines" | "occt.shapes.wire.fromBaseMesh" | "occt.shapes.wire.fromBasePolyline" | "occt.shapes.wire.fromBaseSegment" | "occt.shapes.wire.fromBaseSegments" | "occt.shapes.wire.fromBaseTriangle" | "occt.shapes.wire.fromPoints" | "occt.shapes.wire.getWire" | "occt.shapes.wire.getWireCenterOfMass" | "occt.shapes.wire.getWireLength" | "occt.shapes.wire.getWires" | "occt.shapes.wire.getWiresCentersOfMass" | "occt.shapes.wire.getWiresLengths" | "occt.shapes.wire.hexagonsInGrid" | "occt.shapes.wire.interpolatePoints" | "occt.shapes.wire.interpolatePointsSymmetric" | "occt.shapes.wire.interpolateWires" | "occt.shapes.wire.isWireClosed" | "occt.shapes.wire.midPointOnWire" | "occt.shapes.wire.moveWireSeamByLength" | "occt.shapes.wire.moveWireSeamByParameter" | "occt.shapes.wire.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.rebuildWireDegree" | "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.svg.loadSVG" | "occt.svg.loadSVGStructured" | "occt.transforms.align" | "occt.transforms.alignAndTranslate" | "occt.transforms.alignAndTranslateShapes" | "occt.transforms.alignNormAndAxis" | "occt.transforms.alignShapes" | "occt.transforms.composeTransform" | "occt.transforms.getShapeTransform" | "occt.transforms.identityTransform" | "occt.transforms.invertTransform" | "occt.transforms.mirror" | "occt.transforms.mirrorAboutPoint" | "occt.transforms.mirrorAlongNormal" | "occt.transforms.mirrorAlongNormalShapes" | "occt.transforms.mirrorAxisToMatrix" | "occt.transforms.mirrorPlaneToMatrix" | "occt.transforms.mirrorPointToMatrix" | "occt.transforms.mirrorShapes" | "occt.transforms.multiplyTransforms" | "occt.transforms.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) */
|
|
@@ -3664,6 +4040,23 @@ export interface OperationParams {
|
|
|
3664
4040
|
/** Set to true if you want to split the shape non-destructively */
|
|
3665
4041
|
nonDestructive?: boolean | PipelineRef;
|
|
3666
4042
|
};
|
|
4043
|
+
/** Builds a single shape (wire, compound of wires, or a face when makeFaces is set) from path subpaths. */
|
|
4044
|
+
"occt.path.shapeFromPath": {
|
|
4045
|
+
/** Subpaths describing the geometry. */
|
|
4046
|
+
subpaths: unknown[] | PipelineRef;
|
|
4047
|
+
/** Build faces from the (closed) subpaths in addition to wires. */
|
|
4048
|
+
makeFaces?: boolean | PipelineRef;
|
|
4049
|
+
/** Join each subpath's segments into a single curve where possible. */
|
|
4050
|
+
joinSegments?: boolean | PipelineRef;
|
|
4051
|
+
/** Tolerance used when joining/sewing segments. */
|
|
4052
|
+
tolerance?: number | PipelineRef;
|
|
4053
|
+
/** Uniform scale applied to path coordinates. */
|
|
4054
|
+
scale?: number | PipelineRef;
|
|
4055
|
+
/** Negate Y so the path appears upright (Y up) in CAD. */
|
|
4056
|
+
flipY?: boolean | PipelineRef;
|
|
4057
|
+
/** Translation applied after scale/flip. */
|
|
4058
|
+
origin?: [number, number, number] | PipelineRef;
|
|
4059
|
+
};
|
|
3667
4060
|
/** Creates polygon points from the shape faces */
|
|
3668
4061
|
"occt.shapeFacesToPolygonPoints": {
|
|
3669
4062
|
/** Shape to save */
|
|
@@ -3844,6 +4237,11 @@ export interface OperationParams {
|
|
|
3844
4237
|
/** Major radius of an ellipse */
|
|
3845
4238
|
radiusMajor?: number | PipelineRef;
|
|
3846
4239
|
};
|
|
4240
|
+
/** Returns debug info about the edge's curve: type, degree, poles/knots, rational/periodic/closed, parameter range, period, length and end points. */
|
|
4241
|
+
"occt.shapes.edge.debugInfo": {
|
|
4242
|
+
/** Shape on which action should be performed */
|
|
4243
|
+
shape: unknown | PipelineRef;
|
|
4244
|
+
};
|
|
3847
4245
|
/** Divides edge by length to points */
|
|
3848
4246
|
"occt.shapes.edge.divideEdgeByEqualDistanceToPoints": {
|
|
3849
4247
|
/** Shape representing a wire */
|
|
@@ -4049,6 +4447,20 @@ export interface OperationParams {
|
|
|
4049
4447
|
/** Surface */
|
|
4050
4448
|
surface: unknown | PipelineRef;
|
|
4051
4449
|
};
|
|
4450
|
+
/** Moves the seam (origin) of a periodic edge by an arc length from the current start. */
|
|
4451
|
+
"occt.shapes.edge.moveEdgeSeamByLength": {
|
|
4452
|
+
/** Periodic wire or edge whose seam is moved (non-periodic is returned unchanged). */
|
|
4453
|
+
shape: unknown | PipelineRef;
|
|
4454
|
+
/** Arc length, measured forward from the current start, at which to place the new seam. */
|
|
4455
|
+
length?: number | PipelineRef;
|
|
4456
|
+
};
|
|
4457
|
+
/** Moves the seam (origin) of a periodic edge to a parameter value. */
|
|
4458
|
+
"occt.shapes.edge.moveEdgeSeamByParameter": {
|
|
4459
|
+
/** Periodic wire or edge whose seam is moved (non-periodic is returned unchanged). */
|
|
4460
|
+
shape: unknown | PipelineRef;
|
|
4461
|
+
/** Parameter value at which to place the new seam (origin). */
|
|
4462
|
+
parameter?: number | PipelineRef;
|
|
4463
|
+
};
|
|
4052
4464
|
/** Gets the point on edge at length */
|
|
4053
4465
|
"occt.shapes.edge.pointOnEdgeAtLength": {
|
|
4054
4466
|
/** Shape */
|
|
@@ -4077,6 +4489,15 @@ export interface OperationParams {
|
|
|
4077
4489
|
/** 0 - 1 value */
|
|
4078
4490
|
param?: number | PipelineRef;
|
|
4079
4491
|
};
|
|
4492
|
+
/** Rebuilds an edge's curve to relax (lower) or raise its polynomial degree. */
|
|
4493
|
+
"occt.shapes.edge.rebuildEdgeDegree": {
|
|
4494
|
+
/** Wire or edge whose curve degree is rebuilt. */
|
|
4495
|
+
shape: unknown | PipelineRef;
|
|
4496
|
+
/** Target maximum degree. Lowering relaxes the curve to a smoother, lower-order approximation (within tolerance); raising is exact. The practical lower bound is 3 (cubic). */
|
|
4497
|
+
degree?: number | PipelineRef;
|
|
4498
|
+
/** Tolerance used when relaxing (approximating) to a lower degree. */
|
|
4499
|
+
tolerance?: number | PipelineRef;
|
|
4500
|
+
};
|
|
4080
4501
|
/** Removes internal faces for the shape */
|
|
4081
4502
|
"occt.shapes.edge.removeInternalEdges": {
|
|
4082
4503
|
/** Shape on which action should be performed */
|
|
@@ -4414,6 +4835,11 @@ export interface OperationParams {
|
|
|
4414
4835
|
/** Direction of the U-beam profile */
|
|
4415
4836
|
direction?: [number, number, number] | PipelineRef;
|
|
4416
4837
|
};
|
|
4838
|
+
/** Returns debug info about the face's surface: type, U/V degree, poles/knots, U/V rational/periodic/closed, UV bounds, area, planarity, orientation and wire/edge counts. */
|
|
4839
|
+
"occt.shapes.face.debugInfo": {
|
|
4840
|
+
/** Shape on which action should be performed */
|
|
4841
|
+
shape: unknown | PipelineRef;
|
|
4842
|
+
};
|
|
4417
4843
|
/** Creates a face from the surface */
|
|
4418
4844
|
"occt.shapes.face.faceFromSurface": {
|
|
4419
4845
|
/** Shape on which action should be performed */
|
|
@@ -4472,6 +4898,17 @@ export interface OperationParams {
|
|
|
4472
4898
|
/** Returns flat points array by default, otherwise returns points for each face in order provided */
|
|
4473
4899
|
flatPointsArray?: boolean | PipelineRef;
|
|
4474
4900
|
};
|
|
4901
|
+
/** Flips a face's UV parametrization: swap U/V and/or reverse the U or V direction. */
|
|
4902
|
+
"occt.shapes.face.flipFaceUV": {
|
|
4903
|
+
/** Face whose UV parametrization is flipped. */
|
|
4904
|
+
shape: unknown | PipelineRef;
|
|
4905
|
+
/** Swap the U and V directions. */
|
|
4906
|
+
swapUV?: boolean | PipelineRef;
|
|
4907
|
+
/** Reverse the U direction. */
|
|
4908
|
+
reverseU?: boolean | PipelineRef;
|
|
4909
|
+
/** Reverse the V direction. */
|
|
4910
|
+
reverseV?: boolean | PipelineRef;
|
|
4911
|
+
};
|
|
4475
4912
|
/** Creates faces from mesh definition */
|
|
4476
4913
|
"occt.shapes.face.fromBaseMesh": {
|
|
4477
4914
|
/** Mesh */
|
|
@@ -4563,6 +5000,19 @@ export interface OperationParams {
|
|
|
4563
5000
|
/** Inclusion pattern - true means that the hex will be included, false means that the hex will be removed */
|
|
4564
5001
|
inclusionPattern?: unknown[] | PipelineRef;
|
|
4565
5002
|
};
|
|
5003
|
+
/** Reparametrizes a face so its U and/or V parameter is ~uniform by arc length (even iso spacing). */
|
|
5004
|
+
"occt.shapes.face.normalizeFaceParametrization": {
|
|
5005
|
+
/** Face to reparametrize. */
|
|
5006
|
+
shape: unknown | PipelineRef;
|
|
5007
|
+
/** Make the U parameter ~uniform by arc length. */
|
|
5008
|
+
normalizeU?: boolean | PipelineRef;
|
|
5009
|
+
/** Make the V parameter ~uniform by arc length. */
|
|
5010
|
+
normalizeV?: boolean | PipelineRef;
|
|
5011
|
+
/** Resampling grid resolution per direction (higher = more faithful, slower). */
|
|
5012
|
+
samples?: number | PipelineRef;
|
|
5013
|
+
/** Refit tolerance. */
|
|
5014
|
+
tolerance?: number | PipelineRef;
|
|
5015
|
+
};
|
|
4566
5016
|
/** Get normal on UV where U and V are described between 0 and 1. These will be mapped to real bounds. */
|
|
4567
5017
|
"occt.shapes.face.normalOnUV": {
|
|
4568
5018
|
/** Brep OpenCascade geometry */
|
|
@@ -4595,6 +5045,19 @@ export interface OperationParams {
|
|
|
4595
5045
|
/** Params uv */
|
|
4596
5046
|
paramsUV?: unknown[] | PipelineRef;
|
|
4597
5047
|
};
|
|
5048
|
+
/** Rebuilds a face's surface to relax (lower) or raise its U and V degree. */
|
|
5049
|
+
"occt.shapes.face.rebuildFaceDegree": {
|
|
5050
|
+
/** Face whose surface degree is rebuilt. */
|
|
5051
|
+
shape: unknown | PipelineRef;
|
|
5052
|
+
/** Target maximum U degree (lowering relaxes within tolerance; raising is exact; floor 3). */
|
|
5053
|
+
uDegree?: number | PipelineRef;
|
|
5054
|
+
/** Target maximum V degree. */
|
|
5055
|
+
vDegree?: number | PipelineRef;
|
|
5056
|
+
/** Tolerance used when relaxing (approximating) to a lower degree. */
|
|
5057
|
+
tolerance?: number | PipelineRef;
|
|
5058
|
+
/** Keep the face's boundary wires (reliable for a degree raise, which preserves the UV domain); otherwise the face is rebuilt from the surface's natural bounds. */
|
|
5059
|
+
keepTrim?: boolean | PipelineRef;
|
|
5060
|
+
};
|
|
4598
5061
|
/** Computes reversed face from input face */
|
|
4599
5062
|
"occt.shapes.face.reversedFace": {
|
|
4600
5063
|
/** Shape on which action should be performed */
|
|
@@ -4938,6 +5401,11 @@ export interface OperationParams {
|
|
|
4938
5401
|
/** If true, unifies the edges */
|
|
4939
5402
|
concatBSplines?: boolean | PipelineRef;
|
|
4940
5403
|
};
|
|
5404
|
+
/** Returns debug info about the shell: face/edge counts, total surface area and per-face surface debug info (type, U/V degree, poles/knots, bounds, area, ...). */
|
|
5405
|
+
"occt.shapes.shell.debugInfo": {
|
|
5406
|
+
/** Shape on which action should be performed */
|
|
5407
|
+
shape: unknown | PipelineRef;
|
|
5408
|
+
};
|
|
4941
5409
|
/** Get shell surface area */
|
|
4942
5410
|
"occt.shapes.shell.getShellSurfaceArea": {
|
|
4943
5411
|
/** Shape on which action should be performed */
|
|
@@ -5252,6 +5720,11 @@ export interface OperationParams {
|
|
|
5252
5720
|
/** Extrusion length in the backward direction */
|
|
5253
5721
|
extrusionLengthBack?: number | PipelineRef;
|
|
5254
5722
|
};
|
|
5723
|
+
/** Returns debug info about the solid: face/edge counts, surface area, volume and per-face surface debug info (type, U/V degree, poles/knots, bounds, area, ...). */
|
|
5724
|
+
"occt.shapes.solid.debugInfo": {
|
|
5725
|
+
/** Shape on which action should be performed */
|
|
5726
|
+
shape: unknown | PipelineRef;
|
|
5727
|
+
};
|
|
5255
5728
|
/** Filters collection of points based on relationship with the solid. You can choose whether to output in, on or out points. */
|
|
5256
5729
|
"occt.shapes.solid.filterSolidPoints": {
|
|
5257
5730
|
/** Face that will be used to filter points */
|
|
@@ -5382,6 +5855,10 @@ export interface OperationParams {
|
|
|
5382
5855
|
points: [number, number, number][] | PipelineRef;
|
|
5383
5856
|
/** Indicates wether Bezier will be cloed */
|
|
5384
5857
|
closed?: boolean | PipelineRef;
|
|
5858
|
+
/** Optional maximum local degree. A classic Bezier has degree (controlPoints - 1), which oscillates and is hard-capped at 25; when a degree is given (or there are more than 26 control points) a clamped bounded-degree curve is built instead, so it scales to many control points while still following the control polygon. Left empty, a classic Bezier (or auto bounded-degree for many points) is used. */
|
|
5859
|
+
degree?: number | PipelineRef;
|
|
5860
|
+
/** Build a smooth CLOSED (periodic) curve that wraps the control polygon, continuous across the seam - unlike `closed`, which only meets C0 by repeating the first point. Uses degree (or a sensible default) and ignores `closed` when set. */
|
|
5861
|
+
periodic?: boolean | PipelineRef;
|
|
5385
5862
|
};
|
|
5386
5863
|
/** Creates OpenCascade Bezier wire with weights */
|
|
5387
5864
|
"occt.shapes.wire.createBezierWeights": {
|
|
@@ -5391,6 +5868,10 @@ export interface OperationParams {
|
|
|
5391
5868
|
weights: number[] | PipelineRef;
|
|
5392
5869
|
/** Indicates wether Bezier will be cloed */
|
|
5393
5870
|
closed?: boolean | PipelineRef;
|
|
5871
|
+
/** Build a smooth CLOSED (periodic) rational curve that wraps the weighted control polygon, continuous across the seam - unlike `closed`, which only meets C0 by repeating the first point. Requires one weight per point (the points are not duplicated). Ignores `closed` when set. */
|
|
5872
|
+
periodic?: boolean | PipelineRef;
|
|
5873
|
+
/** Maximum local degree used when `periodic` is set (clamped to [1, points-1]); empty uses a sensible default. Ignored for the non-periodic rational Bezier. */
|
|
5874
|
+
degree?: number | PipelineRef;
|
|
5394
5875
|
};
|
|
5395
5876
|
/** Creates OpenCascade Bezier wires */
|
|
5396
5877
|
"occt.shapes.wire.createBezierWires": {
|
|
@@ -5764,6 +6245,32 @@ export interface OperationParams {
|
|
|
5764
6245
|
/** tolerance */
|
|
5765
6246
|
tolerance?: number | PipelineRef;
|
|
5766
6247
|
};
|
|
6248
|
+
/** Creates two wires by connecting the start points and the end points of two or more wires or edges */
|
|
6249
|
+
"occt.shapes.wire.createWiresBetweenStartEndPointsOfWiresAndEdges": {
|
|
6250
|
+
/** Two or more wires or edges whose start and end points will be connected */
|
|
6251
|
+
shapes: unknown[] | PipelineRef;
|
|
6252
|
+
/** Whether to connect the points with straight polyline segments or to interpolate a smooth BSpline through them */
|
|
6253
|
+
wireType?: "polyline" | "interpolated" | PipelineRef;
|
|
6254
|
+
/** Whether to close the resulting wires. For polyline wires this creates a polygon, for interpolated wires this creates a periodic (closed) BSpline. */
|
|
6255
|
+
closed?: boolean | PipelineRef;
|
|
6256
|
+
/** Tolerance used when interpolating the BSpline (only used when wireType is interpolated) */
|
|
6257
|
+
tolerance?: number | PipelineRef;
|
|
6258
|
+
};
|
|
6259
|
+
/** Subdivides two or more wires or edges and creates wires connecting the points found at matching subdivision indexes */
|
|
6260
|
+
"occt.shapes.wire.createWiresBetweenSubdividedPointsOfWiresAndEdges": {
|
|
6261
|
+
/** Two or more wires or edges that will be subdivided and connected through the points at matching subdivision indexes */
|
|
6262
|
+
shapes: unknown[] | PipelineRef;
|
|
6263
|
+
/** Into how many segments each wire or edge should be subdivided. The number of resulting wires will be nrOfDivisions + 1. */
|
|
6264
|
+
nrOfDivisions?: number | PipelineRef;
|
|
6265
|
+
/** 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. */
|
|
6266
|
+
divideByEqualDistance?: boolean | PipelineRef;
|
|
6267
|
+
/** Whether to connect the points with straight polyline segments or to interpolate a smooth BSpline through them */
|
|
6268
|
+
wireType?: "polyline" | "interpolated" | PipelineRef;
|
|
6269
|
+
/** Whether to close the resulting wires. For polyline wires this creates a polygon, for interpolated wires this creates a periodic (closed) BSpline. */
|
|
6270
|
+
closed?: boolean | PipelineRef;
|
|
6271
|
+
/** Tolerance used when interpolating the BSpline (only used when wireType is interpolated) */
|
|
6272
|
+
tolerance?: number | PipelineRef;
|
|
6273
|
+
};
|
|
5767
6274
|
/** Creates zig zag between two wires */
|
|
5768
6275
|
"occt.shapes.wire.createZigZagBetweenTwoWires": {
|
|
5769
6276
|
/** The first wire for zig zag */
|
|
@@ -5779,6 +6286,11 @@ export interface OperationParams {
|
|
|
5779
6286
|
/** By default the number of zig zags is applied to each edge. If this is set to false, the number of zig zags will be applied to the whole wire. This could then skip some corners where edges meet. */
|
|
5780
6287
|
zigZagsPerEdge?: boolean | PipelineRef;
|
|
5781
6288
|
};
|
|
6289
|
+
/** Returns debug info about the wire: edge count, closed flag, total length and per-edge curve debug info (type, degree, poles/knots, rational/periodic, range, length). */
|
|
6290
|
+
"occt.shapes.wire.debugInfo": {
|
|
6291
|
+
/** Shape on which action should be performed */
|
|
6292
|
+
shape: unknown | PipelineRef;
|
|
6293
|
+
};
|
|
5782
6294
|
/** Computes 3 derivative vectors of a curve at a given length */
|
|
5783
6295
|
"occt.shapes.wire.derivativesOnWireAtLength": {
|
|
5784
6296
|
/** Shape */
|
|
@@ -5947,10 +6459,25 @@ export interface OperationParams {
|
|
|
5947
6459
|
"occt.shapes.wire.interpolatePoints": {
|
|
5948
6460
|
/** Points through which the BSpline will be created */
|
|
5949
6461
|
points: [number, number, number][] | PipelineRef;
|
|
5950
|
-
/** Indicates wether BSpline will be periodic */
|
|
6462
|
+
/** Indicates wether BSpline will be periodic (closed, tangent-continuous at the seam) */
|
|
5951
6463
|
periodic?: boolean | PipelineRef;
|
|
5952
6464
|
/** tolerance */
|
|
5953
6465
|
tolerance?: number | PipelineRef;
|
|
6466
|
+
/** Parametrization controlling point spacing along the curve. When omitted, chord-length is used (backward-compatible). Centripetal is recommended for uneven spacing as it resists cusps and overshoot. */
|
|
6467
|
+
parametrization?: "uniform" | "chordLength" | "centripetal" | PipelineRef;
|
|
6468
|
+
/** Optional tangent direction enforced at the start (non-periodic only). */
|
|
6469
|
+
startTangent?: [number, number, number] | PipelineRef;
|
|
6470
|
+
/** Optional tangent direction enforced at the end (non-periodic only). */
|
|
6471
|
+
endTangent?: [number, number, number] | PipelineRef;
|
|
6472
|
+
/** Optional per-point tangent directions (one per point); entries that are undefined are left free. When provided, takes precedence over startTangent/endTangent. */
|
|
6473
|
+
tangents?: [number, number, number][] | PipelineRef;
|
|
6474
|
+
};
|
|
6475
|
+
/** Creates a closed, achiral BSpline wire through the points whose shape is genuinely symmetric for symmetric inputs (square, triangle, ...) - mirror-symmetric, not merely rotationally symmetric - with no irregular start/end point. Use this when a plain interpolation looks skewed at the seam. */
|
|
6476
|
+
"occt.shapes.wire.interpolatePointsSymmetric": {
|
|
6477
|
+
/** Points through which the symmetric closed BSpline will be created (at least 3) */
|
|
6478
|
+
points: [number, number, number][] | PipelineRef;
|
|
6479
|
+
/** tolerance */
|
|
6480
|
+
tolerance?: number | PipelineRef;
|
|
5954
6481
|
};
|
|
5955
6482
|
/** Creates OpenCascade multiple interpolated wires */
|
|
5956
6483
|
"occt.shapes.wire.interpolateWires": {
|
|
@@ -5969,6 +6496,20 @@ export interface OperationParams {
|
|
|
5969
6496
|
/** Shape on which action should be performed */
|
|
5970
6497
|
shape: unknown | PipelineRef;
|
|
5971
6498
|
};
|
|
6499
|
+
/** Moves the seam (origin) of a periodic wire by an arc length from the current start. */
|
|
6500
|
+
"occt.shapes.wire.moveWireSeamByLength": {
|
|
6501
|
+
/** Periodic wire or edge whose seam is moved (non-periodic is returned unchanged). */
|
|
6502
|
+
shape: unknown | PipelineRef;
|
|
6503
|
+
/** Arc length, measured forward from the current start, at which to place the new seam. */
|
|
6504
|
+
length?: number | PipelineRef;
|
|
6505
|
+
};
|
|
6506
|
+
/** Moves the seam (origin) of a periodic wire to a parameter value. */
|
|
6507
|
+
"occt.shapes.wire.moveWireSeamByParameter": {
|
|
6508
|
+
/** Periodic wire or edge whose seam is moved (non-periodic is returned unchanged). */
|
|
6509
|
+
shape: unknown | PipelineRef;
|
|
6510
|
+
/** Parameter value at which to place the new seam (origin). */
|
|
6511
|
+
parameter?: number | PipelineRef;
|
|
6512
|
+
};
|
|
5972
6513
|
/** Places a wire on the face by mapping it's 2d coordinates to UV space. Wire must be positioned on the ground XZ plane for this to work. */
|
|
5973
6514
|
"occt.shapes.wire.placeWireOnFace": {
|
|
5974
6515
|
/** Wire to place on face */
|
|
@@ -6048,6 +6589,15 @@ export interface OperationParams {
|
|
|
6048
6589
|
/** Direction vector for projection */
|
|
6049
6590
|
direction?: [number, number, number] | PipelineRef;
|
|
6050
6591
|
};
|
|
6592
|
+
/** Rebuilds a wire's curves to relax (lower) or raise their polynomial degree. */
|
|
6593
|
+
"occt.shapes.wire.rebuildWireDegree": {
|
|
6594
|
+
/** Wire or edge whose curve degree is rebuilt. */
|
|
6595
|
+
shape: unknown | PipelineRef;
|
|
6596
|
+
/** Target maximum degree. Lowering relaxes the curve to a smoother, lower-order approximation (within tolerance); raising is exact. The practical lower bound is 3 (cubic). */
|
|
6597
|
+
degree?: number | PipelineRef;
|
|
6598
|
+
/** Tolerance used when relaxing (approximating) to a lower degree. */
|
|
6599
|
+
tolerance?: number | PipelineRef;
|
|
6600
|
+
};
|
|
6051
6601
|
/** Computes reversed wire from input wire */
|
|
6052
6602
|
"occt.shapes.wire.reversedWire": {
|
|
6053
6603
|
/** Shape on which action should be performed */
|
|
@@ -6149,6 +6699,14 @@ export interface OperationParams {
|
|
|
6149
6699
|
precision?: number | PipelineRef;
|
|
6150
6700
|
/** Adjust Y (up) coordinate system to Z (up) coordinate system */
|
|
6151
6701
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6702
|
+
/** 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. */
|
|
6703
|
+
computeMetadata?: boolean | PipelineRef;
|
|
6704
|
+
/** 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. */
|
|
6705
|
+
keepMeshData?: boolean | PipelineRef;
|
|
6706
|
+
/** Allow re-meshing to a lower resolution triangulation than one already cached on a shape (OCCT IMeshTools_Parameters.AllowQualityDecrease). */
|
|
6707
|
+
allowQualityDecrease?: boolean | PipelineRef;
|
|
6708
|
+
/** Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection). */
|
|
6709
|
+
forceFaceDeflection?: boolean | PipelineRef;
|
|
6152
6710
|
};
|
|
6153
6711
|
/** Creates mesh from the shape */
|
|
6154
6712
|
"occt.shapeToMesh": {
|
|
@@ -6158,6 +6716,64 @@ export interface OperationParams {
|
|
|
6158
6716
|
precision?: number | PipelineRef;
|
|
6159
6717
|
/** Adjust Y (up) coordinate system to Z (up) coordinate system */
|
|
6160
6718
|
adjustYtoZ?: boolean | PipelineRef;
|
|
6719
|
+
/** 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. */
|
|
6720
|
+
computeMetadata?: boolean | PipelineRef;
|
|
6721
|
+
/** 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. */
|
|
6722
|
+
keepMeshData?: boolean | PipelineRef;
|
|
6723
|
+
/** Allow re-meshing to a lower resolution triangulation than one already cached on the shape (OCCT IMeshTools_Parameters.AllowQualityDecrease). */
|
|
6724
|
+
allowQualityDecrease?: boolean | PipelineRef;
|
|
6725
|
+
/** Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection). */
|
|
6726
|
+
forceFaceDeflection?: boolean | PipelineRef;
|
|
6727
|
+
};
|
|
6728
|
+
/** Parses an SVG document and builds a single compound shape containing every drawable element, the whole drawing as one shape. */
|
|
6729
|
+
"occt.svg.loadSVG": {
|
|
6730
|
+
/** SVG document text. */
|
|
6731
|
+
svg?: string | PipelineRef;
|
|
6732
|
+
/** How closed, filled shapes become faces. `none` keeps only the outline wires; `auto` honors each element's SVG fill-rule; `nonzero`/`evenOdd` force a rule; `perSubpath` makes one face per closed subpath (no holes). Falls back to the wire when a face cannot be built. */
|
|
6733
|
+
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
6734
|
+
/** Build ribbon faces from stroked paths. Not supported yet; stroked paths are returned as wires. */
|
|
6735
|
+
makeRibbons?: boolean | PipelineRef;
|
|
6736
|
+
/** Include elements resolved as display:none / visibility:hidden. */
|
|
6737
|
+
includeInvisible?: boolean | PipelineRef;
|
|
6738
|
+
/** Join each subpath's segments into a single curve where possible. */
|
|
6739
|
+
joinSegments?: boolean | PipelineRef;
|
|
6740
|
+
/** Tolerance used when joining/sewing segments. */
|
|
6741
|
+
tolerance?: number | PipelineRef;
|
|
6742
|
+
/** Uniform scale applied to the SVG coordinates. */
|
|
6743
|
+
scale?: number | PipelineRef;
|
|
6744
|
+
/** Negate Y so the SVG appears upright (Y up) before placement. */
|
|
6745
|
+
flipY?: boolean | PipelineRef;
|
|
6746
|
+
/** How the drawing's bounding box aligns to `center` (e.g. midMid centers it on the origin). */
|
|
6747
|
+
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
6748
|
+
/** Plane normal the drawing is laid onto. The default [0, 1, 0] lays it flat on the ground. */
|
|
6749
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6750
|
+
/** Point the aligned drawing is placed at. */
|
|
6751
|
+
center?: [number, number, number] | PipelineRef;
|
|
6752
|
+
};
|
|
6753
|
+
/** Parses an SVG document and builds an OCCT shape per drawable element, each bundled with its resolved fill/stroke/stroke-width metadata, plus warnings and the SVG view box. Use this when you need per-element shapes and their colours/styles. Faces are optional and best-effort. */
|
|
6754
|
+
"occt.svg.loadSVGStructured": {
|
|
6755
|
+
/** SVG document text. */
|
|
6756
|
+
svg?: string | PipelineRef;
|
|
6757
|
+
/** How closed, filled shapes become faces. `none` keeps only the outline wires; `auto` honors each element's SVG fill-rule; `nonzero`/`evenOdd` force a rule; `perSubpath` makes one face per closed subpath (no holes). Falls back to the wire when a face cannot be built. */
|
|
6758
|
+
faceStrategy?: "none" | "auto" | "nonzero" | "evenOdd" | "perSubpath" | PipelineRef;
|
|
6759
|
+
/** Build ribbon faces from stroked paths. Not supported yet; stroked paths are returned as wires. */
|
|
6760
|
+
makeRibbons?: boolean | PipelineRef;
|
|
6761
|
+
/** Include elements resolved as display:none / visibility:hidden. */
|
|
6762
|
+
includeInvisible?: boolean | PipelineRef;
|
|
6763
|
+
/** Join each subpath's segments into a single curve where possible. */
|
|
6764
|
+
joinSegments?: boolean | PipelineRef;
|
|
6765
|
+
/** Tolerance used when joining/sewing segments. */
|
|
6766
|
+
tolerance?: number | PipelineRef;
|
|
6767
|
+
/** Uniform scale applied to the SVG coordinates. */
|
|
6768
|
+
scale?: number | PipelineRef;
|
|
6769
|
+
/** Negate Y so the SVG appears upright (Y up) before placement. */
|
|
6770
|
+
flipY?: boolean | PipelineRef;
|
|
6771
|
+
/** How the drawing's bounding box aligns to `center` (e.g. midMid centers it on the origin). */
|
|
6772
|
+
alignment?: "topLeft" | "topMid" | "topRight" | "midLeft" | "midMid" | "midRight" | "bottomLeft" | "bottomMid" | "bottomRight" | PipelineRef;
|
|
6773
|
+
/** Plane normal the drawing is laid onto. The default [0, 1, 0] lays it flat on the ground. */
|
|
6774
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6775
|
+
/** Point the aligned drawing is placed at. */
|
|
6776
|
+
center?: [number, number, number] | PipelineRef;
|
|
6161
6777
|
};
|
|
6162
6778
|
/** Align the shape */
|
|
6163
6779
|
"occt.transforms.align": {
|
|
@@ -6217,6 +6833,27 @@ export interface OperationParams {
|
|
|
6217
6833
|
/** To direction */
|
|
6218
6834
|
toDirections?: [number, number, number][] | PipelineRef;
|
|
6219
6835
|
};
|
|
6836
|
+
/** Composes a matrix from translation, Euler rotation (degrees) and uniform scale (matches the T R S placement used by assembly nodes) */
|
|
6837
|
+
"occt.transforms.composeTransform": {
|
|
6838
|
+
/** Translation as [x, y, z] */
|
|
6839
|
+
translation?: [number, number, number] | PipelineRef;
|
|
6840
|
+
/** Rotation as Euler angles [rx, ry, rz] in degrees (applied Rx Ry Rz) */
|
|
6841
|
+
rotation?: [number, number, number] | PipelineRef;
|
|
6842
|
+
/** Uniform scale factor */
|
|
6843
|
+
scale?: number | PipelineRef;
|
|
6844
|
+
};
|
|
6845
|
+
/** Reads a shape's current placement (location) transform as a decomposed transform */
|
|
6846
|
+
"occt.transforms.getShapeTransform": {
|
|
6847
|
+
/** Shape whose current placement (location) transform will be read */
|
|
6848
|
+
shape: unknown | PipelineRef;
|
|
6849
|
+
};
|
|
6850
|
+
/** Builds an identity transformation matrix */
|
|
6851
|
+
"occt.transforms.identityTransform": {};
|
|
6852
|
+
/** Inverts a transformation matrix */
|
|
6853
|
+
"occt.transforms.invertTransform": {
|
|
6854
|
+
/** Transformation matrix (column-major, 16 numbers) to invert */
|
|
6855
|
+
transformation: unknown | PipelineRef;
|
|
6856
|
+
};
|
|
6220
6857
|
/** Mirrors the shape */
|
|
6221
6858
|
"occt.transforms.mirror": {
|
|
6222
6859
|
/** Shape to mirror */
|
|
@@ -6226,6 +6863,13 @@ export interface OperationParams {
|
|
|
6226
6863
|
/** Axis direction vector */
|
|
6227
6864
|
direction?: [number, number, number] | PipelineRef;
|
|
6228
6865
|
};
|
|
6866
|
+
/** Mirrors (point-inverts) the shape about a point */
|
|
6867
|
+
"occt.transforms.mirrorAboutPoint": {
|
|
6868
|
+
/** Shape to mirror */
|
|
6869
|
+
shape: unknown | PipelineRef;
|
|
6870
|
+
/** Point to mirror (point-invert) about */
|
|
6871
|
+
point?: [number, number, number] | PipelineRef;
|
|
6872
|
+
};
|
|
6229
6873
|
/** Mirrors the shape along the normal and origin */
|
|
6230
6874
|
"occt.transforms.mirrorAlongNormal": {
|
|
6231
6875
|
/** Shape to mirror */
|
|
@@ -6244,6 +6888,25 @@ export interface OperationParams {
|
|
|
6244
6888
|
/** First normal axis direction vector */
|
|
6245
6889
|
normals?: [number, number, number][] | PipelineRef;
|
|
6246
6890
|
};
|
|
6891
|
+
/** Builds a mirror matrix about an axis */
|
|
6892
|
+
"occt.transforms.mirrorAxisToMatrix": {
|
|
6893
|
+
/** Axis origin */
|
|
6894
|
+
origin?: [number, number, number] | PipelineRef;
|
|
6895
|
+
/** Axis direction to mirror about */
|
|
6896
|
+
direction?: [number, number, number] | PipelineRef;
|
|
6897
|
+
};
|
|
6898
|
+
/** Builds a mirror matrix about a plane (origin + normal) */
|
|
6899
|
+
"occt.transforms.mirrorPlaneToMatrix": {
|
|
6900
|
+
/** Plane origin */
|
|
6901
|
+
origin?: [number, number, number] | PipelineRef;
|
|
6902
|
+
/** Plane normal to mirror about */
|
|
6903
|
+
normal?: [number, number, number] | PipelineRef;
|
|
6904
|
+
};
|
|
6905
|
+
/** Builds a mirror (point inversion) matrix about a point */
|
|
6906
|
+
"occt.transforms.mirrorPointToMatrix": {
|
|
6907
|
+
/** Point to mirror (point-invert) about */
|
|
6908
|
+
point?: [number, number, number] | PipelineRef;
|
|
6909
|
+
};
|
|
6247
6910
|
/** Mirrors the shapes with multiple mirrors */
|
|
6248
6911
|
"occt.transforms.mirrorShapes": {
|
|
6249
6912
|
/** Shape to mirror */
|
|
@@ -6253,6 +6916,16 @@ export interface OperationParams {
|
|
|
6253
6916
|
/** Axis direction vector */
|
|
6254
6917
|
directions?: [number, number, number][] | PipelineRef;
|
|
6255
6918
|
};
|
|
6919
|
+
/** Folds a matrix or an ordered list of matrices (applied first-to-last) into one matrix */
|
|
6920
|
+
"occt.transforms.multiplyTransforms": {
|
|
6921
|
+
/** Ordered list of matrices (applied first-to-last) folded into a single matrix */
|
|
6922
|
+
transformation: unknown | PipelineRef;
|
|
6923
|
+
};
|
|
6924
|
+
/** Builds a rotation matrix from a quaternion [x, y, z, w] */
|
|
6925
|
+
"occt.transforms.quaternionToMatrix": {
|
|
6926
|
+
/** Rotation quaternion [x, y, z, w] */
|
|
6927
|
+
quaternion?: unknown | PipelineRef;
|
|
6928
|
+
};
|
|
6256
6929
|
/** Rotate the shape */
|
|
6257
6930
|
"occt.transforms.rotate": {
|
|
6258
6931
|
/** Shape to rotate */
|
|
@@ -6284,6 +6957,13 @@ export interface OperationParams {
|
|
|
6284
6957
|
/** Axes around which to rotate */
|
|
6285
6958
|
axes?: [number, number, number][] | PipelineRef;
|
|
6286
6959
|
};
|
|
6960
|
+
/** Rotates the shape by a quaternion [x, y, z, w] */
|
|
6961
|
+
"occt.transforms.rotateByQuaternion": {
|
|
6962
|
+
/** Shape to rotate */
|
|
6963
|
+
shape: unknown | PipelineRef;
|
|
6964
|
+
/** Rotation quaternion [x, y, z, w] */
|
|
6965
|
+
quaternion?: unknown | PipelineRef;
|
|
6966
|
+
};
|
|
6287
6967
|
/** Rotate the shapes with rotations */
|
|
6288
6968
|
"occt.transforms.rotateShapes": {
|
|
6289
6969
|
/** Shape to rotate */
|
|
@@ -6293,6 +6973,15 @@ export interface OperationParams {
|
|
|
6293
6973
|
/** Rotation degrees */
|
|
6294
6974
|
angles?: number[] | PipelineRef;
|
|
6295
6975
|
};
|
|
6976
|
+
/** Builds a rotation matrix from an axis (through an optional center) and angle in degrees */
|
|
6977
|
+
"occt.transforms.rotationAxisAngleToMatrix": {
|
|
6978
|
+
/** Rotation axis direction */
|
|
6979
|
+
axis?: [number, number, number] | PipelineRef;
|
|
6980
|
+
/** Rotation angle in degrees */
|
|
6981
|
+
angle?: number | PipelineRef;
|
|
6982
|
+
/** Point the axis passes through */
|
|
6983
|
+
center?: [number, number, number] | PipelineRef;
|
|
6984
|
+
};
|
|
6296
6985
|
/** Scales the shape */
|
|
6297
6986
|
"occt.transforms.scale": {
|
|
6298
6987
|
/** Shape to scale */
|
|
@@ -6318,6 +7007,15 @@ export interface OperationParams {
|
|
|
6318
7007
|
/** Scale from the center */
|
|
6319
7008
|
centers?: [number, number, number][] | PipelineRef;
|
|
6320
7009
|
};
|
|
7010
|
+
/** Scales the shape uniformly about an arbitrary center point */
|
|
7011
|
+
"occt.transforms.scaleFromCenter": {
|
|
7012
|
+
/** Shape to scale */
|
|
7013
|
+
shape: unknown | PipelineRef;
|
|
7014
|
+
/** Uniform scale factor */
|
|
7015
|
+
factor?: number | PipelineRef;
|
|
7016
|
+
/** Center point to scale about */
|
|
7017
|
+
center?: [number, number, number] | PipelineRef;
|
|
7018
|
+
};
|
|
6321
7019
|
/** Scales the shapes with scale factors */
|
|
6322
7020
|
"occt.transforms.scaleShapes": {
|
|
6323
7021
|
/** Shape to scale */
|
|
@@ -6325,6 +7023,13 @@ export interface OperationParams {
|
|
|
6325
7023
|
/** Scale factor to apply */
|
|
6326
7024
|
factors?: number[] | PipelineRef;
|
|
6327
7025
|
};
|
|
7026
|
+
/** Builds a uniform-scale matrix about an optional center point */
|
|
7027
|
+
"occt.transforms.scaleUniformToMatrix": {
|
|
7028
|
+
/** Uniform scale factor */
|
|
7029
|
+
factor?: number | PipelineRef;
|
|
7030
|
+
/** Center point to scale about */
|
|
7031
|
+
center?: [number, number, number] | PipelineRef;
|
|
7032
|
+
};
|
|
6328
7033
|
/** Transforms the shape */
|
|
6329
7034
|
"occt.transforms.transform": {
|
|
6330
7035
|
/** Shape to transform */
|
|
@@ -6338,6 +7043,13 @@ export interface OperationParams {
|
|
|
6338
7043
|
/** Scale factor to apply */
|
|
6339
7044
|
scaleFactor?: number | PipelineRef;
|
|
6340
7045
|
};
|
|
7046
|
+
/** Applies an arbitrary 4x4 matrix (column-major) - or an ordered list of matrices applied first-to-last - to a shape */
|
|
7047
|
+
"occt.transforms.transformByMatrix": {
|
|
7048
|
+
/** Shape to transform */
|
|
7049
|
+
shape: unknown | PipelineRef;
|
|
7050
|
+
/** Transformation matrix (column-major, 16 numbers) or an ordered list of matrices applied first-to-last */
|
|
7051
|
+
transformation: unknown | PipelineRef;
|
|
7052
|
+
};
|
|
6341
7053
|
/** Transforms the array of shapes with transformations */
|
|
6342
7054
|
"occt.transforms.transformShapes": {
|
|
6343
7055
|
/** Shape to transform */
|
|
@@ -6351,6 +7063,13 @@ export interface OperationParams {
|
|
|
6351
7063
|
/** Scale factor to apply */
|
|
6352
7064
|
scaleFactors?: number[] | PipelineRef;
|
|
6353
7065
|
};
|
|
7066
|
+
/** Applies the same matrix (or ordered list) to multiple shapes */
|
|
7067
|
+
"occt.transforms.transformShapesByMatrix": {
|
|
7068
|
+
/** Shapes to transform (the same transformation is applied to each) */
|
|
7069
|
+
shapes: unknown[] | PipelineRef;
|
|
7070
|
+
/** Transformation matrix (column-major) or an ordered list of matrices applied first-to-last */
|
|
7071
|
+
transformation: unknown | PipelineRef;
|
|
7072
|
+
};
|
|
6354
7073
|
/** Translates the shape */
|
|
6355
7074
|
"occt.transforms.translate": {
|
|
6356
7075
|
/** Shape for translation */
|
|
@@ -6365,6 +7084,43 @@ export interface OperationParams {
|
|
|
6365
7084
|
/** Translation vector */
|
|
6366
7085
|
translations?: [number, number, number][] | PipelineRef;
|
|
6367
7086
|
};
|
|
7087
|
+
/** Builds a translation matrix */
|
|
7088
|
+
"occt.transforms.translationToMatrix": {
|
|
7089
|
+
/** Translation as [x, y, z] */
|
|
7090
|
+
translation?: [number, number, number] | PipelineRef;
|
|
7091
|
+
};
|
|
7092
|
+
/** Sheet-metal unfold metrics report for a single face */
|
|
7093
|
+
"occtPro.sheetMetal.unfoldFaceReport": {
|
|
7094
|
+
/** Shape that contains the face to unfold */
|
|
7095
|
+
shape: unknown | PipelineRef;
|
|
7096
|
+
/** 0-based index of the developable face to unfold */
|
|
7097
|
+
faceIndex?: number | PipelineRef;
|
|
7098
|
+
};
|
|
7099
|
+
/** Unfold a single developable face to a flat face */
|
|
7100
|
+
"occtPro.sheetMetal.unfoldFaceToFlat": {
|
|
7101
|
+
/** Shape that contains the face to unfold */
|
|
7102
|
+
shape: unknown | PipelineRef;
|
|
7103
|
+
/** 0-based index of the developable face to unfold */
|
|
7104
|
+
faceIndex?: number | PipelineRef;
|
|
7105
|
+
};
|
|
7106
|
+
/** Sheet-metal unfold metrics report for a solid */
|
|
7107
|
+
"occtPro.sheetMetal.unfoldSolidReport": {
|
|
7108
|
+
/** Constant-thickness sheet-metal solid to flatten */
|
|
7109
|
+
shape: unknown | PipelineRef;
|
|
7110
|
+
/** Neutral-axis K-factor (~0.5) */
|
|
7111
|
+
kFactor?: number | PipelineRef;
|
|
7112
|
+
/** Sheet thickness; 0 auto-detects from face pairs */
|
|
7113
|
+
thicknessOverride?: number | PipelineRef;
|
|
7114
|
+
};
|
|
7115
|
+
/** Flatten a constant-thickness sheet-metal solid */
|
|
7116
|
+
"occtPro.sheetMetal.unfoldSolidToFlat": {
|
|
7117
|
+
/** Constant-thickness sheet-metal solid to flatten */
|
|
7118
|
+
shape: unknown | PipelineRef;
|
|
7119
|
+
/** Neutral-axis K-factor (~0.5) */
|
|
7120
|
+
kFactor?: number | PipelineRef;
|
|
7121
|
+
/** Sheet thickness; 0 auto-detects from face pairs */
|
|
7122
|
+
thicknessOverride?: number | PipelineRef;
|
|
7123
|
+
};
|
|
6368
7124
|
/** Calculates centroid (average position) of multiple points. Example: points=[[0,0,0], [10,0,0], [10,10,0]] → [6.67,3.33,0] */
|
|
6369
7125
|
"point.averagePoint": {
|
|
6370
7126
|
/** Points */
|