Skip to content

AeonixMediator::GetLinkFromPosition hangs when target position is probably outside of volume + question #54

Description

@Pierdek

Hi, I think there is also an error inside AeonixMediator::GetLinkFromPosition
when for (nodeindex_t j = nodeIndex; j < layer.Num(); j++) completes and no valid code will be found, you should decrement layer index, so
while (layerIndex >= 0 && layerIndex < aVolume.GetNavData().OctreeData.GetNumLayers())
would not hang.

Question:
Why in AeonixMediator::GetLinkFromPosition aren't you using aVolume.GetNavData().GetIndexForCode which is far cheaper than iterating over all layer nodes ?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions