Skip to content

Instantly share code, notes, and snippets.

@mkeeter
Created January 2, 2019 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkeeter/0d5688eec4ae52ea1cf7d2700d5b5426 to your computer and use it in GitHub Desktop.
Save mkeeter/0d5688eec4ae52ea1cf7d2700d5b5426 to your computer and use it in GitHub Desktop.
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