• Stars
    star
    126
  • Rank 284,543 (Top 6 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Large-scale LoD2 Building Reconstruction from Airborne LiDAR Point Clouds

City3D: Large-scale Building Reconstruction from Airborne LiDAR Point Clouds

City3D implements the hypothesis-and-selection based building reconstruction method described in the following paper:

Jin Huang, Jantien Stoter, Ravi Peters, Liangliang Nan. 
City3D: Large-scale Building Reconstruction from Airborne LiDAR Point Clouds.
Remote Sensing. 14(9), 2254, 2022.

This implementation is based on PolyFit.


Obtaining City3D

You can build City3D from the source codeË™

  • Download the source code.

  • Dependencies (Attention for Windows users: ALL dependencies must be for x64)

    • Qt (v5.12 and later). This is required by only the GUI demo of City3D. Without Qt, you should still be able to build the two command-line programs CLI_Example_1 and CLI_Example_2.
    • CGAL (v5.4 and later).
    • OpenCV (v4.0 and later, only the main modules are needed).
    • Gurobi. Note for Linux users: You may have to build the Gurobi library (libgurobi_c++.a) because the prebuilt one in the original package might NOT be compatible with your compiler. To do so, go to PATH-TO-GUROBI/src/build and run make. Then replace the original libgurobi_c++.a (in the lib directory) with your generated file.
  • Build

    There are many options to build City3D. Choose one of the following (not an exhaustive list):

    • Option 1 (purely on the command line): Use CMake to generate Makefiles and then make (on Linux/macOS) or nmake(on Windows with Microsoft Visual Studio).

      • On Linux or macOS
        $ cd path-to-root-dir-of-City3D
        $ mkdir Release
        $ cd Release
        $ cmake -DCMAKE_BUILD_TYPE=Release ..
        $ make
        
      • On Windows with Microsoft Visual Studio, use the x64 Native Tools Command Prompt for VS XXXX (don't use the x86 one), then
        $ cd path-to-root-dir-of-City3D           
        $ mkdir Release
        $ cd Release
        $ cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..
        $ nmake
        
    • Option 2: Use any IDE that can directly handle CMakeLists files to open the CMakeLists.txt in the root directory of City3D. Then you should have obtained a usable project and just build it. I recommend using CLion or QtCreator. For Windows users: your IDE must be set for x64.

    • Option 3: Use CMake-Gui to generate project files for your favorite IDE. Then load the project to your IDE and build it. For Windows users: your IDE must be set for x64.

    Don't have any experience with C/C++ programming? Then check this How to build I wrote for Easy3D.

Run City3D

This repository includes three executable programs:

  • CLI_Example_1: a command-line program that can reconstruct multiple buildings in a large scene using both point cloud and footprint as input. Some test data is provided in the data directory.

  • CLI_Example_2: a command-line program showing the reconstruction of all the pre-segmented buildings in a large scene using only the point clouds as input. The individual buildings have already been segmented and each building is stored as a separate point cloud file. Our method generates a footprint for each building and then reconstructs it. For this example, only the point cloud of a building is needed. See some test data in the building_instances directory.

  • City3D: a demo version of our method with GUI. This demo provides a simple user interface with a few buttons (with numbered icons). Just click the buttons one by one in the specified order to run the workflow. The UI was adapted from PolyFit.


Data

The method has been evaluated on ~20K buildings, resulting in a new dataset consisting of the original point clouds and the reconstructed 3D models of all these buildings. The complete dataset can be found here.

This repository has included a few buildings from the above dataset for test, which can be found in the data directory.


About the solvers

This demo program can use either the SCIP solver or the commercial solver Gurobi for the core optimization step. The entire source code of the SCIP solver is already included in this repository.

The Gurobi solver is faster than SCIP and is thus highly recommended. To use Gurobi, install it first and make sure the headers and libraries of Gurobi can be found by CMake. This can be done by specifying the paths of Gurobi in FindGUROBI.cmake. Note: you need to obtain a license to use Gurobi, which is free for academic use.


Citation

If you use the code/program (or part) of City3D in scientific work, please cite our paper:

@Article{HuangCity3d_2022,
    AUTHOR = {Huang, Jin and Stoter, Jantien and Peters, Ravi and Nan, Liangliang},
    TITLE = {City3D: Large-Scale Building Reconstruction from Airborne LiDAR Point Clouds},
    JOURNAL = {Remote Sensing},
    VOLUME = {14},
    YEAR = {2022},
    NUMBER = {9},
    ARTICLE-NUMBER = {2254},
}

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License or (at your option) any later version. The full text of the license can be found in the accompanying LICENSE file.


Should you have any questions, comments, or suggestions, please feel free to contact me at: [email protected]

Jin Huang

https://yidahuang.github.io/

June 28, 2022

Copyright (C) 2022

More Repositories

1

3dfier

The open-source tool for creating 3D models
C++
514
star
2

Random3Dcity

A basic procedural modelling engine for generating buildings and other features in CityGML
Python
204
star
3

AdTree

Accurate, detailed, and automatic modelling of laser-scanned trees
C++
178
star
4

prepair

Automatic repair of single polygons (according to the OGC Simple Features / ISO19107 rules) using a constrained triangulation.
C++
114
star
5

terrainbook

"Computational modelling of terrains" book: source code + PDF
TeX
106
star
6

masbcpp

C++ implementation of the Medial Axis Shrinking Ball algorithm
C++
103
star
7

CityGML2OBJs

An experimental utility to convert CityGML data to OBJ, featuring decoupling of objects and conversion of attributes to colours
Python
93
star
8

val3dity

Validation of 3D primitives according to the international standard ISO19107
C++
92
star
9

azul

3D city model viewer for Mac
C++
89
star
10

City4CFD

Reconstruction of LoD2 3D city models for urban flow simulations
C++
76
star
11

ifc2citygml

Automatic conversion of IFC models 2x3 to CityGML LOD 1/2/3/4
C++
73
star
12

pprepair

Validation and Automatic Repair of Planar Partitions
C++
57
star
13

3DCityDB-Tools-for-QGIS

This repository contains code of a QGIS plugin that facilitates data handling of the CityGML 3D City Database.
PLpgSQL
55
star
14

masbpy

Medial Axis Shrinking Balls - Python implementation of the Shrinking Ball algorithm to construct the Medial Axis Transform
Python
49
star
15

Solar3Dcity

An experimental utility to estimate the yearly solar irradiation of roof surfaces in CityGML
Python
48
star
16

3D_Urban_Mesh_Annotator

A tool for annotating textured urban meshes
C++
43
star
17

3d-building-metrics

Tool to compute shape metrics from 3D geometries for buildings
Jupyter Notebook
32
star
18

SUMS-Semantic-Urban-Mesh-Segmentation-public

SUMS: Semantic Urban Mesh Segmentation.
Python
25
star
19

website

Website for the group
HTML
25
star
20

3dbag-viewer

Vue
22
star
21

PSSNet

PSSNet: Planarity-sensible Semantic Segmentation of Large-scale Urban Meshes
C++
21
star
22

msc_geomatics_thesis_template

A template for the TU Delft MSc Geomatics thesis (P4+P5)
TeX
13
star
23

lod2plus

Automatic generation of simple interiors for CityGML LOD2
C++
13
star
24

geogeeks

The place where geogeeks go to know "how to do X"
HTML
12
star
25

indoorjson

IndoorJSON is like IndoorGML but without the GML
Python
11
star
26

esri_geobim

C++
11
star
27

IfcLocator

JavaScript
10
star
28

Roofline-extraction-from-orthophotos

Roofline extraction from orthophotos
C++
9
star
29

bag3d

Software for generating a 3D version of the BAG dataset and more. Python + PostgreSQL + 3dfier
Python
9
star
30

CityGML-schema-validation

small script to validate a CityGML file against the XSD schemas of CityGML (all versions supported)
Python
7
star
31

prepair-qgis

QGIS plugin for prepair
Python
7
star
32

3dbook

Book for the course GEO1004: 3D modelling of the built environment
TeX
6
star
33

CityJSON2glTF

An experimental python utility to convert CityJSON datasets to glTF 2.0 and schematically validate glTF datasets
Python
5
star
34

cityjson-versioning-prototype

A prototype implementation of interaction with versioned CityJSON files
Python
5
star
35

geo1101.2020.ahn3

An improved AHN3 gridded DTM/DSM done as university project for the MSc Geomatics @ TU Delft
Python
5
star
36

cityjsonToRevit

A plugin for importing CityJSON geometries to Autodesk Revit
C#
5
star
37

city2InfraGML

An experimental python utility to convert CityGML datasets to InfraGML and vice versa.
Python
5
star
38

carriageways-creator

Carriageways Creator
Jupyter Notebook
4
star
39

val3ditypy

Python bindings for the award-winning val3dity software
C++
4
star
40

geovalidation.server

Web server for val3dity/prepair
HTML
4
star
41

Random3DTIN

A python utility to generate terrain models at different LODs in CityGML.
Python
3
star
42

CityGML-QIE-3Dvalidation

repository for the test datasests for the OGC CityGML QIE Experiment #2: 3D geometric validation
HTML
3
star
43

ocm-downloader

A script to download the data of opencitymodel
Python
3
star
44

geo1004_handouts

Handouts for the course GEO1004: 3D modelling of the built environment
TeX
3
star
45

geo2020

Website for the MSc Geomatics graduation thesis (GEO2010+GEO2020)
CSS
3
star
46

geoflow-nodes

Various nodes for geoflow
C++
2
star
47

eNoiseModel

Data model for standardising the input/output data for noise simulations using CNOSSOS-EU
2
star
48

Testbed4UBEM

A Repository of an Urban Energy Modeling testbed based on the OGC CityGML v2.0 standard
2
star
49

valsem

Validation of the semantic of CityGML LOD2 (based on normal orientations)
C++
2
star
50

3dgeoinfo2018

Website for the 3D Geoinfo 2018 conference
HTML
2
star
51

homebrew-software

homebrew formulas for some of our software
Ruby
2
star
52

isochrones-mexico

C++
2
star
53

Symmetrization

C++
2
star
54

matahn

Download tool for AHN2 that delivers a LAZ file with the points inside a bounding box drawn by the user.
Python
2
star
55

git-course-material

TeX
2
star
56

latex-getting-started

Quick LaTeX course
TeX
1
star
57

EnergyADEv1_toCityGMLv3

This repository contains the work for mapping the Energy ADE v1.0 to the CityGML v3.0 data model
1
star
58

InfraJSON

JSON encoding for LandInfra Conceptual Model 1.0.0
Python
1
star
59

3D_Metadata_ADE

CityGML ADE for storing metadata about the 3D city models.
Python
1
star
60

citygml-solidifier

takes a CityGML file with Buildings stored as gml:MultiSurfaces and creates gml:Solids
Python
1
star
61

citygmlinfo

Prints out all sort of useful information about a CityGML file
C++
1
star
62

city3d_valpy

citygml valid
Python
1
star
63

abe-latex

LaTeX template for the TU Delft A+BE PhD thesis series
TeX
1
star
64

cityjson-lcc-reconstructor

A tool to topologically reconstruct a CityJSON model
C++
1
star
65

citygml2poly

Converts the solids of a CityGML file to POLY files.
Java
1
star
66

nl3d

XSLT
1
star
67

website-3d4em

Source code for
HTML
1
star
68

IDEA-Taskforce

Collection of notes from the 3DEI-working group
1
star