Variable Radius Fillet Rete Example

Variable Radius Fillet Rete Example script details
Type
Rete logo image
rete
App Version
0.15.15
Visibility
public
Date Created
Mar 12, 2024, 9:43:26 AM
Last Edit Date
Aug 6, 2024, 5:28:17 PM

Script Details

The Code
{ "id": "rete-v2-json", "nodes": { "17d8f0b56e29ede2": { "id": "17d8f0b56e29ede2", "name": "bitbybit.occt.shapes.wire.createCircleWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 10, "center": [ 0, 0, 0 ], "direction": [ 0, 1, 0 ] }, "inputs": {}, "position": [ -764.3031005859375, 660.5866394042969 ] }, "1ab0ae8504be40c0": { "id": "1ab0ae8504be40c0", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 1 }, "nrOfDivisions": 10, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "17d8f0b56e29ede2", "output": "result", "data": {} } ] } }, "position": [ -389.4554443359375, 733.8053894042969 ] }, "b31f503965cd5a19": { "id": "b31f503965cd5a19", "name": "bitbybit.occt.shapes.face.createCircleFace", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 2, "center": [ 0, 0, 0 ], "direction": [ 0, 1, 0 ] }, "inputs": { "center": { "connections": [ { "node": "7986daf0c8ecff41", "output": "item", "data": {} } ] } }, "position": [ 363.7672119140625, 785.9421081542969 ] }, "7986daf0c8ecff41": { "id": "7986daf0c8ecff41", "name": "bitbybit.lists.passThrough", "data": {}, "inputs": { "item": { "connections": [ { "node": "1ab0ae8504be40c0", "output": "result", "data": {} } ] } }, "position": [ 18.7086181640625, 826.6999206542969 ] }, "6660023f97e4dd4e": { "id": "6660023f97e4dd4e", "name": "bitbybit.occt.shapes.face.createFaceFromWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "planar": true }, "inputs": { "shape": { "connections": [ { "node": "17d8f0b56e29ede2", "output": "result", "data": {} } ] } }, "position": [ 4.883463690510212, 350.2128902249829 ] }, "496df64aa1391ae0": { "id": "496df64aa1391ae0", "name": "bitbybit.occt.booleans.difference", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "keepEdges": false }, "inputs": { "shape": { "connections": [ { "node": "6660023f97e4dd4e", "output": "result", "data": {} } ] }, "shapes": { "connections": [ { "node": "8d36b40a8235689c", "output": "list", "data": {} } ] } }, "position": [ 1097.7550232363185, 621.8977542754228 ] }, "8d36b40a8235689c": { "id": "8d36b40a8235689c", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "b31f503965cd5a19", "output": "result", "data": {} } ] } }, "position": [ 748.5891678514611, 791.7900126148625 ] }, "ad88dec11f21a092": { "id": "ad88dec11f21a092", "name": "bitbybit.occt.shapes.wire.getWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "index": 0 }, "inputs": { "shape": { "connections": [ { "node": "496df64aa1391ae0", "output": "result", "data": {} } ] } }, "position": [ 1507.6736686953334, 688.2137000306097 ] }, "6233aed8fc838fef": { "id": "6233aed8fc838fef", "name": "bitbybit.occt.fillets.fillet2d", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 0.4 }, "inputs": { "shape": { "connections": [ { "node": "ad88dec11f21a092", "output": "result", "data": {} } ] } }, "position": [ 1853.1371147286059, 651.4601111741238 ] }, "092cbed3770a5454": { "id": "092cbed3770a5454", "name": "bitbybit.occt.operations.extrude", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "direction": [ 0, 1, 0 ] }, "inputs": { "direction": { "connections": [ { "node": "161b57fd309e7c3b", "output": "result", "data": {} } ] }, "shape": { "connections": [ { "node": "5244a84ce9712e4c", "output": "result", "data": {} } ] } }, "position": [ 3172.048865525746, 268.7206450984949 ] }, "030588abaeb3fd31": { "id": "030588abaeb3fd31", "name": "bitbybit.occt.shapes.face.createFaceFromWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "planar": true }, "inputs": { "shape": { "connections": [ { "node": "6233aed8fc838fef", "output": "result", "data": {} } ] } }, "position": [ 2313.0057038879536, 693.9496941980877 ] }, "57303db5df03474c": { "id": "57303db5df03474c", "name": "bitbybit.lists.getByPattern", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "pattern": [ true, true, false ] }, "inputs": { "list": { "connections": [ { "node": "a5546a35d2addfae", "output": "result", "data": {} } ] }, "pattern": { "connections": [ { "node": "8703cb1a8107720f", "output": "result", "data": {} } ] } }, "position": [ 6017.673890121047, 631.149823051028 ] }, "a5546a35d2addfae": { "id": "a5546a35d2addfae", "name": "bitbybit.occt.shapes.edge.getEdgesAlongWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "68a3542cdbabb83c", "output": "result", "data": {} } ] } }, "position": [ 5551.098432203211, 706.9443492880005 ] }, "68a3542cdbabb83c": { "id": "68a3542cdbabb83c", "name": "bitbybit.occt.shapes.wire.getWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "index": 0 }, "inputs": { "shape": { "connections": [ { "node": "030588abaeb3fd31", "output": "result", "data": {} } ] } }, "position": [ 5057.551553238045, 949.3032828589517 ] }, "8703cb1a8107720f": { "id": "8703cb1a8107720f", "name": "bitbybit.json.parse", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "text": "[true, false, false, false]" }, "inputs": {}, "position": [ 5671.858139708035, 486.4648312453794 ] }, "5626d379c2fe621c": { "id": "5626d379c2fe621c", "name": "bitbybit.occt.fillets.filletEdgesSameVariableRadius", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "092cbed3770a5454", "output": "result", "data": {} } ] }, "paramsU": { "connections": [ { "node": "b64b7713c8557f50", "output": "result", "data": {} } ] }, "radiusList": { "connections": [ { "node": "f1145ac97d7c3477", "output": "result", "data": {} } ] }, "edges": { "connections": [ { "node": "7adddab7f62d817c", "output": "list", "data": {} } ] } }, "position": [ 8253.470667444739, 1337.892118765149 ] }, "f1145ac97d7c3477": { "id": "f1145ac97d7c3477", "name": "bitbybit.json.parse", "async": false, "drawable": false, "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 ] }, "b64b7713c8557f50": { "id": "b64b7713c8557f50", "name": "bitbybit.json.parse", "async": false, "drawable": false, "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 ] }, "e0746e72637215d3": { "id": "e0746e72637215d3", "name": "bitbybit.babylon.scene.enableSkybox", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "skybox": "city", "size": 1000, "blur": 0.5, "environmentIntensity": 0.7 }, "inputs": {}, "position": [ -791.9948909865094, 1613.605029621447 ] }, "e1943ae900342c28": { "id": "e1943ae900342c28", "name": "bitbybit.babylon.material.pbrMetallicRoughness.create", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "name": "Custom Material", "baseColor": "#393947", "emissiveColor": "#000000", "metallic": 0.9, "roughness": 0.1, "alpha": 1, "backFaceCulling": false, "zOffset": 2 }, "inputs": {}, "position": [ 9945.23262160967, 1147.239630647563 ] }, "7026a28a07a9f886": { "id": "7026a28a07a9f886", "name": "bitbybit.draw.optionsOcctShapeMaterial", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "precision": 0.003, "drawEdges": true, "edgeColour": "#ffffff", "edgeWidth": 2 }, "inputs": { "faceMaterial": { "connections": [ { "node": "e1943ae900342c28", "output": "result", "data": {} } ] } }, "position": [ 10343.506399115948, 1074.0170752773429 ] }, "161b57fd309e7c3b": { "id": "161b57fd309e7c3b", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 4, "z": 0 }, "inputs": {}, "position": [ 2784.7038459372584, 205.04999044806965 ] }, "820a8a1937d4678d": { "id": "820a8a1937d4678d", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "57303db5df03474c", "output": "result", "data": {} }, { "node": "80f00f4062a6fa27", "output": "result", "data": {} } ] } }, "position": [ 6416.792046510773, 587.2993135145988 ] }, "20f5814ef70f1953": { "id": "20f5814ef70f1953", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 2 }, "inputs": { "list": { "connections": [ { "node": "820a8a1937d4678d", "output": "list", "data": {} } ] } }, "position": [ 6748.4219291528725, 652.3610337123984 ] }, "7adddab7f62d817c": { "id": "7adddab7f62d817c", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "20f5814ef70f1953", "output": "result", "data": {} } ] } }, "position": [ 7086.5083918232995, 671.569220593341 ] }, "ee9c5cd58e50eb47": { "id": "ee9c5cd58e50eb47", "name": "bitbybit.occt.shapes.edge.getEdgesAlongWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "cf1301a7fd0f9c6c", "output": "result", "data": {} } ] } }, "position": [ 5477.559223829409, 42.85275540212122 ] }, "80f00f4062a6fa27": { "id": "80f00f4062a6fa27", "name": "bitbybit.lists.getByPattern", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "pattern": [ true, true, false ] }, "inputs": { "pattern": { "connections": [ { "node": "8703cb1a8107720f", "output": "result", "data": {} } ] }, "list": { "connections": [ { "node": "ee9c5cd58e50eb47", "output": "result", "data": {} } ] } }, "position": [ 6002.417154461244, 262.7614827772473 ] }, "803b4f6c76e02220": { "id": "803b4f6c76e02220", "name": "bitbybit.occt.shapes.face.getFaces", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "092cbed3770a5454", "output": "result", "data": {} } ] } }, "position": [ 3530.2378298299764, 114.12596772622209 ] }, "08221496566d7a0e": { "id": "08221496566d7a0e", "name": "bitbybit.lists.listLength", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "clone": false }, "inputs": { "list": { "connections": [ { "node": "803b4f6c76e02220", "output": "result", "data": {} } ] } }, "position": [ 3926.551495962836, 143.06551919087937 ] }, "9f8a95fb5758e20d": { "id": "9f8a95fb5758e20d", "name": "bitbybit.math.twoNrOperation", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "first": 1, "second": 1, "operation": "subtract" }, "inputs": { "first": { "connections": [ { "node": "08221496566d7a0e", "output": "result", "data": {} } ] } }, "position": [ 4353.030521126785, 110.08874324421515 ] }, "35e3bf7f7975d3ab": { "id": "35e3bf7f7975d3ab", "name": "bitbybit.lists.getItem", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "index": 0, "clone": true }, "inputs": { "list": { "connections": [ { "node": "803b4f6c76e02220", "output": "result", "data": {} } ] }, "index": { "connections": [ { "node": "9f8a95fb5758e20d", "output": "result", "data": {} } ] } }, "position": [ 4767.933049362163, 39.94147142849002 ] }, "cf1301a7fd0f9c6c": { "id": "cf1301a7fd0f9c6c", "name": "bitbybit.occt.shapes.wire.getWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "index": 0 }, "inputs": { "shape": { "connections": [ { "node": "35e3bf7f7975d3ab", "output": "result", "data": {} } ] } }, "position": [ 5159.822692277663, 43.39615389540526 ] }, "6d86810816bd8c17": { "id": "6d86810816bd8c17", "name": "bitbybit.draw.drawAnyAsync", "async": true, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "options": { "connections": [ { "node": "7026a28a07a9f886", "output": "result", "data": {} } ] }, "entity": { "connections": [ { "node": "687b06d7c492cf9f", "output": "result", "data": {} } ] } }, "position": [ 10912.870563450537, 792.0041020981217 ] }, "1e2c9a0363925cbe": { "id": "1e2c9a0363925cbe", "name": "bitbybit.draw.drawGridMesh", "async": false, "drawable": false, "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 ] }, "27219e39b60fad34": { "id": "27219e39b60fad34", "name": "bitbybit.babylon.scene.drawDirectionalLight", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "direction": [ -100, -100, -100 ], "intensity": 3, "diffuse": "#ffffff", "specular": "#ffffff", "shadowGeneratorMapSize": 1024, "enableShadows": true, "shadowDarkness": 0 }, "inputs": {}, "position": [ -5.543787940057385, 1736.7054090372303 ] }, "dad664e07cab360b": { "id": "dad664e07cab360b", "name": "bitbybit.advanced.text3d.create", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "text": "bitbybit.dev", "fontType": "Roboto", "fontVariant": "Bold", "fontSize": 1.8, "height": 0.2, "rotation": 0, "origin": [ 0, 0, 0 ], "direction": [ 0, 1, 0 ], "originAlignment": "centerMiddle" }, "inputs": { "origin": { "connections": [ { "node": "dca6c88916e41f8b", "output": "result", "data": {} } ] } }, "position": [ 8375.678792323308, 40.74465036670003 ] }, "dca6c88916e41f8b": { "id": "dca6c88916e41f8b", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 4, "z": -4 }, "inputs": {}, "position": [ 7918.238818362392, 233.12029333128072 ] }, "bd53a9d5d9b5287c": { "id": "bd53a9d5d9b5287c", "name": "bitbybit.advanced.text3d.getCompoundShape", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "model": { "connections": [ { "node": "dad664e07cab360b", "output": "result", "data": {} } ] } }, "position": [ 9086.454162603068, 533.3703593785017 ] }, "91274de5f93fcf54": { "id": "91274de5f93fcf54", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 4, "z": 4 }, "inputs": {}, "position": [ 7943.0808703133025, 766.6920306218535 ] }, "f11c3598c5db688a": { "id": "f11c3598c5db688a", "name": "bitbybit.advanced.text3d.create", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "text": "WEB CAD", "fontType": "Roboto", "fontVariant": "Bold", "fontSize": 2, "height": 0.2, "rotation": 0, "origin": [ 0, 0, 0 ], "direction": [ 0, 1, 0 ], "originAlignment": "centerMiddle" }, "inputs": { "origin": { "connections": [ { "node": "91274de5f93fcf54", "output": "result", "data": {} } ] } }, "position": [ 8386.979439615623, 569.4334045431249 ] }, "5244a84ce9712e4c": { "id": "5244a84ce9712e4c", "name": "bitbybit.occt.booleans.difference", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "keepEdges": false }, "inputs": { "shapes": { "connections": [ { "node": "1a1e2fffba420776", "output": "list", "data": {} } ] }, "shape": { "connections": [ { "node": "030588abaeb3fd31", "output": "result", "data": {} } ] } }, "position": [ 2772.463589644358, 881.655847535417 ] }, "4ce57ed3088f1594": { "id": "4ce57ed3088f1594", "name": "bitbybit.occt.shapes.face.createCircleFace", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 1.2, "center": [ 0, 0, 0 ], "direction": [ 0, 1, 0 ] }, "inputs": { "center": { "connections": [ { "node": "752548cecf134dff", "output": "item", "data": {} } ] } }, "position": [ 1587.109012412342, 1314.457095616584 ] }, "a263bef929af4def": { "id": "a263bef929af4def", "name": "bitbybit.occt.shapes.wire.createCircleWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 1.2, "center": [ 0, 0, 0 ], "direction": [ 0, 1, 0 ] }, "inputs": {}, "position": [ 371.9642036626137, 1286.4562074934286 ] }, "ba6be9e1170ed7fd": { "id": "ba6be9e1170ed7fd", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 1 }, "nrOfDivisions": 5, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "a263bef929af4def", "output": "result", "data": {} } ] } }, "position": [ 773.8227280396106, 1339.5308525069888 ] }, "752548cecf134dff": { "id": "752548cecf134dff", "name": "bitbybit.lists.passThrough", "data": {}, "inputs": { "item": { "connections": [ { "node": "ba6be9e1170ed7fd", "output": "result", "data": {} } ] } }, "position": [ 1230.567014092418, 1390.2671229653456 ] }, "1a1e2fffba420776": { "id": "1a1e2fffba420776", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "4ce57ed3088f1594", "output": "result", "data": {} } ] } }, "position": [ 1982.596671069358, 1325.2165445363762 ] }, "2955f7f979d606cf": { "id": "2955f7f979d606cf", "name": "bitbybit.occt.fillets.chamferEdges", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "distance": 0.3 }, "inputs": { "shape": { "connections": [ { "node": "5626d379c2fe621c", "output": "result", "data": {} } ] } }, "position": [ 9085.261330919646, 1354.824822781705 ] }, "687b06d7c492cf9f": { "id": "687b06d7c492cf9f", "name": "bitbybit.occt.shapes.compound.makeCompound", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shapes": { "connections": [ { "node": "34d07f4c1aac551d", "output": "list", "data": {} } ] } }, "position": [ 10034.070045929137, 656.2669483169293 ] }, "34d07f4c1aac551d": { "id": "34d07f4c1aac551d", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "bd53a9d5d9b5287c", "output": "result", "data": {} }, { "node": "6fe3a06a880a87d3", "output": "result", "data": {} }, { "node": "2955f7f979d606cf", "output": "result", "data": {} } ] } }, "position": [ 9709.77203163195, 696.5788602663482 ] }, "6fe3a06a880a87d3": { "id": "6fe3a06a880a87d3", "name": "bitbybit.advanced.text3d.getCompoundShape", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "model": { "connections": [ { "node": "f11c3598c5db688a", "output": "result", "data": {} } ] } }, "position": [ 9090.070904294022, 784.0961658626884 ] } } }