Created
January 2, 2019 13:33
-
-
Save mkeeter/0d5688eec4ae52ea1cf7d2700d5b5426 to your computer and use it in GitHub Desktop.
This file contains 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
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