git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

nodes/suture.json (1.3K)

 1 {
 2  "name": "Suture",
 3  "type": "suture",
 4  "inputs": 2,
 5  "outputs": 1,
 6  "params": [
 7   { "name": "input", "label": "Input", "type": "node", "default": "", "description": "The surface to resolve. Points too close to the Against geometry are pushed out, and points in sustained contact are fused." },
 8   { "name": "against", "label": "Against", "type": "node", "default": "", "description": "The geometry the input is kept apart from, read as a surface. With nothing connected no contact is found and nothing is pushed." },
 9   { "name": "distance_threshold", "label": "Distance Threshold", "type": "slider", "default": "0.05", "min": 0.0, "max": 1.0, "step": 0.005, "description": "Contact distance in world units: nearer points are pushed back out to it, and fusing points within it merge. 0 turns the node off." },
10   { "name": "fusion_threshold", "label": "Fusion Threshold", "type": "spinbox", "default": "3", "min": 1.0, "max": 100.0, "step": 1.0, "description": "How many evaluations in a row a point must stay in contact, usually simulation steps, before it can fuse with nearby fusing points. Higher fuses later." },
11   { "name": "counter", "label": "Counter", "type": "attribute", "default": "contact", "description": "Integer point attribute counting consecutive steps in contact; it resets to 0 when contact breaks. Empty turns the node off.", "group": "output" }
12  ]
13 }