Variable Radius Fillet Rete Example

Variable Radius Fillet Rete Example script details
Type
Rete logo image
rete
App Version
0.15.2
Visibility
public
Date Created
Mar 12, 2024, 9:43:26 AM
Last Edit Date
Mar 13, 2024, 10:01:50 AM

Script Details

The Code
{ "id": "rete-v2-json", "nodes": { "df24aeefc2ccb9dd": { "id": "df24aeefc2ccb9dd", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 10 }, "inputs": {}, "position": [ -764.3031005859375, 660.5866394042969 ] }, "7739c65514ba4ccc": { "id": "7739c65514ba4ccc", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 1 }, "nrOfDivisions": 10, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "df24aeefc2ccb9dd", "output": "result", "data": {} } ] } }, "position": [ -389.4554443359375, 733.8053894042969 ] }, "f40bfecc4d08d8b5": { "id": "f40bfecc4d08d8b5", "name": "bitbybit.occt.shapes.face.createCircleFace", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 2 }, "inputs": { "center": { "connections": [ { "node": "fc0bd94f551e1c9e", "output": "item", "data": {} } ] } }, "position": [ 363.7672119140625, 785.9421081542969 ] }, "fc0bd94f551e1c9e": { "id": "fc0bd94f551e1c9e", "name": "bitbybit.lists.passThrough", "data": {}, "inputs": { "item": { "connections": [ { "node": "7739c65514ba4ccc", "output": "result", "data": {} } ] } }, "position": [ 18.7086181640625, 826.6999206542969 ] }, "b5c548b9d657287b": { "id": "b5c548b9d657287b", "name": "bitbybit.occt.shapes.face.createFaceFromWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "planar": true }, "inputs": { "shape": { "connections": [ { "node": "df24aeefc2ccb9dd", "output": "result", "data": {} } ] } }, "position": [ 4.883463690510212, 350.2128902249829 ] }, "117c9d8827aaa9f7": { "id": "117c9d8827aaa9f7", "name": "bitbybit.occt.booleans.difference", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "keepEdges": false }, "inputs": { "shape": { "connections": [ { "node": "b5c548b9d657287b", "output": "result", "data": {} } ] }, "shapes": { "connections": [ { "node": "1f9822f600e1763d", "output": "list", "data": {} } ] } }, "position": [ 1097.7550232363185, 621.8977542754228 ] }, "1f9822f600e1763d": { "id": "1f9822f600e1763d", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "f40bfecc4d08d8b5", "output": "result", "data": {} } ] } }, "position": [ 748.5891678514611, 791.7900126148625 ] }, "b2d8d36d2cc70894": { "id": "b2d8d36d2cc70894", "name": "bitbybit.occt.shapes.wire.getWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "index": 0 }, "inputs": { "shape": { "connections": [ { "node": "117c9d8827aaa9f7", "output": "result", "data": {} } ] } }, "position": [ 1507.6736686953334, 688.2137000306097 ] }, "456d271a58f77579": { "id": "456d271a58f77579", "name": "bitbybit.occt.fillets.fillet2d", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 0.4 }, "inputs": { "shape": { "connections": [ { "node": "b2d8d36d2cc70894", "output": "result", "data": {} } ] } }, "position": [ 1853.1371147286059, 651.4601111741238 ] }, "786bce7638a5a3a9": { "id": "786bce7638a5a3a9", "name": "bitbybit.occt.operations.extrude", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "direction": { "connections": [ { "node": "f2954a3871f1e9cc", "output": "result", "data": {} } ] }, "shape": { "connections": [ { "node": "1185c9229b734e0e", "output": "result", "data": {} } ] } }, "position": [ 3172.048865525746, 268.7206450984949 ] }, "9bfd148c685a37d3": { "id": "9bfd148c685a37d3", "name": "bitbybit.occt.shapes.face.createFaceFromWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "planar": true }, "inputs": { "shape": { "connections": [ { "node": "456d271a58f77579", "output": "result", "data": {} } ] } }, "position": [ 2313.0057038879536, 693.9496941980877 ] }, "07cb3ea4a0adbe51": { "id": "07cb3ea4a0adbe51", "name": "bitbybit.lists.getByPattern", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "list": { "connections": [ { "node": "bceacb06ae62da49", "output": "result", "data": {} } ] }, "pattern": { "connections": [ { "node": "2dd5fd7b5b67e875", "output": "result", "data": {} } ] } }, "position": [ 6017.673890121047, 631.149823051028 ] }, "bceacb06ae62da49": { "id": "bceacb06ae62da49", "name": "bitbybit.occt.shapes.edge.getEdgesAlongWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "3069d871af053b7d", "output": "result", "data": {} } ] } }, "position": [ 5551.098432203211, 706.9443492880005 ] }, "3069d871af053b7d": { "id": "3069d871af053b7d", "name": "bitbybit.occt.shapes.wire.getWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "index": 0 }, "inputs": { "shape": { "connections": [ { "node": "9bfd148c685a37d3", "output": "result", "data": {} } ] } }, "position": [ 5057.551553238045, 949.3032828589517 ] }, "2dd5fd7b5b67e875": { "id": "2dd5fd7b5b67e875", "name": "bitbybit.json.parse", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "text": "[true, false, false, false]" }, "inputs": {}, "position": [ 5671.858139708035, 486.4648312453794 ] }, "1296985593f0866f": { "id": "1296985593f0866f", "name": "bitbybit.occt.fillets.filletEdgesSameVariableRadius", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "786bce7638a5a3a9", "output": "result", "data": {} } ] }, "paramsU": { "connections": [ { "node": "4e456468d19e420b", "output": "result", "data": {} } ] }, "radiusList": { "connections": [ { "node": "e480fbb722111da6", "output": "result", "data": {} } ] }, "edges": { "connections": [ { "node": "1189d638e9e27e76", "output": "list", "data": {} } ] } }, "position": [ 8253.470667444739, 1337.892118765149 ] }, "e480fbb722111da6": { "id": "e480fbb722111da6", "name": "bitbybit.json.parse", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "text": "[0.1,1.3,1.2,1.3,0.1]" }, "inputs": {}, "position": [ 7749.132892262525, 1507.2299706466856 ] }, "4e456468d19e420b": { "id": "4e456468d19e420b", "name": "bitbybit.json.parse", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "text": "[0.1, 0.3,0.5,0.7, 0.9]" }, "inputs": {}, "position": [ 7720.841472575566, 1733.107187252156 ] }, "39b43156a34464cd": { "id": "39b43156a34464cd", "name": "bitbybit.babylon.scene.enableSkybox", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "skybox": "city", "size": 1000, "blur": 0.5, "environmentIntensity": 0.7 }, "inputs": {}, "position": [ -791.9948909865094, 1613.605029621447 ] }, "ca62f89e798e242d": { "id": "ca62f89e798e242d", "name": "bitbybit.babylon.material.pbrMetallicRoughness.create", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "name": "Custom Material", "baseColor": "#393947", "metallic": 0.9, "roughness": 0.1, "alpha": 1, "backFaceCulling": false, "zOffset": 2 }, "inputs": {}, "position": [ 9945.23262160967, 1147.239630647563 ] }, "b256aba8a90b8ed3": { "id": "b256aba8a90b8ed3", "name": "bitbybit.draw.optionsOcctShapeMaterial", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "precision": 0.003, "drawEdges": true, "edgeColour": "#ffffff", "edgeWidth": 2 }, "inputs": { "faceMaterial": { "connections": [ { "node": "ca62f89e798e242d", "output": "result", "data": {} } ] } }, "position": [ 10343.506399115948, 1074.0170752773429 ] }, "f2954a3871f1e9cc": { "id": "f2954a3871f1e9cc", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 4, "z": 0 }, "inputs": {}, "position": [ 2784.7038459372584, 205.04999044806965 ] }, "4c091bbd0143ae5b": { "id": "4c091bbd0143ae5b", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "07cb3ea4a0adbe51", "output": "result", "data": {} }, { "node": "73468e3ceef0776a", "output": "result", "data": {} } ] } }, "position": [ 6416.792046510773, 587.2993135145988 ] }, "f3ad5d3d5305c0ac": { "id": "f3ad5d3d5305c0ac", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 2 }, "inputs": { "list": { "connections": [ { "node": "4c091bbd0143ae5b", "output": "list", "data": {} } ] } }, "position": [ 6748.4219291528725, 652.3610337123984 ] }, "1189d638e9e27e76": { "id": "1189d638e9e27e76", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "f3ad5d3d5305c0ac", "output": "result", "data": {} } ] } }, "position": [ 7086.5083918232995, 671.569220593341 ] }, "1783cbe3cd3c7cec": { "id": "1783cbe3cd3c7cec", "name": "bitbybit.occt.shapes.edge.getEdgesAlongWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "8b343d219ba935f2", "output": "result", "data": {} } ] } }, "position": [ 5477.559223829409, 42.85275540212122 ] }, "73468e3ceef0776a": { "id": "73468e3ceef0776a", "name": "bitbybit.lists.getByPattern", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "pattern": { "connections": [ { "node": "2dd5fd7b5b67e875", "output": "result", "data": {} } ] }, "list": { "connections": [ { "node": "1783cbe3cd3c7cec", "output": "result", "data": {} } ] } }, "position": [ 6002.417154461244, 262.7614827772473 ] }, "5638d6c02373ae60": { "id": "5638d6c02373ae60", "name": "bitbybit.occt.shapes.face.getFaces", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "786bce7638a5a3a9", "output": "result", "data": {} } ] } }, "position": [ 3530.2378298299764, 114.12596772622209 ] }, "5fa8a2342e42e7fd": { "id": "5fa8a2342e42e7fd", "name": "bitbybit.lists.listLength", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "clone": false }, "inputs": { "list": { "connections": [ { "node": "5638d6c02373ae60", "output": "result", "data": {} } ] } }, "position": [ 3926.551495962836, 143.06551919087937 ] }, "c9a24fb333878512": { "id": "c9a24fb333878512", "name": "bitbybit.math.twoNrOperation", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "first": 1, "second": 1, "operation": "subtract" }, "inputs": { "first": { "connections": [ { "node": "5fa8a2342e42e7fd", "output": "result", "data": {} } ] } }, "position": [ 4353.030521126785, 110.08874324421515 ] }, "82cf0688e17c52a2": { "id": "82cf0688e17c52a2", "name": "bitbybit.lists.getItem", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "index": 0, "clone": true }, "inputs": { "list": { "connections": [ { "node": "5638d6c02373ae60", "output": "result", "data": {} } ] }, "index": { "connections": [ { "node": "c9a24fb333878512", "output": "result", "data": {} } ] } }, "position": [ 4767.933049362163, 39.94147142849002 ] }, "8b343d219ba935f2": { "id": "8b343d219ba935f2", "name": "bitbybit.occt.shapes.wire.getWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "index": 0 }, "inputs": { "shape": { "connections": [ { "node": "82cf0688e17c52a2", "output": "result", "data": {} } ] } }, "position": [ 5159.822692277663, 43.39615389540526 ] }, "69df75ab416908d2": { "id": "69df75ab416908d2", "name": "bitbybit.draw.drawAnyAsync", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "options": { "connections": [ { "node": "b256aba8a90b8ed3", "output": "result", "data": {} } ] }, "entity": { "connections": [ { "node": "f34de5b79827a532", "output": "result", "data": {} } ] } }, "position": [ 10912.870563450537, 792.0041020981217 ] }, "f7d469642504a45c": { "id": "f7d469642504a45c", "name": "bitbybit.draw.drawGridMesh", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "width": 400, "height": 400, "subdivisions": 10, "majorUnitFrequency": 10, "minorUnitVisibility": 0.45, "gridRatio": 0.5, "opacity": 0.5, "backFaceCulling": false, "mainColor": "#ffffff", "secondaryColor": "#ffffff" }, "inputs": {}, "position": [ -414.59904044352606, 1600.6752720224 ] }, "ab7e6667add4343e": { "id": "ab7e6667add4343e", "name": "bitbybit.babylon.scene.drawDirectionalLight", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "intensity": 3, "diffuse": "#ffffff", "specular": "#ffffff", "shadowGeneratorMapSize": 1024, "enableShadows": true, "shadowDarkness": 0 }, "inputs": {}, "position": [ -5.543787940057385, 1736.7054090372303 ] }, "488b42eab3a864e5": { "id": "488b42eab3a864e5", "name": "bitbybit.advanced.text3d.create", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "text": "bitbybit.dev", "fontType": "Roboto", "fontVariant": "Bold", "fontSize": 1.8, "height": 0.2, "rotation": 0, "originAlignment": "centerMiddle" }, "inputs": { "origin": { "connections": [ { "node": "e2742a9a180593e1", "output": "result", "data": {} } ] } }, "position": [ 8375.678792323308, 40.74465036670003 ] }, "e2742a9a180593e1": { "id": "e2742a9a180593e1", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 4, "z": -4 }, "inputs": {}, "position": [ 7918.238818362392, 233.12029333128072 ] }, "09d2a8c36f4db2cc": { "id": "09d2a8c36f4db2cc", "name": "bitbybit.advanced.text3d.getCompoundShape", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "model": { "connections": [ { "node": "488b42eab3a864e5", "output": "result", "data": {} } ] } }, "position": [ 9086.454162603068, 533.3703593785017 ] }, "1efdb55516f8965e": { "id": "1efdb55516f8965e", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 4, "z": 4 }, "inputs": {}, "position": [ 7943.0808703133025, 766.6920306218535 ] }, "6349f998737902a9": { "id": "6349f998737902a9", "name": "bitbybit.advanced.text3d.create", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "text": "WEB CAD", "fontType": "Roboto", "fontVariant": "Bold", "fontSize": 2, "height": 0.2, "rotation": 0, "originAlignment": "centerMiddle" }, "inputs": { "origin": { "connections": [ { "node": "1efdb55516f8965e", "output": "result", "data": {} } ] } }, "position": [ 8386.979439615623, 569.4334045431249 ] }, "1185c9229b734e0e": { "id": "1185c9229b734e0e", "name": "bitbybit.occt.booleans.difference", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "keepEdges": false }, "inputs": { "shapes": { "connections": [ { "node": "26327da76bc2f134", "output": "list", "data": {} } ] }, "shape": { "connections": [ { "node": "9bfd148c685a37d3", "output": "result", "data": {} } ] } }, "position": [ 2772.463589644358, 881.655847535417 ] }, "5389c078b30ae40e": { "id": "5389c078b30ae40e", "name": "bitbybit.occt.shapes.face.createCircleFace", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 1.2 }, "inputs": { "center": { "connections": [ { "node": "e2187cce9d0c7b23", "output": "item", "data": {} } ] } }, "position": [ 1587.109012412342, 1314.457095616584 ] }, "eff900485eb8c09b": { "id": "eff900485eb8c09b", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 1.2 }, "inputs": {}, "position": [ 371.9642036626137, 1286.4562074934286 ] }, "653a9022b4e6b933": { "id": "653a9022b4e6b933", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 1 }, "nrOfDivisions": 5, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "eff900485eb8c09b", "output": "result", "data": {} } ] } }, "position": [ 773.8227280396106, 1339.5308525069888 ] }, "e2187cce9d0c7b23": { "id": "e2187cce9d0c7b23", "name": "bitbybit.lists.passThrough", "data": {}, "inputs": { "item": { "connections": [ { "node": "653a9022b4e6b933", "output": "result", "data": {} } ] } }, "position": [ 1230.567014092418, 1390.2671229653456 ] }, "26327da76bc2f134": { "id": "26327da76bc2f134", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "5389c078b30ae40e", "output": "result", "data": {} } ] } }, "position": [ 1982.596671069358, 1325.2165445363762 ] }, "d69287d0e950c290": { "id": "d69287d0e950c290", "name": "bitbybit.occt.fillets.chamferEdges", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "distance": 0.3 }, "inputs": { "shape": { "connections": [ { "node": "1296985593f0866f", "output": "result", "data": {} } ] } }, "position": [ 9085.261330919646, 1354.824822781705 ] }, "f34de5b79827a532": { "id": "f34de5b79827a532", "name": "bitbybit.occt.shapes.compound.makeCompound", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shapes": { "connections": [ { "node": "d66063660db9f08e", "output": "list", "data": {} } ] } }, "position": [ 10034.070045929137, 656.2669483169293 ] }, "d66063660db9f08e": { "id": "d66063660db9f08e", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "09d2a8c36f4db2cc", "output": "result", "data": {} }, { "node": "ef303dc8b247cb53", "output": "result", "data": {} }, { "node": "d69287d0e950c290", "output": "result", "data": {} } ] } }, "position": [ 9709.77203163195, 696.5788602663482 ] }, "ef303dc8b247cb53": { "id": "ef303dc8b247cb53", "name": "bitbybit.advanced.text3d.getCompoundShape", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "model": { "connections": [ { "node": "6349f998737902a9", "output": "result", "data": {} } ] } }, "position": [ 9090.070904294022, 784.0961658626884 ] } } }