idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.78k stars 1.05k forks source link

Make KDTree class more flexible #10535

Closed dschwen closed 6 years ago

dschwen commented 6 years ago

Rationale

KDTree by @sveerara is an adaptor class to use vectors of libmesh points with nanoflann. I'd like this to be more flexible to allow vectors of structures containing points.

Description

For magpie we need to build trees of point clouds where each point has additional properties (chemical identity)

Impact

Will avoid code duplication and make use of nanoflann easier.

dschwen commented 6 years ago

This is hopeless without a major redesign.