Skip to content

Commit

Permalink
rename args
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-a-cyborg committed Feb 18, 2025
1 parent 57440a9 commit caca187
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions octahedroflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@
parser.set_defaults(branded=BRANDED_DEFAULT)

# Use parse_known_args to ignore extra args (e.g. Colab's -f flag)
args, unknown = parser.parse_known_args()
local_args, unknown = parser.parse_known_args()

BRANDED = args.branded
NOZZLE_DIAMETER = args.nozzle_diameter
LAYER_HEIGHT = args.layer_height
FINAL_ORDER = args.iterations
BRANDED = local_args.branded
NOZZLE_DIAMETER = local_args.nozzle_diameter
LAYER_HEIGHT = local_args.layer_height
FINAL_ORDER = local_args.iterations
HEIGHT_FACTOR = 0.7071 # see: https://www.calculatorsoup.com/calculators/geometry-solids/pyramid.php

# -----------------------------------------------------------------------------
# Compute EDGE_SIZE directly from desired height
# -----------------------------------------------------------------------------
EDGE_SIZE = args.desired_height / ((2**FINAL_ORDER) * (NOZZLE_DIAMETER * 4) * HEIGHT_FACTOR * 2)
EDGE_SIZE = local_args.desired_height / ((2**FINAL_ORDER) * (NOZZLE_DIAMETER * 4) * HEIGHT_FACTOR * 2)

GAP_SIZE = 0.01
RIB_WIDTH = NOZZLE_DIAMETER * 2
Expand Down

0 comments on commit caca187

Please sign in to comment.