Skip to content

Commit

Permalink
Added extra rotations so you don't need to rotate in your slicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Andygd018 committed May 30, 2020
1 parent 074f877 commit 0977dd0
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions create_polyhedral_dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
save_files = False

tweaks_for_font = {
# "num_version": "1",
"num_version": "1",
"num_scale":
{
"d6": (None, None, None),
Expand All @@ -43,6 +43,7 @@
"d10-double-vertical": (None, None, None),
"d12": (None, None, None),
"d20": (None, None, None)

}
}

Expand Down Expand Up @@ -88,7 +89,7 @@
"num_location": (0, 0, 8.6),
"num_scale": (625, 625, 1),
"final_location": (40, 30, 0),
"number_height": 4,
"number_height": 2,
"rotations":
[
# {"number": "underscore", "x": 0, "y": 0, "z": 0},
Expand All @@ -102,7 +103,10 @@
{"number": "", "x": 0, "y": 0, "z": 90},
{"number": "5", "x": 90, "y": 0, "z": 0},
{"number": "", "x": 0, "y": 0, "z": 90},
{"number": "6", "x": 0, "y": 0, "z": 0}
{"number": "6", "x": 0, "y": 0, "z": 0},
# Prep for printing
{"number": "", "x": 45, "y": 0, "z": 0},
{"number": "", "x": 0, "y": 45, "z": 0}
]
},
# {
Expand Down Expand Up @@ -171,7 +175,7 @@
"num_location": (0, 6, 5.6),
"num_scale": (400, 400, 1),
"final_location": (0, 60, 0),
"number_height": 4
"number_height": 2
},
{
"name": "d8",
Expand All @@ -197,12 +201,16 @@
{"number": "", "x": -35.265, "y": 0, "z": 0},

{"number": "1", "x": 35.265, "y": 90, "z": 0},
{"number": "", "x": -35.265, "y": 0, "z": 0}
{"number": "", "x": -35.265, "y": 0, "z": 0},

# Prep for printing
{"number": "", "x": -55, "y": 0, "z": 0},
{"number": "", "x": 180, "y": 0, "z": 0}
],
"num_location": (0, 0, 8.6),
"num_scale": (500, 500, 1),
"final_location": (40, -30, 0),
"number_height": 4
"number_height": 2
},
{
"name": "d10-single",
Expand Down Expand Up @@ -236,12 +244,15 @@
{"number": "", "x": -35.7, "y": 0, "z": 0},

{"number": "5", "x": 35.7, "y": 72, "z": 0},
{"number": "", "x": -35.7, "y": 0, "z": 0}
{"number": "", "x": -35.7, "y": 0, "z": 0},
# Prep for printing
{"number": "", "x": -55, "y": 0, "z": 0},
{"number": "", "x": 180, "y": 0, "z": 0}
],
"num_location": (0, -0.75, 9),
"num_scale": (500, 500, 1),
"final_location": (0, -60, 0),
"number_height": 4
"number_height": 2
},
{
"name": "d10-double-vertical", # Numbers face the opposing end of the dice
Expand Down Expand Up @@ -274,12 +285,15 @@
{"number": "", "x": -35.7, "y": 0, "z": 0},

{"number": "50", "x": 35.7, "y": 72, "z": 0},
{"number": "", "x": -35.7, "y": 0, "z": 0}
{"number": "", "x": -35.7, "y": 0, "z": 0},
# Prep for printing
{"number": "", "x": -55, "y": 0, "z": 0},
{"number": "", "x": 180, "y": 0, "z": 0}
],
"num_location": (0, -1.5, 9), # (0, -2.5, 9),
"num_scale": (375, 375, 1),
"final_location": (-40, -30, 0),
"number_height": 4
"number_height": 2
},
# {
# "name": "d10-double-horizontal", # Numbers face the next face around on the same side
Expand Down Expand Up @@ -368,11 +382,15 @@
{"number": "7", "x": 63.43, "y": 0, "z": -72},
{"number": "", "x": -63.43, "y": 0, "z": 0},
{"number": "5", "x": 63.43, "y": 0, "z": -72},
# Prep for printing
{"number": "", "x": 0, "y": 0, "z": 18},
{"number": "", "x": 0, "y": -37.3781, "z": 0},
{"number": "", "x": 180, "y": 0, "z": 0}
],
"num_location": (0, 0, 9.75),
"num_scale": (500, 500, 1),
"final_location": (-40, 30, 0),
"number_height": 4
"number_height": 2
},
{
"name": "d20",
Expand Down Expand Up @@ -460,12 +478,15 @@
{"number": "", "x": 0, "y": 0, "z": -120},

{"number": "", "x": 0, "y": 0, "z": -60},
{"number": "", "x": -180, "y": 0, "z": 0}
{"number": "", "x": -180, "y": 0, "z": 0},
# Prep for printing
{"number": "", "x": 0, "y": 0, "z": 30},
{"number": "", "x": 0, "y": -37.5, "z": 0}
],
"num_location": (0, 0, 11),
"num_scale": (280, 280, 000),
"final_location": (0, 0, 0),
"number_height": 4
"number_height": 2
}
]

Expand Down

0 comments on commit 0977dd0

Please sign in to comment.