Script: Collision Body Design

Collision Body Design picture
Type
Rete logo indicatorrete
Author
matas
Date Created
Nov 10, 2023, 10:10:14 PM
Last Edit Date
Jan 26, 2024, 12:08:51 PM

Project Information

This is a conceptual design of advanced spacecraft that shows off some of the new algorithms of the platform, such as splitting the wire into multiple pieces, selecting geometry by using boolean pattern matching, and adopting advanced lofting techniques.

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "a9fd000ff44a9239": {
      "id": "a9fd000ff44a9239",
      "name": "bitbybit.occt.shapes.wire.createEllipseWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radiusMinor": 1.3,
        "radiusMajor": 4.3
      },
      "inputs": {},
      "position": [
        -357.44127024453,
        -2.1749381071296083
      ]
    },
    "b2b92ec9f774d5f6": {
      "id": "b2b92ec9f774d5f6",
      "name": "bitbybit.occt.shapes.wire.createEllipseWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radiusMinor": 1.3,
        "radiusMajor": 2.3
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "a77ba587381f2c12",
              "output": "result",
              "data": {}
            }
          ]
        },
        "direction": {
          "connections": [
            {
              "node": "80310139a92f86e4",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -274.90836071482767,
        573.7647511368502
      ]
    },
    "a77ba587381f2c12": {
      "id": "a77ba587381f2c12",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 1.5,
        "y": 2,
        "z": 0
      },
      "inputs": {},
      "position": [
        -604.4762056519587,
        393.1215493172377
      ]
    },
    "80310139a92f86e4": {
      "id": "80310139a92f86e4",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 1,
        "y": 0,
        "z": 0
      },
      "inputs": {},
      "position": [
        -620.8884240264022,
        699.8753747165335
      ]
    },
    "16e5dc9693e9c666": {
      "id": "16e5dc9693e9c666",
      "name": "bitbybit.occt.shapes.wire.createEllipseWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radiusMinor": 0.8,
        "radiusMajor": 4.3
      },
      "inputs": {
        "center": {
          "connections": [
            {
              "node": "a57d46a68d488fee",
              "output": "result",
              "data": {}
            }
          ]
        },
        "direction": {
          "connections": [
            {
              "node": "bfa2819e3e15bee9",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -283.59119638501346,
        996.5901282359631
      ]
    },
    "a57d46a68d488fee": {
      "id": "a57d46a68d488fee",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 4,
        "y": 4,
        "z": 0
      },
      "inputs": {},
      "position": [
        -627.6776891231882,
        1098.8334543581805
      ]
    },
    "13d8f203b343e84a": {
      "id": "13d8f203b343e84a",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "dd83c95ce7575628",
              "output": "result",
              "data": {}
            },
            {
              "node": "94d597f48f78e3e1",
              "output": "result",
              "data": {}
            },
            {
              "node": "e961594f1fcd1c97",
              "output": "result",
              "data": {}
            },
            {
              "node": "602ea03d16b32c36",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2394.7931633101566,
        587.9765789460932
      ]
    },
    "bfa2819e3e15bee9": {
      "id": "bfa2819e3e15bee9",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 1,
        "y": 0,
        "z": 0
      },
      "inputs": {},
      "position": [
        -629.0057026006509,
        1373.4635096321338
      ]
    },
    "acb72e74d977b573": {
      "id": "acb72e74d977b573",
      "name": "bitbybit.occt.operations.loftAdvanced",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "makeSolid": false,
        "closed": true,
        "periodic": true,
        "straight": false,
        "nrPeriodicSections": 60,
        "useSmoothing": false,
        "maxUDegree": 3,
        "tolerance": 0.1,
        "parType": "approxCentripetal"
      },
      "inputs": {
        "shapes": {
          "connections": [
            {
              "node": "13d8f203b343e84a",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        3514.135708676571,
        494.2557763638911
      ]
    },
    "5fe46abce01aad2f": {
      "id": "5fe46abce01aad2f",
      "name": "bitbybit.draw.drawAnyAsync",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "entity": {
          "connections": [
            {
              "node": "acb72e74d977b573",
              "output": "result",
              "data": {}
            }
          ]
        },
        "options": {
          "connections": [
            {
              "node": "faed44e927dbff7f",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        4363.697340078164,
        656.667399451373
      ]
    },
    "e6f3d376cc526d6a": {
      "id": "e6f3d376cc526d6a",
      "name": "bitbybit.occt.shapes.wire.createEllipseWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radiusMinor": 0.8,
        "radiusMajor": 1.3
      },
      "inputs": {
        "direction": {
          "connections": [
            {
              "node": "edfc5d5c14e5660a",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -135.4885660824471,
        1399.2273206073723
      ]
    },
    "26ab242fe6d10e74": {
      "id": "26ab242fe6d10e74",
      "name": "bitbybit.occt.transforms.rotate",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "angle": 180
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "e6f3d376cc526d6a",
              "output": "result",
              "data": {}
            }
          ]
        },
        "axis": {
          "connections": [
            {
              "node": "a56e29dcc21be814",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        300.89181350032567,
        1441.0418227173102
      ]
    },
    "a56e29dcc21be814": {
      "id": "a56e29dcc21be814",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": 1,
        "z": 0
      },
      "inputs": {},
      "position": [
        -79.67799173051311,
        1786.3289833764843
      ]
    },
    "6eb7c3574405c023": {
      "id": "6eb7c3574405c023",
      "name": "bitbybit.occt.transforms.translate",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "26ab242fe6d10e74",
              "output": "result",
              "data": {}
            }
          ]
        },
        "translation": {
          "connections": [
            {
              "node": "a8848b231e5bc3fc",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        691.0087552920731,
        1541.158975912393
      ]
    },
    "a8848b231e5bc3fc": {
      "id": "a8848b231e5bc3fc",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 12,
        "y": -3,
        "z": 0
      },
      "inputs": {},
      "position": [
        275.85489228265743,
        1755.06813724773
      ]
    },
    "edfc5d5c14e5660a": {
      "id": "edfc5d5c14e5660a",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": -1,
        "z": 0
      },
      "inputs": {},
      "position": [
        -633.8397775836568,
        1752.3571708341608
      ]
    },
    "bf163dd1c5edceaa": {
      "id": "bf163dd1c5edceaa",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "a9fd000ff44a9239",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1216.563700757973,
        963.2831480297527
      ]
    },
    "a0a594b31a661de5": {
      "id": "a0a594b31a661de5",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "b2b92ec9f774d5f6",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1204.8681074511394,
        1088.3647858520035
      ]
    },
    "2e05c24c41296be9": {
      "id": "2e05c24c41296be9",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "16e5dc9693e9c666",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1204.4288555418393,
        1233.3683261539677
      ]
    },
    "0bd1a95cf9c2995a": {
      "id": "0bd1a95cf9c2995a",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "6eb7c3574405c023",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1208.6828436458052,
        1370.156836846757
      ]
    },
    "faed44e927dbff7f": {
      "id": "faed44e927dbff7f",
      "name": "bitbybit.draw.optionsOcctShape",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "faceOpacity": 1,
        "edgeOpacity": 1,
        "edgeColour": "#ffffff",
        "faceColour": "#8c00ff",
        "edgeWidth": 2,
        "drawEdges": false,
        "drawFaces": true,
        "precision": 5,
        "drawEdgeIndexes": false,
        "edgeIndexHeight": 0.06,
        "edgeIndexColour": "ff00ff",
        "drawFaceIndexes": false,
        "faceIndexHeight": 0.06,
        "faceIndexColour": "#0000ff"
      },
      "inputs": {},
      "position": [
        3989.440504515024,
        888.6014924802109
      ]
    },
    "23b29081f3d0fc61": {
      "id": "23b29081f3d0fc61",
      "name": "bitbybit.babylon.scene.adjustActiveArcRotateCamera",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "lowerBetaLimit": 1,
        "upperBetaLimit": 179,
        "angularSensibilityX": 1000,
        "angularSensibilityY": 1000,
        "maxZ": 1000,
        "panningSensibility": 1000,
        "wheelPrecision": 10
      },
      "inputs": {
        "position": {
          "connections": [
            {
              "node": "af38668dd2651bc1",
              "output": "result",
              "data": {}
            }
          ]
        },
        "lookAt": {
          "connections": [
            {
              "node": "af809aeabe19c86c",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -559.208664206963,
        2859.8648654884973
      ]
    },
    "af38668dd2651bc1": {
      "id": "af38668dd2651bc1",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 15,
        "y": 3,
        "z": 12
      },
      "inputs": {},
      "position": [
        -1021.4291001696338,
        2890.0426931730985
      ]
    },
    "af809aeabe19c86c": {
      "id": "af809aeabe19c86c",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 5,
        "y": -1,
        "z": 0
      },
      "inputs": {},
      "position": [
        -1032.9034186740537,
        3184.1533912558707
      ]
    },
    "dd83c95ce7575628": {
      "id": "dd83c95ce7575628",
      "name": "bitbybit.occt.shapes.wire.reversedWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "bf163dd1c5edceaa",
              "output": "item",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1553.1108324568527,
        947.132410288635
      ]
    },
    "94d597f48f78e3e1": {
      "id": "94d597f48f78e3e1",
      "name": "bitbybit.occt.shapes.wire.reversedWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "a0a594b31a661de5",
              "output": "item",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1549.4624088778503,
        1139.417660319788
      ]
    },
    "e961594f1fcd1c97": {
      "id": "e961594f1fcd1c97",
      "name": "bitbybit.occt.shapes.wire.reversedWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "2e05c24c41296be9",
              "output": "item",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1553.287554664325,
        1325.7333637127344
      ]
    },
    "602ea03d16b32c36": {
      "id": "602ea03d16b32c36",
      "name": "bitbybit.occt.shapes.wire.reversedWire",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "0bd1a95cf9c2995a",
              "output": "item",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1553.8441994468747,
        1512.258720428203
      ]
    }
  }
}