I am currently developing an incremental cell locator for fast removal and insertion of cells. So far I have a prototype, where I have used NanoFlann and a restriction to triangles. Considering that it should also hold and maintain vtkCellLink’s (this part is not so elegant). Is this something that would be of general interest, e.g. if I make an implementation without using NanoFlann using only raw and unique_ptr’s?
Do we have any feature branch where such attempt is already made?
Sure. Sorry for the delay. I am currently developing sculpting tools, where I dynamically add and remove cells.
The not so elegant thing is that I am maintaining a duplicate of the cell-links… It is really ugly…
It is a work-in-progress (the incremental cell locator). Currently, I am only focusing on triangles, but a feature complete one, must support any cell.
I did a full-blown point-locator using NanoFlann. It is about 50 times faster if the points are ordered according to their distance and twice as slow if no ordering is required. It sort of makes sense, since it is a KDTree under the hood. It is templated and takes into account of whether points are double/float and whether the cell indices are 32 or 64-bit.