-
-
Save zeffii/2b80ef4ace21d2ca8218 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import numpy as np | |
def sv_main(n_items=1500): | |
in_sockets = [ | |
['s', 'n_items', n_items]] | |
points = np.random.uniform(0.0,1.0,size = (n_items,2)) | |
points *= (2, 10) | |
a = points[:,1] | |
b = points[:,0] | |
c = np.array([0.0 for i in b]) | |
d = np.column_stack((a,b,c)) | |
# consumables | |
Verts = [d.tolist()] | |
out_sockets = [ | |
['v', 'Verts', Verts] | |
] | |
return in_sockets, out_sockets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment