cosplay: Touhou/Houjuu Nue #4
|
@ -54,6 +54,16 @@ class Parameters:
|
||||||
)
|
)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
def wing_r1(self) -> Cq.Solid:
|
||||||
|
profile = self.wing_r1_profile()
|
||||||
|
result = (
|
||||||
|
Cq.Workplane("XY")
|
||||||
|
.placeSketch(profile)
|
||||||
|
.extrude(self.panel_thickness)
|
||||||
|
.val()
|
||||||
|
)
|
||||||
|
return result
|
||||||
|
|
||||||
def wing_root(self,
|
def wing_root(self,
|
||||||
side_width=30,
|
side_width=30,
|
||||||
side_height=100) -> Cq.Shape:
|
side_height=100) -> Cq.Shape:
|
||||||
|
|
|
@ -6,9 +6,9 @@ class Test(unittest.TestCase):
|
||||||
def test_wing_root(self):
|
def test_wing_root(self):
|
||||||
p = M.Parameters()
|
p = M.Parameters()
|
||||||
p.wing_root()
|
p.wing_root()
|
||||||
def test_wing_profiles(self):
|
def test_wings(self):
|
||||||
p = M.Parameters()
|
p = M.Parameters()
|
||||||
p.wing_r1_profile()
|
p.wing_r1()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue