mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove obsolete "Commands" directory
This commit is contained in:
parent
b9f99a3c56
commit
918d4b41c8
3 changed files with 0 additions and 48 deletions
|
@ -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('
|
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue