Showing the changes to interface/src/VoxelSystem.cpp (1 of 7 files). Show all
Unified · Split
| @@ -70,6 +70,18 @@ void VoxelSystem::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) · 69 unmodified lines | ||
| 70 | 70 | setupNewVoxelsForDrawing(); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | +void VoxelSystem::writeToFileV2(const char* filename, VoxelNode* node) const { | |
| 74 | + _tree->writeToFileV2(filename, node); | |
| 75 | +} | |
| 76 | + | |
| 77 | +bool VoxelSystem::readFromFileV2(const char* filename, VoxelNode* node) { | |
| 78 | + bool result = _tree->readFromFileV2(filename, node); | |
| 79 | + if (result) { | |
| 80 | + setupNewVoxelsForDrawing(); | |
| 81 | + } | |
| 82 | + return result; | |
| 83 | +} | |
| 84 | + | |
| 73 | 85 | long int VoxelSystem::getVoxelsCreated() { |
| 74 | 86 | return _tree->voxelsCreated; |
| 75 | 87 | } |