def test_export_primrevolve(self): a = Assembly("Site") / SimpleStru("SimpleStru") points = [(0, 0), (1, 0), (0.5, 1)] origin = (2, 2, 3) xdir = (0, 0, 1) normal = (1, 0, 0) rev_angle = 275 a.add_shape( PrimRevolve("VolRevolve", points, origin, xdir, normal, rev_angle)) a.to_ifc(test_folder / "world_shape_revolve.ifc")
def test_export_primcyl(self): a = Assembly("Site") / SimpleStru("SimpleStru") a.add_shape(PrimCyl("VolCyl", (2, 2, 2), (4, 4, 4), 0.2)) a.to_ifc(test_folder / "world_shape_cyl.ifc")
def test_export_primrextrude(self): a = Assembly("Site") / SimpleStru("SimpleStru") a.add_shape( PrimExtrude("VolExtrude", [(0, 0), (1, 0), (0.5, 1)], 2, (0, 0, 1), (2, 2, 2), (1, 0, 0))) a.to_ifc(test_folder / "world_shape_extrude.ifc")
def test_export_primbox(self): a = Assembly("Site") / SimpleStru("SimpleStru") a.add_shape(PrimBox("VolBox", p1, p2)) a.to_ifc(test_folder / "world_shape_box.ifc")