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
1211 return true;1211 return true;
1212 }1212 }
1213 1213
1214 CoverageMap::StorageResult result = args->map->checkMap(voxelPolygon, false);1214 CoverageMapStorageResult result = args->map->checkMap(voxelPolygon, false);
1215 if (result == CoverageMap::OCCLUDED) {1215 if (result == OCCLUDED) {
1216 args->nonLeavesOccluded++;1216 args->nonLeavesOccluded++;
1217 delete voxelPolygon;1217 delete voxelPolygon;
1218 1218
@@ -1248,14 +1248,14 @@ bool VoxelSystem::falseColorizeOccludedOperation(VoxelNode* node, void* extraDat · 29 unmodified lines
1248 return true;1248 return true;
1249 }1249 }
1250 1250
1251 CoverageMap::StorageResult result = args->map->checkMap(voxelPolygon, true);1251 CoverageMapStorageResult result = args->map->checkMap(voxelPolygon, true);
1252 if (result == CoverageMap::OCCLUDED) {1252 if (result == OCCLUDED) {
1253 node->setFalseColor(255, 0, 0);1253 node->setFalseColor(255, 0, 0);
1254 args->occludedVoxels++;1254 args->occludedVoxels++;
1255 } else if (result == CoverageMap::STORED) {1255 } else if (result == STORED) {
1256 args->notOccludedVoxels++;1256 args->notOccludedVoxels++;
1257 //printLog("***** falseColorizeOccludedOperation() NODE is STORED *****\n");1257 //printLog("***** falseColorizeOccludedOperation() NODE is STORED *****\n");
1258 } else if (result == CoverageMap::DOESNT_FIT) {1258 } else if (result == DOESNT_FIT) {
1259 //printLog("***** falseColorizeOccludedOperation() NODE DOESNT_FIT???? *****\n");1259 //printLog("***** falseColorizeOccludedOperation() NODE DOESNT_FIT???? *****\n");
1260 }1260 }
1261 }1261 }

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