def parse(self): obj = Object3D() for wvobj in self._load_meshes(): obj.add(wvobj.convert_to_mesh()) return obj
def test_position(self): obj = Object3D() obj.pos.x = 10 self.assertEqual(obj._position[0], 10) obj.position.y = 8 self.assertEqual(obj._position[1], 8) obj.pos.z = 3 self.assertEqual(obj._position[2], 3)
def get(self, section: str) -> Object3D: meshes = self._all_meshes[section] obj = Object3D() for mesh in meshes: obj.add(mesh) return obj
def test_creation(self): obj = Object3D()
def setUp(self): self.sandbox = Sandbox() self.obj = Object3D()