Clownpiece stub
This commit is contained in:
parent
70a157a0ab
commit
35a44e5be3
|
@ -0,0 +1,27 @@
|
||||||
|
import nhf.touhou.clownpiece.torch as MT
|
||||||
|
|
||||||
|
from nhf.build import Model, TargetKind, target, assembly, submodel
|
||||||
|
import nhf.utils
|
||||||
|
|
||||||
|
from dataclasses import dataclass, field
|
||||||
|
import cadquery as Cq
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class Parameters(Model):
|
||||||
|
|
||||||
|
torch: MT.Torch = field(default_factory=lambda: MT.Torch())
|
||||||
|
|
||||||
|
def __post_init__(self):
|
||||||
|
super().__init__(name="clownpiece")
|
||||||
|
|
||||||
|
@submodel(name="torch")
|
||||||
|
def submodel_torch(self) -> Model:
|
||||||
|
return self.torch
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys
|
||||||
|
|
||||||
|
p = Parameters()
|
||||||
|
if len(sys.argv) == 1:
|
||||||
|
p.build_all()
|
||||||
|
sys.exit(0)
|
|
@ -0,0 +1,23 @@
|
||||||
|
from nhf import Material, Role
|
||||||
|
from nhf.build import Model, target, assembly, TargetKind
|
||||||
|
import nhf.utils
|
||||||
|
|
||||||
|
import math
|
||||||
|
from dataclasses import dataclass, field
|
||||||
|
from typing import Tuple
|
||||||
|
import cadquery as Cq
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class Torch(Model):
|
||||||
|
"""
|
||||||
|
The torch modeled after Lady Liberty's Torch
|
||||||
|
"""
|
||||||
|
diam_pan: float = 200.0
|
||||||
|
diam_handle: float = 80.0
|
||||||
|
height_pan: float = 30.0
|
||||||
|
height_handle: float = 300.0
|
||||||
|
|
||||||
|
material_handle: Material = Material.PLASTIC_PLA
|
||||||
|
|
||||||
|
def __post_init__(self):
|
||||||
|
pass
|
Loading…
Reference in New Issue