History

Merge branch 'master' of https://github.com/worklist/hifi into voxeltars

Andrzej Kapolka committed 13 years ago

Commit d09700a2 parents 90a53bc b71b7f520 files · +924 −364Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 20 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+21−0
@@ -72,6 +72,18 @@ void VoxelSystem::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) · 71 unmodified lines
7272 setupNewVoxelsForDrawing();
7373 }
7474
75+void VoxelSystem::writeToSVOFile(const char* filename, VoxelNode* node) const {
76+ _tree->writeToSVOFile(filename, node);
77+}
78+
79+bool VoxelSystem::readFromSVOFile(const char* filename) {
80+ bool result = _tree->readFromSVOFile(filename);
81+ if (result) {
82+ setupNewVoxelsForDrawing();
83+ }
84+ return result;
85+}
86+
7587 long int VoxelSystem::getVoxelsCreated() {
7688 return _tree->voxelsCreated;
7789 }
@@ -1137,3 +1149,12 @@ void VoxelSystem::createSphere(float r,float xc, float yc, float zc, float s, bo · 1059 unmodified lines
11371149 _tree->createSphere(r, xc, yc, zc, s, solid, mode, destructive, debug);
11381150 setupNewVoxelsForDrawing();
11391151 };
1152+
1153+void VoxelSystem::copySubTreeIntoNewTree(VoxelNode* startNode, VoxelTree* destinationTree, bool rebaseToRoot) {
1154+ _tree->copySubTreeIntoNewTree(startNode, destinationTree, rebaseToRoot);
1155+}
1156+
1157+void VoxelSystem::copyFromTreeIntoSubTree(VoxelTree* sourceTree, VoxelNode* destinationNode) {
1158+ _tree->copyFromTreeIntoSubTree(sourceTree, destinationNode);
1159+}
1160+

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t