27 lines
580 B
Python
27 lines
580 B
Python
|
from dataclasses import dataclass, field
|
||
|
import cadquery as Cq
|
||
|
from nhf.build import Model, TargetKind, target, assembly, submodel
|
||
|
import nhf.touhou.shiki_eiki.rod as MR
|
||
|
import nhf.utils
|
||
|
|
||
|
@dataclass
|
||
|
class Parameters(Model):
|
||
|
|
||
|
rod: MR.Rod = field(default_factory=lambda: MR.Rod())
|
||
|
|
||
|
def __post_init__(self):
|
||
|
super().__init__(name="shiki-eiki")
|
||
|
|
||
|
@submodel(name="rod")
|
||
|
def submodel_rod(self) -> Model:
|
||
|
return self.rod
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
import sys
|
||
|
|
||
|
p = Parameters()
|
||
|
if len(sys.argv) == 1:
|
||
|
p.build_all()
|
||
|
sys.exit(0)
|