Skip to content

Commit

Permalink
Remove Flann dependency (#3620)
Browse files Browse the repository at this point in the history
* Remove Flann dependency

* Switch to KNN search for hybrid search
  • Loading branch information
stotko committed Jun 23, 2021
1 parent 62a7bdc commit 03afa03
Show file tree
Hide file tree
Showing 51 changed files with 68 additions and 14,728 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
[submodule "3rdparty/cub"]
path = 3rdparty/cub
url = https://github.com/NVlabs/cub
[submodule "3rdparty/nanoflann"]
path = 3rdparty/nanoflann
url = https://github.com/jlblancoc/nanoflann
[submodule "3rdparty/cutlass"]
path = 3rdparty/cutlass
url = https://github.com/NVIDIA/cutlass
Expand Down
16 changes: 0 additions & 16 deletions 3rdparty/CMake/Findnanoflann.cmake

This file was deleted.

16 changes: 5 additions & 11 deletions 3rdparty/find_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -407,18 +407,12 @@ if(NOT USE_SYSTEM_EIGEN3)
endif()
list(APPEND Open3D_3RDPARTY_PUBLIC_TARGETS "${EIGEN3_TARGET}")

# Flann
if(USE_SYSTEM_FLANN)
pkg_config_3rdparty_library(3rdparty_flann flann)
endif()
if(NOT USE_SYSTEM_FLANN OR NOT 3rdparty_flann_FOUND)
build_3rdparty_library(3rdparty_flann DIRECTORY flann)
endif()
set(FLANN_TARGET "3rdparty_flann")
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS "${FLANN_TARGET}")

# Nanoflann
build_3rdparty_library(3rdparty_nanoflann DIRECTORY nanoflann INCLUDE_DIRS include/ INCLUDE_ALL)
include(${Open3D_3RDPARTY_DIR}/nanoflann/nanoflann.cmake)
import_3rdparty_library(3rdparty_nanoflann
INCLUDE_DIRS ${NANOFLANN_INCLUDE_DIRS}
)
add_dependencies(3rdparty_nanoflann ext_nanoflann)
set(NANOFLANN_TARGET "3rdparty_nanoflann")
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS "${NANOFLANN_TARGET}")

Expand Down
1 change: 0 additions & 1 deletion 3rdparty/flann/CMakeLists.txt

This file was deleted.

193 changes: 0 additions & 193 deletions 3rdparty/flann/flann/algorithms/all_indices.h

This file was deleted.

Loading

0 comments on commit 03afa03

Please sign in to comment.