Skip to content

Commit

Permalink
Merge branch 'main' of github.com:intel-isl/Open3D into m1
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Apr 16, 2024
2 parents dce6d4d + 1562468 commit d875f33
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 34 deletions.
4 changes: 2 additions & 2 deletions 3rdparty/civetweb/civetweb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ include(ExternalProject)
ExternalProject_Add(
ext_civetweb
PREFIX civetweb
URL https://github.com/civetweb/civetweb/archive/refs/tags/v1.15.tar.gz
URL_HASH SHA256=90a533422944ab327a4fbb9969f0845d0dba05354f9cacce3a5005fa59f593b9
URL https://github.com/civetweb/civetweb/archive/refs/tags/v1.16.tar.gz
URL_HASH SHA256=f0e471c1bf4e7804a6cfb41ea9d13e7d623b2bcc7bc1e2a4dd54951a24d60285
DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/civetweb"
UPDATE_COMMAND ""
CMAKE_ARGS
Expand Down
10 changes: 0 additions & 10 deletions 3rdparty/find_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ function(open3d_build_3rdparty_library name)
if(arg_SOURCES)
foreach(src IN LISTS arg_SOURCES)
get_filename_component(abs_src "${src}" ABSOLUTE BASE_DIR "${arg_DIRECTORY}")
# Mark as generated to skip CMake's file existence checks
set_source_files_properties(${abs_src} PROPERTIES GENERATED TRUE)
target_sources(${name} PRIVATE ${abs_src})
endforeach()
foreach(incl IN LISTS include_dirs)
Expand Down Expand Up @@ -1030,8 +1028,6 @@ if(NOT USE_SYSTEM_QHULLCPP)
src/libqhull_r/rboxlib_r.c
INCLUDE_DIRS
src/
DEPENDS
ext_qhull
)
open3d_build_3rdparty_library(3rdparty_qhullcpp DIRECTORY ${QHULL_SOURCE_DIR}
SOURCES
Expand All @@ -1057,8 +1053,6 @@ if(NOT USE_SYSTEM_QHULLCPP)
src/libqhullcpp/RoadLogEvent.cpp
INCLUDE_DIRS
src/
DEPENDS
ext_qhull
)
target_link_libraries(3rdparty_qhullcpp PRIVATE 3rdparty_qhull_r)
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_CUSTOM Open3D::3rdparty_qhullcpp)
Expand Down Expand Up @@ -1158,8 +1152,6 @@ if (BUILD_UNIT_TESTS)
googletest/
googlemock/include/
googlemock/
DEPENDS
ext_googletest
)
endif()
endif()
Expand Down Expand Up @@ -1190,8 +1182,6 @@ if(BUILD_GUI)
imgui_tables.cpp
imgui_widgets.cpp
imgui.cpp
DEPENDS
ext_imgui
)
list(APPEND Open3D_3RDPARTY_PRIVATE_TARGETS_FROM_CUSTOM Open3D::3rdparty_imgui)
else()
Expand Down
8 changes: 4 additions & 4 deletions 3rdparty/googletest/googletest.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(ExternalProject)
include(FetchContent)

