Created
May 5, 2020 07:50
-
-
Save zeffii/1a38002143eff7204efc03e806fd7cb0 to your computer and use it in GitHub Desktop.
Sverchok.0.6.0.0 | Blender.2.83(sub15) | NodeTree | 2020.05.05 | 09:50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"export_version": "0.079", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Convex Hull": { | |
"bl_idname": "SvConvexHullNodeMK2", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
470.99163818359375, | |
321.107177734375 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Scripted Node Lite": { | |
"bl_idname": "SvScriptNodeLite", | |
"color": [ | |
0.0, | |
0.800000011920929, | |
0.949999988079071 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
257.3149108886719, | |
266.69140625 | |
], | |
"params": { | |
"float_list": [ | |
0.0, | |
0.0, | |
1.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0 | |
], | |
"halt_updates": 0, | |
"inject_params": 0, | |
"injected_state": 0, | |
"int_list": [ | |
400, | |
4, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
], | |
"script_name": " numpy_sphere_fib.py", | |
"script_str": "\"\"\"\nin samples s d=400 n=2\nin rseed s d=4 n=2\nin mult s d=1.0 n=2\nout verts_out v\n\"\"\"\nimport numpy as np\nimport math, random\n\ndef fibonacci_sphere_np(samples, rseed):\n indices = np.arange(samples) \n rnd = 1.\n random.seed(rseed)\n rnd = random.random() * samples\n offset = 2./samples\n increment = math.pi * (3. - math.sqrt(5.))\n\n y = ((indices * offset) - 1) + (offset / 2)\n r = np.sqrt(1 - pow(y, 2))\n phi = ((indices + rnd) % samples) * increment \n x = np.cos(phi) * r\n z = np.sin(phi) * r\n return (np.vstack([x,y,z])*mult).T.tolist()\n \np = fibonacci_sphere_np(samples, rseed)\nverts_out.extend([p])\n" | |
}, | |
"snlite_ui": [], | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"Temporal Viewer": { | |
"bl_idname": "SvVDExperimental", | |
"color": [ | |
0.6661409735679626, | |
0.20302200317382812, | |
0.0 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "Temporal Viewer", | |
"location": [ | |
693.7382202148438, | |
344.15350341796875 | |
], | |
"params": {}, | |
"use_custom_color": true, | |
"width": 140.0 | |
} | |
}, | |
"update_lists": [ | |
[ | |
"Scripted Node Lite", | |
0, | |
"Convex Hull", | |
0 | |
], | |
[ | |
"Convex Hull", | |
0, | |
"Temporal Viewer", | |
0 | |
], | |
[ | |
"Convex Hull", | |
1, | |
"Temporal Viewer", | |
2 | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment