Skip to content

[Bug] tmp_counter not incremented in Add_Points when downsample is disabled #47

Description

@Jay-zzcoder

In the KD_TREE::Add_Points function, the tmp_counter variable is used to count the number of points actually inserted into the tree. However, when downsample_switch evaluates to false (i.e., downsample_on is set to false or the DOWNSAMPLE_SWITCH macro is disabled), the counter is not incremented in the else branch.

This causes the function to always return 0, even though points are successfully added to the kd-tree.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions