diff --git a/nhf/touhou/houjuu_nue/__init__.py b/nhf/touhou/houjuu_nue/__init__.py index f9ee0ee..c4813ee 100644 --- a/nhf/touhou/houjuu_nue/__init__.py +++ b/nhf/touhou/houjuu_nue/__init__.py @@ -54,6 +54,16 @@ class Parameters: ) 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, side_width=30, side_height=100) -> Cq.Shape: diff --git a/nhf/touhou/houjuu_nue/test.py b/nhf/touhou/houjuu_nue/test.py index 0a9f148..7124936 100644 --- a/nhf/touhou/houjuu_nue/test.py +++ b/nhf/touhou/houjuu_nue/test.py @@ -6,9 +6,9 @@ class Test(unittest.TestCase): def test_wing_root(self): p = M.Parameters() p.wing_root() - def test_wing_profiles(self): + def test_wings(self): p = M.Parameters() - p.wing_r1_profile() + p.wing_r1() if __name__ == '__main__': unittest.main()