def test_poly_revolve(self): bm = Beam("MyBeam", (0, 0, 0), (2, 0, 0), Section("myIPE", from_str="IPE400")) a = Assembly("Test") / [Part("MyPart") / bm] origin = (1.5, 0, 0.05) normal = (1, 0, 0) xdir = (0, 1, 0) rev_angle = 180 points2d = [(1, 0.0), (1.2, 0.0), (1.1, 0.2)] bm.add_penetration(PrimRevolve("my_pen_revolved", points2d, origin, xdir, normal, rev_angle)) a.to_stp(test_folder / "penetrations_revolve.stp") a.to_ifc(test_folder / "penetrations_revolve.ifc")
def test_simple_stru(self): a = Assembly("MyTest") p = SimpleStru("MyPart") a.add_part(p) a.to_stp(test_folder / "MySimpleStru.stp")