Commit 0ff8f24e by Neil Gershenfeld

### wip

parent 327b186d
Pipeline #4774 passed with stage
in 1 second
 ... @@ -68,14 +68,14 @@ X = outer(ones(y.size),x) ... @@ -68,14 +68,14 @@ X = outer(ones(y.size),x) Y = outer(y,ones(x.size)) Y = outer(y,ones(x.size)) if (len(frep['layers']) == 1): if (len(frep['layers']) == 1): Z = frep['layers'][0] Z = frep['layers'][0] print " z =",Z print(" z =",Z) f = eval(frep['function']).astype(uint32) f = eval(frep['function']).astype(uint32) else: else: f = zeros((y.size,x.size),dtype=uint32) f = zeros((y.size,x.size),dtype=uint32) zmin = min(frep['layers']) zmin = min(frep['layers']) zmax = max(frep['layers']) zmax = max(frep['layers']) for Z in frep['layers']: for Z in frep['layers']: print " z =",Z print(" z =",Z) i = int(255*(Z-zmin)/(zmax-zmin)) | (255 << 8) | (255 << 16) i = int(255*(Z-zmin)/(zmax-zmin)) | (255 << 8) | (255 << 16) flayer = i & (eval(frep['function'])).astype(uint32) flayer = i & (eval(frep['function'])).astype(uint32) f = f + flayer f = f + flayer ... ...
 ... @@ -20,10 +20,10 @@ ... @@ -20,10 +20,10 @@ # uncomment for desired output: # uncomment for desired output: # # output = "top, labels, and exterior" #output = "top, labels, and exterior" #output = "top, labels, holes, and exterior" #output = "top, labels, holes, and exterior" #output = "top, bottom, labels, and exterior" #output = "top, bottom, labels, and exterior" #output = "top, bottom, labels, holes, and exterior" output = "top, bottom, labels, holes, and exterior" #output = "top traces" #output = "top traces" #output = "top traces and exterior" #output = "top traces and exterior" #output = "bottom traces reversed" #output = "bottom traces reversed" ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!