feat: Build trident handle

This commit is contained in:
Leni Aniva 2024-07-04 01:13:22 -07:00
parent 66fc02ef44
commit 80fb2e997d
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 8 additions and 1 deletions

View File

@ -118,13 +118,13 @@ class Model:
Build all targets in this model
"""
output_dir = Path(output_dir)
output_dir.mkdir(exist_ok=True, parents=True)
for k, target in Target.methods(self).items():
output_file = output_dir / target.file_name(k)
if output_file.is_file():
if verbose >= 1:
print(f"{Fore.GREEN}Skipping{Style.RESET_ALL} {output_file}")
continue
output_file.parent.mkdir(exist_ok=True, parents=True)
if verbose >= 1:
print(f"{Fore.BLUE}Building{Style.RESET_ALL} {output_file}")

View File

@ -112,6 +112,13 @@ class Parameters(Model):
assert self.wing_root_radius > self.hs_hirth_joint.radius,\
"Wing root must be large enough to accomodate joint"
@target(name="trident/handle-connector")
def handle_connector(self):
return self.trident_handle.connector()
@target(name="trident/handle-insertion")
def handle_insertion(self):
return self.trident_handle.insertion()
def harness_profile(self) -> Cq.Sketch:
"""