History

implement partitioned CoverageRegions in CoverageMap to further optimize polygon compares

ZappoMan committed 13 years ago

Commit cadd5961 parent 91f6d0f7 files · +301 −99Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+6−6
@@ -1211,8 +1211,8 @@ bool VoxelSystem::falseColorizeOccludedOperation(VoxelNode* node, void* extraDat · 1210 unmodified lines
12111211 return true;
12121212 }
12131213
1214− CoverageMap::StorageResult result = args->map->checkMap(voxelPolygon, false);
1215− if (result == CoverageMap::OCCLUDED) {
1214+ CoverageMapStorageResult result = args->map->checkMap(voxelPolygon, false);
1215+ if (result == OCCLUDED) {
12161216 args->nonLeavesOccluded++;
12171217 delete voxelPolygon;
12181218
@@ -1248,14 +1248,14 @@ bool VoxelSystem::falseColorizeOccludedOperation(VoxelNode* node, void* extraDat · 29 unmodified lines
12481248 return true;
12491249 }
12501250
1251− CoverageMap::StorageResult result = args->map->checkMap(voxelPolygon, true);
1252− if (result == CoverageMap::OCCLUDED) {
1251+ CoverageMapStorageResult result = args->map->checkMap(voxelPolygon, true);
1252+ if (result == OCCLUDED) {
12531253 node->setFalseColor(255, 0, 0);
12541254 args->occludedVoxels++;
1255− } else if (result == CoverageMap::STORED) {
1255+ } else if (result == STORED) {
12561256 args->notOccludedVoxels++;
12571257 //printLog("***** falseColorizeOccludedOperation() NODE is STORED *****\n");
1258− } else if (result == CoverageMap::DOESNT_FIT) {
1258+ } else if (result == DOESNT_FIT) {
12591259 //printLog("***** falseColorizeOccludedOperation() NODE DOESNT_FIT???? *****\n");
12601260 }
12611261 }

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