mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Changes to CuraEngineBackend plugin. The plugin does not work correctly, will visit later
This commit is contained in:
parent
2edd4da861
commit
ad33effbbe
4 changed files with 28 additions and 12 deletions
|
@ -6,7 +6,16 @@ class TransferMeshCommand(Command):
|
|||
super(TransferMeshCommand,self).__init__()
|
||||
|
||||
def send(self, mesh_data):
|
||||
vertices = mesh_data.getVertices()
|
||||
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)
|
||||
for vertex in vertices:
|
||||
command.send(vertex)
|
||||
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('
|
Loading…
Add table
Add a link
Reference in a new issue