cosplay: Touhou/Houjuu Nue #4
|
@ -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}")
|
||||
|
|
|
@ -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:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue