Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Commandeur committed Aug 27, 2019
2 parents 51a7aa4 + ecf1d93 commit b0a6eea
Show file tree
Hide file tree
Showing 36 changed files with 396 additions and 1,191 deletions.
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,11 @@ vs_build/.vs
*.lib

# Folders
/vendor
/_site
x64/
x86/

#Folders
/vendor
/_site
x64
x86
vendor
_site
.sass-cache
/resources/convert-to-simulation/simulatorready
/resources/convert-to-simulation/out.off
/resources/convert-to-simulation/bin/
Expand Down
23 changes: 12 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ if ( NOT GDAL_FOUND )
message(SEND_ERROR "3dfier requires the GDAL library")
endif()

# LIBLAS
find_package(libLAS REQUIRED)
find_package (LASzip QUIET)
# LASLIB
# find_package(libLAS REQUIRED)
# find_package (LASzip QUIET)
find_package (LASlib REQUIRED)

# YamlCpp
find_package(YamlCpp REQUIRED)
Expand All @@ -53,15 +54,15 @@ include( ${CGAL_USE_FILE} )

include_directories( ${CMAKE_SOURCE_DIR}/thirdparty )

include_directories( ${CGAL_INCLUDE_DIR} ${CGAL_3RD_PARTY_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${LIBLAS_INCLUDE_DIR} ${LASZIP_INCLUDE_DIR} ${YAMLCPP_INCLUDE_DIR} ${GDAL_INCLUDE_DIR})
include_directories( ${CGAL_INCLUDE_DIR} ${CGAL_3RD_PARTY_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${YAMLCPP_INCLUDE_DIR} ${GDAL_INCLUDE_DIR} ${LASLIB_INCLUDE_DIR})
link_directories(${YamlCpp_LIBRARY_DIRS})

# build ptinpoly as static lib
add_library(ptinpoly STATIC thirdparty/ptinpoly.c)
set_target_properties(
ptinpoly
PROPERTIES C_STANDARD 11
)
# # build ptinpoly as static lib
# add_library(ptinpoly STATIC thirdparty/ptinpoly.c)
# set_target_properties(
# ptinpoly
# PROPERTIES C_STANDARD 11
# )

# Creating entries for target: 3dfier
FILE(GLOB SRC_FILES src/*.cpp)
Expand All @@ -71,6 +72,6 @@ set_target_properties(
PROPERTIES CXX_STANDARD 11
)

target_link_libraries( 3dfier ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GDAL_LIBRARY} ${LIBLAS_LIBRARY} ${LASZIP_LIBRARY} ${YAMLCPP_LIBRARY} Boost::program_options Boost::filesystem Boost::locale ptinpoly)
target_link_libraries( 3dfier ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GDAL_LIBRARY} ${YAMLCPP_LIBRARY} Boost::program_options Boost::filesystem Boost::locale ${LASLIB_LIBRARY})

install(TARGETS 3dfier DESTINATION bin)
45 changes: 45 additions & 0 deletions cmake/Modules/FindLASlib.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
###############################################################################
#
# CMake module to search for LASlib library
#
# On success, the macro sets the following variables:
# LASLIB_FOUND = if the library found
# LASLIB_LIBRARY = full path to the library
# LASLIB_INCLUDE_DIR = where to find the library headers also defined,
# but not for general use are
# LASLIB_LIBRARY = where to find the library.
# LASLIB_VERSION = version of library which was found, e.g. "1.2.5"
#
###############################################################################
MESSAGE(STATUS "Searching for LASlib library")

IF(LASLIB_INCLUDE_DIR)
# Already in cache, be silent
SET(LASLIB_FIND_QUIETLY TRUE)
ENDIF()

# IF(APPLE)
# SET(LASLIB_ROOT_DIR /usr/local/)
# MESSAGE(STATUS "Trying LasZip using default location LASLIB_ROOT=c:/laszip")
# ENDIF()

FIND_PATH(LASLIB_INCLUDE_DIR laszip.hpp
PATH_PREFIXES laszip
PATHS
/usr/include
/usr/local/include
/usr/local/include/LASlib
# ${LASLIB_ROOT_DIR}/include
NO_DEFAULT_PATH)

SET(LASLIB_NAMES ${LASLIB_LIBRARY} LASlib)

FIND_LIBRARY(LASLIB_LIBRARY
NAMES ${LASLIB_NAMES}
PATHS
/usr/lib
/usr/local/lib
/usr/local/lib/LASlib
${LASLIB_ROOT_DIR}/lib)


56 changes: 0 additions & 56 deletions cmake/Modules/FindLASzip.cmake

This file was deleted.

64 changes: 0 additions & 64 deletions cmake/Modules/FindlibLAS.cmake

This file was deleted.

1 change: 1 addition & 0 deletions resources/config_files/myconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ options:
building_radius_vertex_elevation: 3.0
radius_vertex_elevation: 1.0
threshold_jump_edges: 0.5
threshold_bridge_jump_edges: 0.5
3 changes: 2 additions & 1 deletion resources/config_files/myconfig_DEFAULTS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ input_elevation:
options:
building_radius_vertex_elevation: 3.0
radius_vertex_elevation: 1.0
threshold_jump_edges: 0.5
threshold_jump_edges: 0.5
threshold_bridge_jump_edges: 0.5
1 change: 1 addition & 0 deletions resources/config_files/myconfig_README.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ options: # Global options
building_radius_vertex_elevation: 3.0 # Radius in meters used for point-vertex distance between 3D points and vertices of building polygons, radius_vertex_elevation used when not specified
radius_vertex_elevation: 1.0 # Radius in meters used for point-vertex distance between 3D points and vertices of polygons
threshold_jump_edges: 0.5 # Threshold in meters for stitching adjacent objects, when the height difference is larger then the threshold a vertical wall is created
threshold_bridge_jump_edges: 0.5 # Threshold in meters for stitching bridges to adjacent objects, if not specified it falls back to threshold_jump_edges
extent: xmin, ymin, xmax, ymax # Filter the input polygons to this extent
2 changes: 1 addition & 1 deletion src/Bridge.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2018 3D geoinformation research group, TU Delft
Copyright (C) 2015-2019 3D geoinformation research group, TU Delft
This file is part of 3dfier.
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2018 3D geoinformation research group, TU Delft
Copyright (C) 2015-2019 3D geoinformation research group, TU Delft
This file is part of 3dfier.
Expand Down
2 changes: 1 addition & 1 deletion src/Building.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2018 3D geoinformation research group, TU Delft
Copyright (C) 2015-2019 3D geoinformation research group, TU Delft
This file is part of 3dfier.
Expand Down
2 changes: 1 addition & 1 deletion src/Building.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2018 3D geoinformation research group, TU Delft
Copyright (C) 2015-2019 3D geoinformation research group, TU Delft
This file is part of 3dfier.
Expand Down
2 changes: 1 addition & 1 deletion src/Forest.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2018 3D geoinformation research group, TU Delft
Copyright (C) 2015-2019 3D geoinformation research group, TU Delft
This file is part of 3dfier.
Expand Down
2 changes: 1 addition & 1 deletion src/Forest.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
3dfier: takes 2D GIS datasets and "3dfies" to create 3D city models.
Copyright (C) 2015-2018 3D geoinformation research group, TU Delft
Copyright (C) 2015-2019 3D geoinformation research group, TU Delft
This file is part of 3dfier.
Expand Down
Loading

0 comments on commit b0a6eea

Please sign in to comment.