Parametric Tower Rete Script

Parametric Tower Rete Script script details
Author
matas
Type
Rete logo image
rete
App Version
0.13.0
Visibility
public
Date Created
Apr 7, 2023, 9:43:58 PM
Last Edit Date
Dec 5, 2023, 4:40:07 PM

Script Details

The Code
{ "id": "bitbybit-dev@0.0.1", "nodes": { "1": { "id": 1, "data": { "hide": true, "simpleOutput": true, "nrCorners": 4, "radius": 1.2, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "center": { "connections": [] }, "direction": { "connections": [] }, "nrCorners": { "connections": [] }, "radius": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 52, "input": "shape", "data": {} } ] } }, "position": [ -77.52152384031893, -689.9545732064677 ], "name": "bitbybit.occt.shapes.wire.createNGonWire" }, "2": { "id": 2, "data": {}, "inputs": { "listElements": { "connections": [ { "node": 3, "output": "result", "data": {} }, { "node": 4, "output": "result", "data": {} }, { "node": 5, "output": "result", "data": {} } ] } }, "outputs": { "list": { "connections": [ { "node": 16, "input": "listElements", "data": {} } ] } }, "position": [ 389.3666997551353, -25.94723930610919 ], "name": "createList" }, "3": { "id": 3, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 2, "input": "listElements", "data": {} } ] } }, "position": [ -40.93914799796051, -40.73646804922219 ], "name": "bitbybit.math.number" }, "4": { "id": 4, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 2, "input": "listElements", "data": {} } ] } }, "position": [ -40.93914799796051, -195.02098054726997 ], "name": "bitbybit.math.number" }, "5": { "id": 5, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 2, "input": "listElements", "data": {} } ] } }, "position": [ -40.464829146324895, 122.32305606533846 ], "name": "bitbybit.math.number" }, "6": { "id": 6, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 9, "input": "listElements", "data": {} } ] } }, "position": [ -49.77897504856411, 717.8618586264442 ], "name": "bitbybit.math.number" }, "9": { "id": 9, "data": {}, "inputs": { "listElements": { "connections": [ { "node": 6, "output": "result", "data": {} }, { "node": 11, "output": "result", "data": {} }, { "node": 12, "output": "result", "data": {} } ] } }, "outputs": { "list": { "connections": [ { "node": 16, "input": "listElements", "data": {} } ] } }, "position": [ 417.9437016247621, 570.7971573594594 ], "name": "createList" }, "11": { "id": 11, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 9, "input": "listElements", "data": {} } ] } }, "position": [ -65.09151655960586, 426.19923391637263 ], "name": "bitbybit.math.number" }, "12": { "id": 12, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 9, "input": "listElements", "data": {} } ] } }, "position": [ -53.27910918902949, 573.3352312280315 ], "name": "bitbybit.math.number" }, "16": { "id": 16, "data": {}, "inputs": { "listElements": { "connections": [ { "node": 2, "output": "list", "data": {} }, { "node": 9, "output": "list", "data": {} }, { "node": 71, "output": "list", "data": {} } ] } }, "outputs": { "list": { "connections": [ { "node": 19, "input": "item", "data": {} } ] } }, "position": [ 693.4570772779048, 566.4668150353352 ], "name": "createList" }, "19": { "id": 19, "data": { "simpleOutput": true, "times": 30, "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "item": { "connections": [ { "node": 16, "output": "list", "data": {} } ] }, "times": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 20, "input": "list", "data": {} } ] } }, "position": [ 920.1806269150735, 522.3956054218368 ], "name": "bitbybit.lists.repeat" }, "20": { "id": 20, "data": { "nrLevels": 2 }, "inputs": { "list": { "connections": [ { "node": 19, "output": "result", "data": {} } ] }, "nrLevels": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 22, "input": "scale", "data": {} } ] } }, "position": [ 1256.7813585677145, 559.5164401165022 ], "name": "flatten" }, "22": { "id": 22, "data": { "hide": true, "simpleOutput": true, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": 52, "output": "result", "data": {} } ] }, "scale": { "connections": [ { "node": 20, "output": "result", "data": {} } ] }, "center": { "connections": [ { "node": 23, "output": "result", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 28, "input": "listElements", "data": {} } ] } }, "position": [ 1658.8058257974835, 290.3743661278002 ], "name": "bitbybit.occt.transforms.scale3d" }, "23": { "id": 23, "data": { "hide": true, "simpleOutput": true, "x": 0, "y": 0, "z": 0, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "x": { "connections": [] }, "y": { "connections": [] }, "z": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 22, "input": "center", "data": {} } ] } }, "position": [ 943.7289426757445, 227.6095088238348 ], "name": "bitbybit.vector.vectorXYZ" }, "27": { "id": 27, "data": { "hide": true, "simpleOutput": true, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shapes": { "connections": [ { "node": 28, "output": "list", "data": {} } ] }, "axes": { "connections": [ { "node": 38, "output": "result", "data": {} } ] }, "angles": { "connections": [ { "node": 30, "output": "result", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 41, "input": "shapes", "data": {} } ] } }, "position": [ 3569.7796928143725, -17.435500506328278 ], "name": "bitbybit.occt.transforms.rotateShapes" }, "28": { "id": 28, "data": {}, "inputs": { "listElements": { "connections": [ { "node": 22, "output": "result", "data": {} } ] } }, "outputs": { "list": { "connections": [ { "node": 27, "input": "shapes", "data": {} }, { "node": 29, "input": "list", "data": {} } ] } }, "position": [ 1936.6989542174197, 331.7648803925928 ], "name": "createList" }, "29": { "id": 29, "data": {}, "inputs": { "list": { "connections": [ { "node": 28, "output": "list", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 36, "input": "first", "data": {} }, { "node": 38, "input": "times", "data": {} } ] } }, "position": [ 2171.917903292512, 709.177059418338 ], "name": "bitbybit.lists.listLength" }, "30": { "id": 30, "data": { "simpleOutput": true, "step": 1, "min": 0, "max": 1 }, "inputs": { "step": { "connections": [ { "node": 32, "output": "result", "data": {} } ] }, "min": { "connections": [] }, "max": { "connections": [ { "node": 31, "output": "result", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 27, "input": "angles", "data": {} } ] } }, "position": [ 3074.6089419446284, 223.8109197054989 ], "name": "bitbybit.vector.span" }, "31": { "id": 31, "data": { "number": 180 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 30, "input": "max", "data": {} }, { "node": 63, "input": "first", "data": {} } ] } }, "position": [ 2031.637577013465, 473.1187027492339 ], "name": "bitbybit.math.number" }, "32": { "id": 32, "data": { "simpleOutput": true, "first": 1, "second": 1, "operation": "divide" }, "inputs": { "first": { "connections": [ { "node": 63, "output": "result", "data": {} } ] }, "second": { "connections": [ { "node": 36, "output": "result", "data": {} } ] }, "operation": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 30, "input": "step", "data": {} } ] } }, "position": [ 2771.618688396047, 504.48748832921495 ], "name": "bitbybit.math.twoNrOperation" }, "36": { "id": 36, "data": { "simpleOutput": true, "first": 1, "second": 1, "operation": "subtract" }, "inputs": { "first": { "connections": [ { "node": 29, "output": "result", "data": {} } ] }, "second": { "connections": [] }, "operation": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 32, "input": "second", "data": {} }, { "node": 45, "input": "second", "data": {} } ] } }, "position": [ 2281.669261741823, 911.3525307872649 ], "name": "bitbybit.math.twoNrOperation" }, "37": { "id": 37, "data": { "hide": false, "simpleOutput": true, "x": 0, "y": 1, "z": 0, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "x": { "connections": [] }, "y": { "connections": [] }, "z": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 38, "input": "item", "data": {} } ] } }, "position": [ 2816.525463927678, -372.8230301860144 ], "name": "bitbybit.vector.vectorXYZ" }, "38": { "id": 38, "data": { "simpleOutput": true, "times": 10 }, "inputs": { "item": { "connections": [ { "node": 37, "output": "result", "data": {} } ] }, "times": { "connections": [ { "node": 29, "output": "result", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 27, "input": "axes", "data": {} } ] } }, "position": [ 3128.596730160003, -189.92281443794317 ], "name": "bitbybit.lists.repeat" }, "41": { "id": 41, "data": { "hide": true, "simpleOutput": true, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shapes": { "connections": [ { "node": 27, "output": "result", "data": {} } ] }, "translations": { "connections": [ { "node": 48, "output": "list", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 50, "input": "shapes", "data": {} } ] } }, "position": [ 4645.645935791479, 407.0702002696667 ], "name": "bitbybit.occt.transforms.translateShapes" }, "42": { "id": 42, "data": { "hide": true, "simpleOutput": true, "x": 0, "y": 0, "z": 0, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "x": { "connections": [] }, "y": { "connections": [ { "node": 47, "output": "result", "data": {} } ] }, "z": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 48, "input": "listElements", "data": {} } ] } }, "position": [ 4181.6477448191345, 599.8151436377335 ], "name": "bitbybit.vector.vectorXYZ" }, "43": { "id": 43, "data": { "simpleOutput": true, "step": 1, "min": 0, "max": 1 }, "inputs": { "step": { "connections": [ { "node": 45, "output": "result", "data": {} } ] }, "min": { "connections": [] }, "max": { "connections": [ { "node": 44, "output": "result", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 47, "input": "list", "data": {} } ] } }, "position": [ 3586.1486075470157, 657.2544768874906 ], "name": "bitbybit.vector.span" }, "44": { "id": 44, "data": { "number": 10 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 43, "input": "max", "data": {} }, { "node": 62, "input": "first", "data": {} } ] } }, "position": [ 2644.0121848469753, 925.6218830389182 ], "name": "bitbybit.math.number" }, "45": { "id": 45, "data": { "simpleOutput": true, "first": 1, "second": 1, "operation": "divide" }, "inputs": { "first": { "connections": [ { "node": 62, "output": "result", "data": {} } ] }, "second": { "connections": [ { "node": 36, "output": "result", "data": {} } ] }, "operation": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 43, "input": "step", "data": {} } ] } }, "position": [ 3283.5309341966567, 924.5663152462959 ], "name": "bitbybit.math.twoNrOperation" }, "47": { "id": 47, "data": { "nrLevels": 1 }, "inputs": { "list": { "connections": [ { "node": 43, "output": "result", "data": {} } ] }, "nrLevels": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 42, "input": "y", "data": {} } ] } }, "position": [ 3872.618196554682, 694.1205783756085 ], "name": "flatten" }, "48": { "id": 48, "data": {}, "inputs": { "listElements": { "connections": [ { "node": 42, "output": "result", "data": {} } ] } }, "outputs": { "list": { "connections": [ { "node": 41, "input": "translations", "data": {} } ] } }, "position": [ 4457.176451994978, 581.1829116535696 ], "name": "createList" }, "50": { "id": 50, "data": { "makeSolid": true, "closed": false, "periodic": false, "straight": true, "useSmoothing": false, "hide": true, "simpleOutput": true, "nrPeriodicSections": 10, "maxUDegree": 3, "tolerance": 1e-7, "parType": "approxCentripetal", "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shapes": { "connections": [ { "node": 41, "output": "result", "data": {} } ] }, "makeSolid": { "connections": [] }, "closed": { "connections": [] }, "periodic": { "connections": [] }, "straight": { "connections": [] }, "nrPeriodicSections": { "connections": [] }, "useSmoothing": { "connections": [] }, "maxUDegree": { "connections": [] }, "tolerance": { "connections": [] }, "parType": { "connections": [] }, "startVertex": { "connections": [] }, "endVertex": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 54, "input": "entity", "data": {} } ] } }, "position": [ 5014.314256356411, 37.21770853864297 ], "name": "bitbybit.occt.operations.loftAdvanced" }, "52": { "id": 52, "data": { "hide": false, "simpleOutput": true, "radius": 0.2, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": 1, "output": "result", "data": {} } ] }, "radius": { "connections": [] }, "radiusList": { "connections": [] }, "indexes": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 22, "input": "shape", "data": {} }, { "node": 55, "input": "shape", "data": {} } ] } }, "position": [ 473.36695737824164, -481.9014235516187 ], "name": "bitbybit.occt.fillets.fillet2d" }, "53": { "id": 53, "data": { "drawEdges": true, "drawFaces": true, "drawEdgeIndexes": false, "drawFaceIndexes": false, "simpleOutput": true, "faceOpacity": 1, "edgeOpacity": 1, "edgeColour": "#e0ccff", "faceColour": "#ff70fa", "edgeWidth": 0.5, "precision": 0.01, "edgeIndexHeight": 0.06, "edgeIndexColour": "ff00ff", "faceIndexHeight": 0.06, "faceIndexColour": "#0000ff" }, "inputs": { "faceOpacity": { "connections": [] }, "edgeOpacity": { "connections": [] }, "edgeColour": { "connections": [] }, "faceColour": { "connections": [] }, "faceMaterial": { "connections": [] }, "edgeWidth": { "connections": [] }, "drawEdges": { "connections": [] }, "drawFaces": { "connections": [] }, "precision": { "connections": [] }, "drawEdgeIndexes": { "connections": [] }, "edgeIndexHeight": { "connections": [] }, "edgeIndexColour": { "connections": [] }, "drawFaceIndexes": { "connections": [] }, "faceIndexHeight": { "connections": [] }, "faceIndexColour": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 54, "input": "options", "data": {} } ] } }, "position": [ 5023.469215453012, 747.026250488013 ], "name": "bitbybit.draw.optionsOcctShape" }, "54": { "id": 54, "data": { "simpleOutput": true }, "inputs": { "entity": { "connections": [ { "node": 50, "output": "result", "data": {} }, { "node": 66, "output": "result", "data": {} } ] }, "options": { "connections": [ { "node": 53, "output": "result", "data": {} } ] }, "babylonMesh": { "connections": [] } }, "outputs": { "result": { "connections": [] } }, "position": [ 5521.818116166544, 568.8960026477324 ], "name": "bitbybit.draw.drawAnyAsync" }, "55": { "id": 55, "data": { "hide": true, "simpleOutput": true, "factor": 10, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": 52, "output": "result", "data": {} } ] }, "factor": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 56, "input": "shape", "data": {} } ] } }, "position": [ 910.7111411467489, -499.98915431828124 ], "name": "bitbybit.occt.transforms.scale" }, "56": { "id": 56, "data": { "planar": true, "hide": true, "simpleOutput": true, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": 55, "output": "result", "data": {} } ] }, "planar": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 66, "input": "shape", "data": {} } ] } }, "position": [ 1309.0714207828273, -502.50933959500026 ], "name": "bitbybit.occt.shapes.face.createFaceFromWire" }, "57": { "id": 57, "data": { "enableShadows": true, "simpleOutput": true, "intensity": 1500, "diffuse": "#7866ff", "specular": "#ffffff", "radius": 0.1, "shadowGeneratorMapSize": 2056, "shadowDarkness": 0 }, "inputs": { "position": { "connections": [ { "node": 58, "output": "result", "data": {} } ] }, "intensity": { "connections": [] }, "diffuse": { "connections": [] }, "specular": { "connections": [] }, "radius": { "connections": [] }, "shadowGeneratorMapSize": { "connections": [] }, "enableShadows": { "connections": [] }, "shadowDarkness": { "connections": [] } }, "outputs": { "result": { "connections": [] } }, "position": [ -106.49144801674015, -1395.2513320882001 ], "name": "bitbybit.babylon.scene.drawPointLight" }, "58": { "id": 58, "data": { "hide": false, "simpleOutput": true, "x": 5, "y": 15, "z": 5 }, "inputs": { "x": { "connections": [] }, "y": { "connections": [] }, "z": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 57, "input": "position", "data": {} } ] } }, "position": [ -449.5518748135866, -1301.4186818134422 ], "name": "bitbybit.vector.vectorXYZ" }, "62": { "id": 62, "data": { "simpleOutput": true, "first": 1, "second": 1e-7, "operation": "subtract" }, "inputs": { "first": { "connections": [ { "node": 44, "output": "result", "data": {} } ] }, "second": { "connections": [] }, "operation": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 45, "input": "first", "data": {} } ] } }, "position": [ 2952.1075535853824, 913.9589992965236 ], "name": "bitbybit.math.twoNrOperation" }, "63": { "id": 63, "data": { "simpleOutput": true, "first": 1, "second": 1e-7, "operation": "subtract" }, "inputs": { "first": { "connections": [ { "node": 31, "output": "result", "data": {} } ] }, "second": { "connections": [] }, "operation": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 32, "input": "first", "data": {} } ] } }, "position": [ 2427.8203095830654, 510.7844747531974 ], "name": "bitbybit.math.twoNrOperation" }, "66": { "id": 66, "data": { "hide": true, "simpleOutput": true, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": 56, "output": "result", "data": {} } ] }, "direction": { "connections": [ { "node": 67, "output": "result", "data": {} } ] } }, "outputs": { "result": { "connections": [ { "node": 54, "input": "entity", "data": {} } ] } }, "position": [ 1568.8656643999984, -414.76473808774085 ], "name": "bitbybit.occt.operations.extrude" }, "67": { "id": 67, "data": { "hide": true, "simpleOutput": true, "x": 0, "y": -0.2, "z": 0, "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "x": { "connections": [] }, "y": { "connections": [] }, "z": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 66, "input": "direction", "data": {} } ] } }, "position": [ 1283.894626042602, -222.27022989872341 ], "name": "bitbybit.vector.vectorXYZ" }, "71": { "id": 71, "data": {}, "inputs": { "listElements": { "connections": [ { "node": 72, "output": "result", "data": {} }, { "node": 73, "output": "result", "data": {} }, { "node": 74, "output": "result", "data": {} } ] } }, "outputs": { "list": { "connections": [ { "node": 16, "input": "listElements", "data": {} } ] } }, "position": [ 465.42902138432214, 952.1314353489505 ], "name": "createList" }, "72": { "id": 72, "data": { "number": 2 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 71, "input": "listElements", "data": {} } ] } }, "position": [ -15.226016008725871, 992.5830339509221 ], "name": "bitbybit.math.number" }, "73": { "id": 73, "data": { "number": 1 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 71, "input": "listElements", "data": {} } ] } }, "position": [ 17.78735213343623, 1150.3607843847537 ], "name": "bitbybit.math.number" }, "74": { "id": 74, "data": { "number": 3 }, "inputs": { "number": { "connections": [] } }, "outputs": { "result": { "connections": [ { "node": 71, "input": "listElements", "data": {} } ] } }, "position": [ -5.622752052326177, 1289.753843183742 ], "name": "bitbybit.math.number" } } }