diff options
author | Robert Reed <robert.mc.reed@gmail.com> | 2021-08-25 22:55:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 22:55:17 -0700 |
commit | 9741a5f4731dac2f4792a4b451d9a96dd1c2a381 (patch) | |
tree | cf9fba2dd539e6890899c9d1b33ebb81093cd4f2 /src/model_builder.py | |
parent | d937d7beb2d7d898dd937cd9e024952b56607403 (diff) | |
parent | 27f491bda62c18e314380ddc6456962a2417b84b (diff) |
Merge branch 'master' into feat/bash
Diffstat (limited to 'src/model_builder.py')
-rw-r--r-- | src/model_builder.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/model_builder.py b/src/model_builder.py index d8a9fac..7cca387 100644 --- a/src/model_builder.py +++ b/src/model_builder.py @@ -3,13 +3,16 @@ import copy import importlib from generate_configuration import * -ENGINE = 'solid' -# ENGINE = 'cadquery' base = shape_config config_options = [ { + 'name': '{}', 'vars': ['ball_side'], # set ball side to both, other half can come from other renders + 'vals': ['both'], + 'val_names': [''] + }, + { 'name': '{}x{}', 'vars': ['nrows', 'ncols'], 'vals':[(4, 5), (5, 6)], # 'vals': [(4, 5), (4, 6), (5, 6), (6, 6)], @@ -21,8 +24,8 @@ config_options = [ }, { 'name': '{}TMB', 'vars': ['thumb_style'], - 'vals': ['DEFAULT', 'MINIDOX'], - 'val_names': ['DEF', 'MDOX'] + 'vals': ['DEFAULT', 'MINIDOX', 'TRACKBALL_ORBISSYL'], + 'val_names': ['DEF', 'MDOX', 'ORBY'] # 'vals': ['DEFAULT', 'MINI', 'CARBONFET', 'MINIDOX'], # 'val_names': ['DEF', 'MINI', 'CF', 'MDOX'] }, @@ -65,7 +68,9 @@ def create_config(config_options): else: n_input = vals - new_config['config_name'] += "_" + temp_opt['name'].format(*n_input) + name_ext = temp_opt['name'].format(*n_input) + if not name_ext == '': + new_config['config_name'] += "_" + name_ext new_config['save_dir'] = new_config['config_name'] new_configurations.append(new_config) configurations = new_configurations |