cosplay: Touhou/Houjuu Nue #1
|
@ -118,13 +118,13 @@ class Model:
|
||||||
Build all targets in this model
|
Build all targets in this model
|
||||||
"""
|
"""
|
||||||
output_dir = Path(output_dir)
|
output_dir = Path(output_dir)
|
||||||
output_dir.mkdir(exist_ok=True, parents=True)
|
|
||||||
for k, target in Target.methods(self).items():
|
for k, target in Target.methods(self).items():
|
||||||
output_file = output_dir / target.file_name(k)
|
output_file = output_dir / target.file_name(k)
|
||||||
if output_file.is_file():
|
if output_file.is_file():
|
||||||
if verbose >= 1:
|
if verbose >= 1:
|
||||||
print(f"{Fore.GREEN}Skipping{Style.RESET_ALL} {output_file}")
|
print(f"{Fore.GREEN}Skipping{Style.RESET_ALL} {output_file}")
|
||||||
continue
|
continue
|
||||||
|
output_file.parent.mkdir(exist_ok=True, parents=True)
|
||||||
|
|
||||||
if verbose >= 1:
|
if verbose >= 1:
|
||||||
print(f"{Fore.BLUE}Building{Style.RESET_ALL} {output_file}")
|
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,\
|
assert self.wing_root_radius > self.hs_hirth_joint.radius,\
|
||||||
"Wing root must be large enough to accomodate joint"
|
"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:
|
def harness_profile(self) -> Cq.Sketch:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue