コード例 #1
0
ファイル: shape_test.py プロジェクト: martinstoeger/magnum.fd
 def setUp(self):
     self.cube1 = Cuboid((0, 0, 0), (1, 1, 1))
     self.cube2 = Cuboid((1, 1, 1), (2, 2, 2))
     self.cube3 = Cuboid((0.5, 0.5, 0.5), (1.5, 1.5, 1.5))
コード例 #2
0
ファイル: body_test.py プロジェクト: cmuhai/MicroMagnum
 def test_construction(self):
     body1 = Body("body1", Material.Py(), Cuboid((0, 0, 0), (1, 1, 1)))
     self.assertEqual(body1.id, "body1")
     self.assertTrue(isinstance(body1.material, Material))
     self.assertTrue(isinstance(body1.shape, Cuboid))
コード例 #3
0
ファイル: shape_test.py プロジェクト: martinstoeger/magnum.fd
 def setUp(self):
     self.cube = Cuboid((0, 0, 0), (1, 1, 1))
     self.mesh = RectangularMesh((10, 10, 10), (1.0, 1.0, 1.0))