From 0e5445ebb52a0ac8a5f6b0226b6c8e6135477af1 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 20 Jun 2024 23:45:24 -0700 Subject: [PATCH] feat: Nue wing R1 --- nhf/touhou/houjuu_nue/__init__.py | 10 ++++++++++ nhf/touhou/houjuu_nue/test.py | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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()