Divide OCCT Wires To Points

Divide OCCT Wires To Points script details
Type
Rete logo image
rete
App Version
0.16.3
Visibility
public
Date Created
Sep 17, 2024, 5:02:35 AM
Last Edit Date
Sep 18, 2024, 5:38:41 AM

Script Details

The Code
{ "id": "rete-v2-json", "nodes": { "769cd413fa838037": { "id": "769cd413fa838037", "name": "bitbybit.draw.drawGridMesh", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "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": [ -1105.2093505859375, 102.8718032836914 ] }, "e3829a8c1924fd64": { "id": "e3829a8c1924fd64", "name": "bitbybit.code.jsonEditor", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": true }, "code": { "code": "[\n [\n 15,\n 0,\n 15\n ],\n [\n -10,\n 3,\n 10\n ],\n [\n -10,\n 10,\n -10\n ],\n [\n 10,\n 0,\n -10\n ]\n]" } }, "inputs": {}, "position": [ -1539.7361249543421, -1674.1145652778623 ] }, "aacd421bbdd85954": { "id": "aacd421bbdd85954", "name": "bitbybit.occt.shapes.wire.createPolygonWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "points": { "connections": [ { "node": "e3829a8c1924fd64", "output": "result", "data": {} } ] } }, "position": [ -740.8353261048856, -1713.5148070136684 ] }, "f9ce4b89a7a77850": { "id": "f9ce4b89a7a77850", "name": "bitbybit.occt.fillets.fillet3DWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "radius": 4, "direction": [ 0, 1, 0 ] }, "inputs": { "shape": { "connections": [ { "node": "aacd421bbdd85954", "output": "result", "data": {} } ] }, "direction": { "connections": [ { "node": "200aa492c62bd281", "output": "result", "data": {} } ] } }, "position": [ -152.87675994568542, -1627.281178384528 ] }, "200aa492c62bd281": { "id": "200aa492c62bd281", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "x": 0, "y": 10, "z": 0 }, "inputs": {}, "position": [ -767.7369368854346, -1269.752050002093 ] }, "8dd228c5b3835a7d": { "id": "8dd228c5b3835a7d", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "nrOfDivisions": 100, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "f9ce4b89a7a77850", "output": "result", "data": {} }, { "node": "c1f8d72e8cc34b4b", "output": "result", "data": {} } ] } }, "position": [ 2656.3156891365466, -2783.119729564966 ] }, "b8c5bacc57a9517c": { "id": "b8c5bacc57a9517c", "name": "bitbybit.occt.shapes.wire.divideWireByEqualDistanceToPoints", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "nrOfDivisions": 400, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "f9ce4b89a7a77850", "output": "result", "data": {} }, { "node": "c1f8d72e8cc34b4b", "output": "result", "data": {} } ] } }, "position": [ 2650.9864242976937, -2360.1873180524726 ] }, "c1f8d72e8cc34b4b": { "id": "c1f8d72e8cc34b4b", "name": "bitbybit.occt.transforms.translate", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "translation": [ 0, 0, 0 ] }, "inputs": { "translation": { "connections": [ { "node": "79deb7ccbe4ca7a9", "output": "result", "data": {} } ] }, "shape": { "connections": [ { "node": "f9ce4b89a7a77850", "output": "result", "data": {} } ] } }, "position": [ 366.7985284172885, -2493.8733501264514 ] }, "79deb7ccbe4ca7a9": { "id": "79deb7ccbe4ca7a9", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "x": 0, "y": 6, "z": 0 }, "inputs": {}, "position": [ -110.25595736539285, -2467.574933930353 ] }, "55ea73b8482ff32a": { "id": "55ea73b8482ff32a", "name": "bitbybit.occt.shapes.wire.createLineWire", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": true, "flatten": 0, "forceExecution": false }, "start": [ 0, 0, 0 ], "end": [ 0, 1, 0 ] }, "inputs": { "start": { "connections": [ { "node": "6e21aaaf2047348b", "output": "result", "data": {} } ] }, "end": { "connections": [ { "node": "a722d70a417af48b", "output": "result", "data": {} } ] } }, "position": [ 6455.076300843297, -2327.9805055227707 ] }, "540eb0df772e9d77": { "id": "540eb0df772e9d77", "name": "bitbybit.lists.flipLists", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 1, "forceExecution": false }, "clone": true }, "inputs": { "list": { "connections": [ { "node": "627e90a261383bbe", "output": "list", "data": {} } ] } }, "position": [ 5459.872681318873, -2307.7667264025254 ] }, "6e21aaaf2047348b": { "id": "6e21aaaf2047348b", "name": "bitbybit.lists.getItem", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "index": 0, "clone": true }, "inputs": { "list": { "connections": [ { "node": "540eb0df772e9d77", "output": "result", "data": {} } ] } }, "position": [ 5902.040889732888, -2535.857566073109 ] }, "a722d70a417af48b": { "id": "a722d70a417af48b", "name": "bitbybit.lists.getItem", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "index": 1, "clone": true }, "inputs": { "list": { "connections": [ { "node": "540eb0df772e9d77", "output": "result", "data": {} } ] } }, "position": [ 5908.382332275019, -2168.3040952928495 ] }, "627e90a261383bbe": { "id": "627e90a261383bbe", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "1d9e031b0f1697e7", "output": "item", "data": {} } ] } }, "position": [ 5156.843723943604, -2261.7481905835684 ] }, "c468fef70b596f6b": { "id": "c468fef70b596f6b", "name": "bitbybit.draw.drawAnyAsync", "async": true, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "options": { "connections": [ { "node": "5d2cbe6d35b7186e", "output": "result", "data": {} } ] }, "entity": { "connections": [ { "node": "1d9e031b0f1697e7", "output": "item", "data": {} } ] } }, "position": [ 5098.174631760519, -1710.7690132709772 ] }, "5d2cbe6d35b7186e": { "id": "5d2cbe6d35b7186e", "name": "bitbybit.draw.optionsSimple", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "colours": "#ff0000", "size": 0.3, "opacity": 1, "updatable": false, "hidden": false }, "inputs": { "colours": { "connections": [ { "node": "6b0acf51ba9fd0b2", "output": "result", "data": {} } ] } }, "position": [ 4707.734211648146, -1473.2659397316102 ] }, "6b0acf51ba9fd0b2": { "id": "6b0acf51ba9fd0b2", "name": "bitbybit.color.hexColor", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "color": "#f1cfbb" }, "inputs": {}, "position": [ 4382.2957445421425, -1392.0545387493069 ] }, "45babca5fcd23b5e": { "id": "45babca5fcd23b5e", "name": "bitbybit.draw.drawAnyAsync", "async": true, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "entity": { "connections": [ { "node": "c1f8d72e8cc34b4b", "output": "result", "data": {} } ] }, "options": { "connections": [ { "node": "583c266f4cb02f81", "output": "result", "data": {} } ] } }, "position": [ 1462.4436562591077, -3694.35463595777 ] }, "e8c62ca97180b0d6": { "id": "e8c62ca97180b0d6", "name": "bitbybit.draw.drawAnyAsync", "async": true, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "entity": { "connections": [ { "node": "f9ce4b89a7a77850", "output": "result", "data": {} } ] }, "options": { "connections": [ { "node": "5baa3024a9ff6b0e", "output": "result", "data": {} } ] } }, "position": [ 1481.2159333269224, -3304.132339475339 ] }, "583c266f4cb02f81": { "id": "583c266f4cb02f81", "name": "bitbybit.draw.optionsOcctShapeSimple", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "precision": 0.01, "drawFaces": false, "faceColour": "#ff0000", "drawEdges": true, "edgeColour": "#e8e8e8", "edgeWidth": 10 }, "inputs": {}, "position": [ 905.4311901635265, -3637.7085440022456 ] }, "5baa3024a9ff6b0e": { "id": "5baa3024a9ff6b0e", "name": "bitbybit.draw.optionsOcctShapeSimple", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "precision": 0.01, "drawFaces": false, "faceColour": "#ff0000", "drawEdges": true, "edgeColour": "#5c5c5c", "edgeWidth": 10 }, "inputs": {}, "position": [ 1033.0616580625156, -3114.0969715301994 ] }, "26024867fcc71f82": { "id": "26024867fcc71f82", "name": "bitbybit.occt.shapes.wire.pointsOnWireAtEqualLength", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "length": 1, "tryNext": false, "includeFirst": true, "includeLast": false }, "inputs": { "shape": { "connections": [ { "node": "c1f8d72e8cc34b4b", "output": "result", "data": {} }, { "node": "f9ce4b89a7a77850", "output": "result", "data": {} } ] } }, "position": [ 2649.462605097173, -1959.5820264065644 ] }, "da992aad01376a32": { "id": "da992aad01376a32", "name": "bitbybit.occt.shapes.wire.pointsOnWireAtPatternOfLengths", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "tryNext": false, "includeFirst": false, "includeLast": false }, "inputs": { "shape": { "connections": [ { "node": "c1f8d72e8cc34b4b", "output": "result", "data": {} }, { "node": "f9ce4b89a7a77850", "output": "result", "data": {} } ] }, "lengths": { "connections": [ { "node": "27f1fefc32e61e53", "output": "result", "data": {} } ] } }, "position": [ 2636.447823646282, -1525.1410682476287 ] }, "76c0da9d42232f82": { "id": "76c0da9d42232f82", "name": "bitbybit.occt.shapes.wire.pointsOnWireAtLengths", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "lengths": { "connections": [ { "node": "171cd5a6e40be188", "output": "result", "data": {} } ] }, "shape": { "connections": [ { "node": "f9ce4b89a7a77850", "output": "result", "data": {} }, { "node": "c1f8d72e8cc34b4b", "output": "result", "data": {} } ] } }, "position": [ 2648.0603052229867, -1082.6228912877866 ] }, "171cd5a6e40be188": { "id": "171cd5a6e40be188", "name": "bitbybit.math.randomNumbers", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "low": 0, "high": 1, "count": 100 }, "inputs": { "high": { "connections": [ { "node": "a6b07c94a4beebc9", "output": "result", "data": {} } ] } }, "position": [ 1824.9651592075697, -696.8435296485982 ] }, "27f1fefc32e61e53": { "id": "27f1fefc32e61e53", "name": "bitbybit.code.jsonEditor", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": true }, "code": { "code": "[0.5, 1, 0.2, 2, 0.1]" } }, "inputs": {}, "position": [ 1641.439581966419, -1185.4625994372427 ] }, "a6b07c94a4beebc9": { "id": "a6b07c94a4beebc9", "name": "bitbybit.occt.shapes.wire.getWireLength", "async": true, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "shape": { "connections": [ { "node": "f9ce4b89a7a77850", "output": "result", "data": {} } ] } }, "position": [ 1366.3732686821959, -642.5617898730654 ] }, "20c1a400cdb477be": { "id": "20c1a400cdb477be", "name": "bitbybit.previewData", "data": { "previewJSONControl": "[\n [\n 23.561218385339266,\n 6.7395175980666995,\n 14.796948020895902,\n 78.70759672999992,\n 79.04618206864255,\n 69.05750050845701,\n 30.942169713013207,\n 83.06477741900656,\n 16.4983535582591,\n 61.07562991936907,\n 18.316498272654677,\n 25.530293850841655,\n 64.3942299103803,\n 3.844212869124993,\n 83.37459961812489,\n 5.436898220092775,\n 40.9615899637957,\n 84.90562222072279,\n 34.940255850029764,\n 85.59756423010111,\n 28.150075470885874,\n 79.27052144207957,\n 36.99207367585728,\n 59.78989919222035,\n 20.058300259292615,\n 51.43487674454499,\n 7.5519423028811,\n 69.4926751828991,\n 18.741003301819628,\n 48.7724467340771,\n 21.59281166727536,\n 52.29231884785108,\n 79.49439682875692,\n 17.433109621873072,\n 29.783863269067304,\n 26.190576190166528,\n 53.25538773943429,\n 42.10693559332111,\n 43.65076998042853,\n 82.67961313140728,\n 36.834478862916235,\n 30.320122457075126,\n 68.04524847167579,\n 62.65565930026684,\n 64.41219431171992,\n 40.32454253018946,\n 0.9522488598122733,\n 41.39435092977931,\n 26.692210293391646,\n 44.056424731607635,\n 76.09037622371088,\n 58.201460936577156,\n 21.77286305996466,\n 34.06857691805302,\n 34.76183270380665,\n 48.601988243243454,\n 66.40895401987831,\n 84.3420559788816,\n 16.322961104099402,\n 38.950825738847165,\n 24.020188613405217,\n 68.06136366278591,\n 63.0603353979815,\n 15.873291595445565,\n 34.12647844829262,\n 32.68578425981573,\n 50.181445336272,\n 16.070735188676608,\n 54.35673769485621,\n 67.52459619530464,\n 1.800759460715534,\n 30.083755126106915,\n 72.64678562969098,\n 45.802007455712975,\n 61.722848582582515,\n 72.65862148799809,\n 11.734424456004474,\n 10.914859532976497,\n 82.65168568880468,\n 1.5674176900700831,\n 34.901048584218955,\n 67.47669649632435,\n 69.12380547778201,\n 45.36657535813289,\n 17.792893249272865,\n 52.56973614807142,\n 66.08173401660034,\n 73.1522496876024,\n 35.92851255903931,\n 25.99660761865367,\n 31.658835750883195,\n 71.33955201292234,\n 77.00912219194645,\n 29.127488285636595,\n 11.084060566074093,\n 31.814488815576205,\n 48.698651918344645,\n 77.44087292284864,\n 59.82568896094934,\n 25.772085701264828\n ]\n]" }, "inputs": { "data": { "connections": [ { "node": "171cd5a6e40be188", "output": "result", "data": {} } ] } }, "position": [ 2351.3452343071876, -269.5663930593762 ] }, "79bfc6b756e2ab85": { "id": "79bfc6b756e2ab85", "name": "bitbybit.previewData", "data": { "previewJSONControl": "[\n 86.15901160753663\n]" }, "inputs": { "data": { "connections": [ { "node": "a6b07c94a4beebc9", "output": "result", "data": {} } ] } }, "position": [ 1808.8865957563912, -286.5362418888401 ] }, "1fc7630c4c8f382d": { "id": "1fc7630c4c8f382d", "name": "bitbybit.draw.drawAnyAsync", "async": true, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "entity": { "connections": [ { "node": "0ba8e8d5b726b2c4", "output": "result", "data": {} } ] }, "options": { "connections": [ { "node": "4f8c476960e2ff3f", "output": "result", "data": {} } ] } }, "position": [ 7573.041114130158, -2367.685886087968 ] }, "0ba8e8d5b726b2c4": { "id": "0ba8e8d5b726b2c4", "name": "bitbybit.occt.shapes.compound.makeCompound", "async": true, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false } }, "inputs": { "shapes": { "connections": [ { "node": "8be915b6fe4c00fc", "output": "list", "data": {} } ] } }, "position": [ 7147.505508431364, -2413.758226147941 ] }, "8be915b6fe4c00fc": { "id": "8be915b6fe4c00fc", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "55ea73b8482ff32a", "output": "result", "data": {} } ] } }, "position": [ 6793.921919193008, -2300.6254557854654 ] }, "4f8c476960e2ff3f": { "id": "4f8c476960e2ff3f", "name": "bitbybit.draw.optionsOcctShapeSimple", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "precision": 0.01, "drawFaces": false, "faceColour": "#ff0000", "drawEdges": true, "edgeColour": "#2b2b2b", "edgeWidth": 4 }, "inputs": {}, "position": [ 7032.968447303034, -2067.0019491583216 ] }, "1d9e031b0f1697e7": { "id": "1d9e031b0f1697e7", "name": "bitbybit.lists.passThrough", "data": {}, "inputs": { "item": { "connections": [ { "node": "da992aad01376a32", "output": "result", "data": {} } ] } }, "position": [ 4347.243548164956, -1958.1611820039018 ] }, "2adcb43503ae56b1": { "id": "2adcb43503ae56b1", "name": "bitbybit.babylon.scene.adjustActiveArcRotateCamera", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "position": [ 10, 10, 10 ], "lookAt": [ 0, 0, 0 ], "lowerBetaLimit": 1, "upperBetaLimit": 179, "angularSensibilityX": 1000, "angularSensibilityY": 1000, "maxZ": 1000, "panningSensibility": 1000, "wheelPrecision": 3 }, "inputs": { "position": { "connections": [ { "node": "1e31f4425da27bcd", "output": "result", "data": {} } ] }, "lookAt": { "connections": [ { "node": "c4bcfef275b88e1e", "output": "result", "data": {} } ] } }, "position": [ -1205.2994274360947, 756.9599098922039 ] }, "1e31f4425da27bcd": { "id": "1e31f4425da27bcd", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "x": 25, "y": 25, "z": 25 }, "inputs": {}, "position": [ -1644.2656377507424, 706.0446900574414 ] }, "c4bcfef275b88e1e": { "id": "c4bcfef275b88e1e", "name": "bitbybit.vector.vectorXYZ", "async": false, "drawable": true, "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "x": 0, "y": 5, "z": 0 }, "inputs": {}, "position": [ -1639.008729839935, 1069.9067264612659 ] }, "493b1a3dfe65c116": { "id": "493b1a3dfe65c116", "name": "bitbybit.babylon.scene.backgroundColour", "async": false, "drawable": false, "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0, "forceExecution": false }, "colour": "#ababab" }, "inputs": {}, "position": [ -1071.5577103352414, -227.10526204006908 ] } } }