Skip to content

KDTree: Assertion failure with numNeighbours < 0 #184

Open
@weefuzzy

Description

@weefuzzy

It is possible to set the numNeighbours control of KDTreeClient to < 0. However, the algorithm itself explicitly expects this to be nonnegative, and calls asUnsigned. Presumably in release builds, this will instead wrap (badness). We should enforce this invariant in the interface by adding Min(0).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions