diff --git a/Commands/TransferMeshCommand.py b/Commands/TransferMeshCommand.py deleted file mode 100644 index 038b0fc03f..0000000000 --- a/Commands/TransferMeshCommand.py +++ /dev/null @@ -1,21 +0,0 @@ -from UM.Backend.Command import Command -from UM.plugins.UMBackendEngine.Commands.TransferVertCommand import TransferVertCommand - -class TransferMeshCommand(Command): - def __init__(self): - super(TransferMeshCommand,self).__init__() - - def send(self, mesh_data): - vertices = mesh_data.getVerticesList() - self._socket.sendCommand(0x00200001, len(vertices)) # Tell other side that mesh with num vertices is going to be sent. - - command = TransferVertCommand(self._socket) - command.send(vertices) - - - def recieve(self): - command_id, data = self._socket.getNextCommand() - if(command_id is not 0x00200001): - print("Wrong command!") - return None - unpacked_data = struct(' \ No newline at end of file diff --git a/Commands/TransferMeshesCommand.py b/Commands/TransferMeshesCommand.py deleted file mode 100644 index 706452c640..0000000000 --- a/Commands/TransferMeshesCommand.py +++ /dev/null @@ -1,19 +0,0 @@ -from UM.Backend.Command import Command -from UM.plugins.UMBackendEngine.Commands.TransferMeshCommand import TransferMeshCommand - -class TransferMeshesCommand(Command): - def __init__(self): - super(TransferMeshesCommand,self).__init__() - - def send(self, meshes): - self._socket.sendCommand(0x00200000,len(meshes)) # Tell other side that n meshes are going to be sent. - command = TransferMeshCommand(self._socket) - for mesh in meshes: - command.send(mesh) - - def recieve(self, num_meshes): - meshes = [] - command = TransferMeshCommand(self._socket) - for x in range(0,num_meshes): - meshes.append(command.recieve()) - return meshes \ No newline at end of file diff --git a/Commands/TransferVerticeListCommand.py b/Commands/TransferVerticeListCommand.py deleted file mode 100644 index 3390a9eb03..0000000000 --- a/Commands/TransferVerticeListCommand.py +++ /dev/null @@ -1,8 +0,0 @@ -from UM.Backend.Command import Command - -class TransferVerticeListCommand(Command): - def __init__(self): - super(TransferVertCommand,self).__init__() - - def send(self, vertices): - self._socet.sendCommandPacked(0x00200002, vertices.toString()) # Send vertex list \ No newline at end of file