Script: Drawing edge indexes on the solid

Drawing edge indexes on the solid picture
Type
Rete logo indicatorrete
Author
matas
Date Created
Feb 21, 2024, 2:49:37 PM
Last Edit Date
Feb 21, 2024, 5:13:33 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": {
    "88e0333871f34e09": {
      "id": "88e0333871f34e09",
      "name": "bitbybit.occt.shapes.solid.createBox",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "width": 5,
        "length": 8,
        "height": 10
      },
      "inputs": {},
      "position": [
        -846.1000022577027,
        778.8093041611836
      ]
    },
    "76f7f3e52d369e97": {
      "id": "76f7f3e52d369e97",
      "name": "bitbybit.draw.drawAnyAsync",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "entity": {
          "connections": [
            {
              "node": "88e0333871f34e09",
              "output": "result",
              "data": {}
            }
          ]
        },
        "options": {
          "connections": [
            {
              "node": "7561c973c8b2bfaa",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -431.68995025210455,
        1062.6003327458436
      ]
    },
    "7561c973c8b2bfaa": {
      "id": "7561c973c8b2bfaa",
      "name": "bitbybit.draw.optionsOcctShape",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "faceOpacity": 0.3,
        "edgeOpacity": 0.3,
        "edgeColour": "#ffffff",
        "faceColour": "#ff0000",
        "edgeWidth": 2,
        "drawEdges": true,
        "drawFaces": true,
        "precision": 0.01,
        "drawEdgeIndexes": true,
        "edgeIndexHeight": 0.24,
        "edgeIndexColour": "#ff00ff",
        "drawFaceIndexes": false,
        "faceIndexHeight": 0.06,
        "faceIndexColour": "#0000ff"
      },
      "inputs": {},
      "position": [
        -903.5179710077027,
        1229.3171166611837
      ]
    }
  }
}