Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions SuperBuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,6 @@ externalproject_add(poissonrecon
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy ${SB_SOURCE_DIR}/PoissonRecon/Bin/${POISSON_BIN_PATH} ${SB_INSTALL_DIR}/bin
)

externalproject_add(dem2mesh
DEPENDS gdal
GIT_REPOSITORY https://github.com/OpenDroneMap/dem2mesh.git
GIT_TAG 334
PREFIX ${SB_BINARY_DIR}/dem2mesh
SOURCE_DIR ${SB_SOURCE_DIR}/dem2mesh
# jmeshlib's vertex ring walks dereference a NULL edge, which segfaults the
# -edgeSwapThreshold path ODM uses to build the 2.5D mesh.
UPDATE_COMMAND ""
PATCH_COMMAND ${CMAKE_COMMAND} -P ${SB_ROOT_DIR}/cmake/apply-patch.cmake ${SB_ROOT_DIR}/cmake/dem2mesh-vertex-ring-null.patch
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${SB_INSTALL_DIR}
${SB_EP_CMAKE_ARGS}
${CONDA_CMAKE_ARGS}
)

externalproject_add(dem2points
DEPENDS gdal
GIT_REPOSITORY https://github.com/OpenDroneMap/dem2points.git
Expand Down
85 changes: 0 additions & 85 deletions SuperBuild/cmake/dem2mesh-vertex-ring-null.patch

This file was deleted.

3 changes: 2 additions & 1 deletion opendm/context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import shutil
import sys
import multiprocessing

Expand Down Expand Up @@ -32,7 +33,7 @@ def _add_windows_dll_dir(path):
opensfm_path = os.path.join(superbuild_bin_path, "opensfm")

poisson_recon_path = os.path.join(superbuild_bin_path, 'PoissonRecon')
dem2mesh_path = os.path.join(superbuild_bin_path, 'dem2mesh')
dem2mesh_path = shutil.which('dem2mesh') or 'dem2mesh'
dem2points_path = os.path.join(superbuild_bin_path, 'dem2points')

# define mvstex path
Expand Down
Loading
Loading