Script: Circles All With All

Circles All With All picture
Type
Rete logo indicatorrete
Date Created
Apr 5, 2024, 3:27:10 PM
Last Edit Date
Apr 5, 2024, 3:35:17 PM

Project Information

This project illustrates how circles can be joined in "all with all" relationship to generate nice looking pattern on the face

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "0ba32e92e5cd8afd": {
      "id": "0ba32e92e5cd8afd",
      "name": "bitbybit.occt.shapes.face.createFaceFromMultipleCircleTanWireCollections",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "combination": "allWithAll",
        "unify": true,
        "tolerance": 1e-7
      },
      "inputs": {
        "listsOfCircles": {
          "connections": [
            {
              "node": "849d3bfdbd4911e9",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2886.9451709206623,
        830.0293853298213
      ]
    },
    "a62fd8bb4315e14b": {
      "id": "a62fd8bb4315e14b",
      "name": "bitbybit.occt.shapes.wire.createCircleWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 15
      },
      "inputs": {},
      "position": [
        483.03125,
        580.94140625
      ]
    },
    "939c1186c181fecf": {
      "id": "939c1186c181fecf",
      "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "nrOfDivisions": 16,
        "removeStartPoint": false,
        "removeEndPoint": true
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "a62fd8bb4315e14b",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        851.234375,
        557.05078125
      ]
    },
    "57719efa608cb21e": {
      "id": "57719efa608cb21e",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "dca82578a8564c0a",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2106.12109375,
        602.703125
      ]
    },
    "dca82578a8564c0a": {
      "id": "dca82578a8564c0a",
      "name": "bitbybit.occt.shapes.wire.createCircleWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 0.5
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "0f06d4ec04fd07df",
              "output": "result",
              "data": {}
            }
          ]
        },
        "radius": {
          "connections": [
            {
              "node": "8dffee3904c8f287",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1671.78125,
        566.796875
      ]
    },
    "0f06d4ec04fd07df": {
      "id": "0f06d4ec04fd07df",
      "name": "bitbybit.lists.flatten",
      "data": {
        "nrLevels": 1
      },
      "inputs": {
        "list": {
          "connections": [
            {
              "node": "939c1186c181fecf",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1280.88671875,
        660.3828125
      ]
    },
    "849d3bfdbd4911e9": {
      "id": "849d3bfdbd4911e9",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "57719efa608cb21e",
              "output": "list",
              "data": {}
            },
            {
              "node": "0b2f0d4c76044966",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2418.76953125,
        792.1953125
      ]
    },
    "fd8e63670bfd1416": {
      "id": "fd8e63670bfd1416",
      "name": "bitbybit.occt.shapes.wire.createCircleWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 0.5
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "b418f36e0486a30e",
              "output": "result",
              "data": {}
            }
          ]
        },
        "radius": {
          "connections": [
            {
              "node": "8dffee3904c8f287",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1646.644325994751,
        961.6936926543028
      ]
    },
    "0b2f0d4c76044966": {
      "id": "0b2f0d4c76044966",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "fd8e63670bfd1416",
              "output": "result",
              "data": {}
            },
            {
              "node": "80ac0fb25e01706b",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2022.8315021111964,
        1024.5294836922544
      ]
    },
    "80ac0fb25e01706b": {
      "id": "80ac0fb25e01706b",
      "name": "bitbybit.occt.shapes.wire.createCircleWire",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 0.5
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "e9f74732b51c6b03",
              "output": "result",
              "data": {}
            }
          ]
        },
        "radius": {
          "connections": [
            {
              "node": "8dffee3904c8f287",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1594.4302118033563,
        1368.313401502003
      ]
    },
    "e9f74732b51c6b03": {
      "id": "e9f74732b51c6b03",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": 0,
        "z": 20
      },
      "inputs": {},
      "position": [
        1065.2575925689407,
        1406.5138090143846
      ]
    },
    "b418f36e0486a30e": {
      "id": "b418f36e0486a30e",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": 0,
        "z": -20
      },
      "inputs": {},
      "position": [
        975.1812011834916,
        977.4489252911271
      ]
    },
    "5aef67e22dd289a6": {
      "id": "5aef67e22dd289a6",
      "name": "bitbybit.occt.operations.extrude",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "0ba32e92e5cd8afd",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        3617.582062568161,
        843.10608132683
      ]
    },
    "8dffee3904c8f287": {
      "id": "8dffee3904c8f287",
      "name": "bitbybit.math.numberSlider",
      "data": {
        "options": {
          "min": 0.1,
          "max": 1,
          "step": 0.1,
          "width": 350
        },
        "number": 0.3
      },
      "inputs": {},
      "position": [
        -94.39902526022627,
        1082.3366291815446
      ]
    },
    "2b63ce566f4c2d96": {
      "id": "2b63ce566f4c2d96",
      "name": "bitbybit.babylon.scene.enableSkybox",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "skybox": "clearSky",
        "size": 1000,
        "blur": 0.1,
        "environmentIntensity": 0.7
      },
      "inputs": {},
      "position": [
        2618.4532097237948,
        1633.4531097024205
      ]
    },
    "f443bf2c99a697e7": {
      "id": "f443bf2c99a697e7",
      "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": [
        2218.858961070235,
        1693.95618255574
      ]
    },
    "604370f2fcd25db6": {
      "id": "604370f2fcd25db6",
      "name": "bitbybit.draw.drawAnyAsync",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "entity": {
          "connections": [
            {
              "node": "5aef67e22dd289a6",
              "output": "result",
              "data": {}
            }
          ]
        },
        "options": {
          "connections": [
            {
              "node": "c93e8357245b317b",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        4316.339323098186,
        927.5071920807912
      ]
    },
    "c93e8357245b317b": {
      "id": "c93e8357245b317b",
      "name": "bitbybit.draw.optionsOcctShape",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "faceOpacity": 1,
        "edgeOpacity": 1,
        "edgeColour": "#ffffff",
        "faceColour": "#6b70ff",
        "vertexColour": "#ff00ff",
        "edgeWidth": 2,
        "vertexSize": 0.03,
        "drawEdges": true,
        "drawFaces": true,
        "drawVertices": false,
        "precision": 0.01,
        "drawEdgeIndexes": false,
        "edgeIndexHeight": 0.06,
        "edgeIndexColour": "#ff00ff",
        "drawFaceIndexes": false,
        "faceIndexHeight": 0.06,
        "faceIndexColour": "#0000ff"
      },
      "inputs": {},
      "position": [
        3783.1328720688057,
        1208.0869530185635
      ]
    }
  }
}