Commit 0ff8f24e authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

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