Script: Difference solids

Difference solids picture
Type
Rete logo indicatorrete
Author
matas
Date Created
Feb 23, 2024, 7:25:07 PM
Last Edit Date
Feb 23, 2024, 8:28:39 PM

Project Information

This project contains demo scripts for Rete editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "8d20d5373e2042b9": {
      "id": "8d20d5373e2042b9",
      "name": "bitbybit.occt.shapes.solid.createBox",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "width": 5,
        "length": 8,
        "height": 5
      },
      "inputs": {},
      "position": [
        -962.7244843514161,
        953.4668432455264
      ]
    },
    "b3da0ff1dce92565": {
      "id": "b3da0ff1dce92565",
      "name": "bitbybit.occt.shapes.solid.createCylinder",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 3,
        "height": 7
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "0e04186c2298548e",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -996.4690833108496,
        1304.5010230126259
      ]
    },
    "0e04186c2298548e": {
      "id": "0e04186c2298548e",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 3,
        "y": 0,
        "z": 3
      },
      "inputs": {},
      "position": [
        -1361.617583593442,
        1325.4150656353868
      ]
    },
    "117049b289c1d142": {
      "id": "117049b289c1d142",
      "name": "bitbybit.occt.shapes.solid.createSphere",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 3
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "ceecc90b9500b0e0",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -970.6006661329077,
        1672.181268989269
      ]
    },
    "ceecc90b9500b0e0": {
      "id": "ceecc90b9500b0e0",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": -1.5,
        "y": 1.5,
        "z": -5
      },
      "inputs": {},
      "position": [
        -1315.516361464423,
        1641.7722755088807
      ]
    },
    "a27e5ef5cb846af2": {
      "id": "a27e5ef5cb846af2",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "b3da0ff1dce92565",
              "output": "result",
              "data": {}
            },
            {
              "node": "117049b289c1d142",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -568.9054803751495,
        1365.5769853133597
      ]
    },
    "a36ae5e09a7219b5": {
      "id": "a36ae5e09a7219b5",
      "name": "bitbybit.occt.booleans.difference",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "keepEdges": false
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "8d20d5373e2042b9",
              "output": "result",
              "data": {}
            }
          ]
        },
        "shapes": {
          "connections": [
            {
              "node": "a27e5ef5cb846af2",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -223.80764346729455,
        1210.2675671422721
      ]
    }
  }
}