Showing the changes to interface/src/VoxelSystem.cpp (1 of 11 files). Show all
Unified · Split
| @@ -113,15 +113,15 @@ void VoxelSystem::parseData(void *data, int size) { · 112 unmodified lines | |||
| 113 | unsigned char *voxelData = (unsigned char *) data + 1; | 113 | unsigned char *voxelData = (unsigned char *) data + 1; |
| 114 | 114 | ||
| 115 | switch(command) { | 115 | switch(command) { |
| 116 | case 'V': | 116 | case PACKET_HEADER_VOXEL_DATA: |
| 117 | // ask the VoxelTree to read the bitstream into the tree | 117 | // ask the VoxelTree to read the bitstream into the tree |
| 118 | tree->readBitstreamToTree(voxelData, size - 1); | 118 | tree->readBitstreamToTree(voxelData, size - 1); |
| 119 | break; | 119 | break; |
| 120 | case 'R': | 120 | case PACKET_HEADER_ERASE_VOXEL: |
| 121 | // ask the tree to read the "remove" bitstream | 121 | // ask the tree to read the "remove" bitstream |
| 122 | tree->processRemoveVoxelBitstream((unsigned char*)data,size); | 122 | tree->processRemoveVoxelBitstream((unsigned char*)data,size); |
| 123 | break; | 123 | break; |
| 124 | case 'Z': | 124 | case PACKET_HEADER_Z_COMMAND: |
| 125 | 125 | ||
| 126 | // the Z command is a special command that allows the sender to send high level semantic | 126 | // the Z command is a special command that allows the sender to send high level semantic |
| 127 | // requests, like erase all, or add sphere scene, different receivers may handle these | 127 | // requests, like erase all, or add sphere scene, different receivers may handle these |