fastfusion icon indicating copy to clipboard operation
fastfusion copied to clipboard

_meshCells.size() == 0

Open clones1201 opened this issue 10 years ago • 3 comments

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

clones1201 avatar Nov 03 '14 10:11 clones1201

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

mobooya avatar Jul 25 '15 00:07 mobooya

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

— 从 Mailbox 发送

On Sat, Jul 25, 2015 at 8:27 AM, Mohamed Ahmad [email protected] 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

clones1201 avatar Jul 27 '15 15:07 clones1201

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

mobooya avatar Jul 27 '15 23:07 mobooya