diff --git a/Commands/TransferMeshCommand.py b/Commands/TransferMeshCommand.py index 4e93113640..93349d853d 100644 --- a/Commands/TransferMeshCommand.py +++ b/Commands/TransferMeshCommand.py @@ -6,4 +6,7 @@ class TransferMeshCommand(Command): super(TransferMeshCommand,self).__init__() def send(self, mesh_data): - vertices = mesh_data.getVerticesList() \ No newline at end of file + vertices = mesh_data.getVertices() + command = TransferVertCommand(self._socket) + for vertex in vertices: + command.send(vertex) \ No newline at end of file diff --git a/Commands/TransferVertCommand.py b/Commands/TransferVertCommand.py index 9d58191cd6..ec2fb52bf6 100644 --- a/Commands/TransferVertCommand.py +++ b/Commands/TransferVertCommand.py @@ -4,5 +4,5 @@ class TransferVertCommand(Command): def __init__(self): super(TransferVertCommand,self).__init__() - def send(self): - self._socket.sendData(self._id, self._data) \ No newline at end of file + def send(self, vertex): + self._socket.sendData(self._id, vertex.toString()) \ No newline at end of file diff --git a/__init__.py b/__init__.py index 7cd38610e4..c050072ecb 100644 --- a/__init__.py +++ b/__init__.py @@ -5,6 +5,7 @@ def getMetaData(): return { "name": "CuraBackend", "type": "Backend" } def register(app): + engine = CuraEngineBackend() app.setBackend(engine) - engine.addCommand(TransferMeshCommand()) \ No newline at end of file + #engine.addCommand(TransferMeshCommand()) \ No newline at end of file