ExternalProject_Add(
FetchContent_Declare(
ext_googletest
PREFIX googletest
URL https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz
Expand All @@ -12,5 +12,5 @@ ExternalProject_Add(
INSTALL_COMMAND ""
)

ExternalProject_Get_Property(ext_googletest SOURCE_DIR)
set(GOOGLETEST_SOURCE_DIR ${SOURCE_DIR})
FetchContent_Populate(ext_googletest)
FetchContent_GetProperties(ext_googletest SOURCE_DIR GOOGLETEST_SOURCE_DIR)
8 changes: 4 additions & 4 deletions 3rdparty/imgui/imgui.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(ExternalProject)
include(FetchContent)

ExternalProject_Add(
FetchContent_Declare(
ext_imgui
PREFIX imgui
URL https://github.com/ocornut/imgui/archive/refs/tags/v1.88.tar.gz
Expand All @@ -12,5 +12,5 @@ ExternalProject_Add(
INSTALL_COMMAND ""
)

ExternalProject_Get_Property(ext_imgui SOURCE_DIR)
set(IMGUI_SOURCE_DIR ${SOURCE_DIR})
FetchContent_Populate(ext_imgui)
FetchContent_GetProperties(ext_imgui SOURCE_DIR IMGUI_SOURCE_DIR)
8 changes: 4 additions & 4 deletions 3rdparty/qhull/qhull.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(ExternalProject)
include(FetchContent)

ExternalProject_Add(
FetchContent_Declare(
ext_qhull
PREFIX qhull
# v8.0.0+ causes seg fault
Expand All @@ -14,5 +14,5 @@ ExternalProject_Add(
INSTALL_COMMAND ""
)

ExternalProject_Get_Property(ext_qhull SOURCE_DIR)
set(QHULL_SOURCE_DIR ${SOURCE_DIR})
FetchContent_Populate(ext_qhull)
FetchContent_GetProperties(ext_qhull SOURCE_DIR QHULL_SOURCE_DIR)
6 changes: 5 additions & 1 deletion cmake/Open3DFetchISPCCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ function(open3d_fetch_ispc_compiler)
)

FetchContent_MakeAvailable(ext_ispc)
if (WIN32)
set(CMAKE_ISPC_COMPILER "${ext_ispc_SOURCE_DIR}/bin/ispc.exe" PARENT_SCOPE)
else() # Linux
set(CMAKE_ISPC_COMPILER "${ext_ispc_SOURCE_DIR}/bin/ispc" PARENT_SCOPE)
endif()

set(CMAKE_ISPC_COMPILER "${ext_ispc_SOURCE_DIR}/bin/ispc" PARENT_SCOPE)
endif()
endfunction()
6 changes: 3 additions & 3 deletions cpp/open3d/core/nns/NNSIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NNSIndex {
/// \param knn Number of nearest neighbor to search.
/// \return Pair of Tensors: (indices, distances):
/// - indices: Tensor of shape {n, knn}, with dtype Int32.
/// - distainces: Tensor of shape {n, knn}, same dtype with dataset_points.
/// - distances: Tensor of shape {n, knn}, same dtype with dataset_points.
virtual std::pair<Tensor, Tensor> SearchKnn(const Tensor &query_points,
int knn) const = 0;

Expand All @@ -61,7 +61,7 @@ class NNSIndex {
/// dtype with dataset_points.
/// \param radii list of radius. Must be 1D, with shape {n, }.
/// \return Tuple of Tensors: (indices, distances, num_neighbors):
/// - indicecs: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - indices: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - distances: Tensor of shape {total_num_neighbors,}, same dtype with
/// dataset_points.
/// - num_neighbors: Tensor of shape {n,}, dtype Int32.
Expand All @@ -76,7 +76,7 @@ class NNSIndex {
/// dtype with dataset_points.
/// \param radius Radius.
/// \return Tuple of Tensors, (indices, distances, num_neighbors):
/// - indicecs: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - indices: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - distances: Tensor of shape {total_num_neighbors,}, same dtype with
/// dataset_points.
/// - num_neighbors: Tensor of shape {n}, dtype Int32.
Expand Down
6 changes: 3 additions & 3 deletions cpp/open3d/core/nns/NanoFlannIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class NanoFlannIndex : public NNSIndex {
/// \param knn Number of nearest neighbor to search.
/// \return Pair of Tensors: (indices, distances):
/// - indices: Tensor of shape {n, knn}, with dtype Int32.
/// - distainces: Tensor of shape {n, knn}, same dtype with dataset_points.
/// - distances: Tensor of shape {n, knn}, same dtype with dataset_points.
std::pair<Tensor, Tensor> SearchKnn(const Tensor &query_points,
int knn) const override;

Expand All @@ -64,7 +64,7 @@ class NanoFlannIndex : public NNSIndex {
/// dtype with dataset_points.
/// \param radii list of radius. Must be 1D, with shape {n, }.
/// \return Tuple of Tensors: (indices, distances, counts):
/// - indicecs: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - indices: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - distances: Tensor of shape {total_num_neighbors,}, same dtype with
/// dataset_points.
/// - counts: Tensor of shape {n,}, dtype Int64.
Expand All @@ -79,7 +79,7 @@ class NanoFlannIndex : public NNSIndex {
/// dtype with dataset_points.
/// \param radius Radius.
/// \return Tuple of Tensors, (indices, distances, counts):
/// - indicecs: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - indices: Tensor of shape {total_num_neighbors,}, dtype Int32.
/// - distances: Tensor of shape {total_num_neighbors,}, same dtype with
/// dataset_points.
/// - counts: Tensor of shape {n}, dtype Int64.
Expand Down
6 changes: 3 additions & 3 deletions cpp/open3d/core/nns/NearestNeighborSearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class NearestNeighborSearch {
/// \param radius Radius.
/// \param sort Sort the results by distance. Default is True.
/// \return Tuple of Tensors, (indices, distances, num_neighbors):
/// - indicecs: Tensor of shape {total_number_of_neighbors,}, with dtype
/// - indices: Tensor of shape {total_number_of_neighbors,}, with dtype
/// same as index_dtype_.
/// - distances: Tensor of shape {total_number_of_neighbors,}, same dtype
/// with query_points. The distances are squared L2 distances.
Expand All @@ -91,7 +91,7 @@ class NearestNeighborSearch {
/// \param radii Radii of query points. Each query point has one radius.
/// Must be 1D, with shape {n,}.
/// \return Tuple of Tensors, (indices,distances, num_neighbors):
/// - indicecs: Tensor of shape {total_number_of_neighbors,}, with dtype
/// - indices: Tensor of shape {total_number_of_neighbors,}, with dtype
/// same as index_dtype_.
/// - distances: Tensor of shape {total_number_of_neighbors,}, same dtype
/// with query_points. The distances are squared L2 distances.
Expand All @@ -108,7 +108,7 @@ class NearestNeighborSearch {
/// \param max_knn Maximum number of neighbor to search per query.
/// \return Tuple of Tensors, (indices, distances, counts):
/// - indices: Tensor of shape {n, knn}, with dtype same as index_dtype_.
/// - distainces: Tensor of shape {n, knn}, with same dtype with
/// - distances: Tensor of shape {n, knn}, with same dtype with
/// query_points. The distances are squared L2 distances.
/// - counts: Counts of neighbour for each query points. [Tensor
/// of shape {n}, with dtype same as index_dtype_].
Expand Down

0 comments on commit d875f33

Please sign in to comment.