Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DEPTH = 15
a, b = 'X', 'Y'
for i in range(DEPTH):
a, b = ('(pow(%s,2) - pow(%s,2) + X)' % (a, b),
'(2*%s*%s + Y)' % (a, b))
# Render boundaries
cad.xmin = -2.2
cad.xmax = 0.7
cad.ymin = -1.2
cad.ymax = 1.2
cad.mm_per_unit = 25.4 # inch units
cad.type = "Boolean" # Boolean or RGB
cad.function = '(pow(%s,2) + pow(%s,2)) < 4' % (a,b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment