Skip to content

Commit 90035bc

Browse files
author
Felix Igelbrink
committed
cleanup and updated readme
1 parent af16b37 commit 90035bc

6 files changed

+25
-63
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ option(BUILD_SHARED_LIBS "Build shared or static libraries" "${_shared_default}"
4343
if(BUILD_PYTHON)
4444
message(STATUS "Building python module")
4545
set(OUTPUT_DIR "vtk_tile_hierarchy/lib")
46+
set(INSTALL_HEADERS OFF)
4647
#message(STATUS "Python include ${Python3_INCLUDE_DIR}")
4748
include_directories("${Python3_INCLUDE_DIR}")
4849
else()
4950
set(OUTPUT_DIR ${LIBRARY_OUTPUT_DIRECTORY})
51+
set(INSTALL_HEADERS ON)
52+
5053
endif()
5154

5255
# First we scan the modules in our project to find out the dependency graph
@@ -65,7 +68,7 @@ vtk_module_scan(
6568
# Build the module we just scanned.
6669
vtk_module_build(MODULES ${modules}
6770
LIBRARY_DESTINATION "${OUTPUT_DIR}"
68-
INSTALL_HEADERS OFF
71+
INSTALL_HEADERS ${INSTALL_HEADERS}
6972
)
7073

7174
if(BUILD_PYTHON)

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@
66
A custom vtk module that provides classes to load and visualize large out-of-core datasets
77
arranged in a multi-resolution spatial data structure (e.g. [potree](https://github.com/potree/potree) datasets).
88

9+
## Installation
10+
11+
### From source (Python)
12+
13+
```bash
14+
git clone https://github.com/mortacious/vtk-tile-hierarchy.git
15+
cd vtk-tile-hierarchy
16+
python setup.py install
17+
```
18+
19+
20+
### From source (C++)
21+
```bash
22+
git clone https://github.com/mortacious/vtk-tile-hierarchy.git
23+
cd vtk-tile-hierarchy
24+
mkdir build && cd build
25+
cmake -DCMAKE_BUILD_TYPE=Release ..
26+
make && sudo make install
27+
```
28+
929
## Acknowledgements
1030
The rendering algorithm used in this package was originally developed by Markus Schütz as part of his
1131
[thesis](https://www.cg.tuwien.ac.at/research/publications/2016/SCHUETZ-2016-POT/SCHUETZ-2016-POT-thesis.pdf).

src/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ set(classes
44
vtkTileHierarchyLoader
55
vtkPotreeLoader
66
vtkTileHierarchyMapper
7-
vtkTileHierarchyLoaderThread
8-
vtkAttributedTileHierarchyNode)
7+
vtkTileHierarchyLoaderThread)
98

109
if(BUILD_PYTHON)
1110
list(APPEND classes vtkPythonLoader)

src/vtkAttributedTileHierarchyNode.cxx

-27
This file was deleted.

src/vtkAttributedTileHierarchyNode.h

-32
This file was deleted.

src/vtkPythonLoader.cxx

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include "vtkPythonLoader.h"
66
#include "vtkTileHierarchyNode.h"
7-
#include "vtkAttributedTileHierarchyNode.h"
87
#include "gil.h"
98
#include <vtkMapper.h>
109
#include <vtkObjectFactory.h>

0 commit comments

Comments
 (0)