tum-vision / fastfusion

Volumetric 3D Mapping in Real-Time on a CPU
GNU General Public License v2.0
559 stars 173 forks source link

_meshCells.size() == 0 #7

Open clones1201 opened 9 years ago

clones1201 commented 9 years ago

I ported fastfusion to Windows 8.1, and tried to run it with rgbd_dataset_freiburg2_large_with_loop

but a exception occurred in void FusionMipmapCPU::pushMeshCellQueue() relative code is

 for (LeafNeighborhood::iterator j = _meshCellIndicesLeaf[leaf].begin(); j != _meshCellIndicesLeaf[leaf].end(); j++){
    if ((*j) >= _meshCells.size()) 
    fprintf(stderr, "\nERROR: Leaf Queue Index %li >= _meshCells.size() of %li",*j, _meshCells.size());
if (!(*_meshCellIsQueuedNext)[*j]){
    if (*j >= MAXCELLINDEX){
        fprintf(stderr, "\nERROR: Wrong Index at Leaf %i: ", leaf);
        for (LeafNeighborhood::iterator k = _meshCellIndicesLeaf[leaf].begin(); k != _meshCellIndicesLeaf[leaf].end(); k++){
            fprintf(stderr, " %li", *k);
        }
    }
 /*....and so on*/

i put a breakpoint at if(!(*_meshCellIsQueuedNext)[*j]) and notice that *j==862 while _meshCellIsQueuedNext.size() == 0 and _meshCells.size() == 0.

I couldn't find any _meshCells.push_back() in this geometryfusion_mipmap_cpu.cpp

mobooya commented 9 years ago

Hey I just hit the same issue, did you resolve it? what did you do to fix it? thanks in advance

clones1201 commented 9 years ago

sorry, I didn't solve this, and i dropped my project.

— 从 Mailbox 发送

On Sat, Jul 25, 2015 at 8:27 AM, Mohamed Ahmad notifications@github.com wrote:

Hey I just hit the same issue, did you resolve it? what did you do to fix it? thanks in advance

Reply to this email directly or view it on GitHub: https://github.com/tum-vision/fastfusion/issues/7#issuecomment-124776239

mobooya commented 9 years ago

i fixed it by adding

undef MESHCELLINDICES_COMPACT

to definitions.h by doing that it enabled SWITCH_MESHCELLS_SPLIT which means _meshCells is pointing to _meshCellsSplit instead of _meshCellsCompact