2021-09-16 09:28:49 +08:00
|
|
|
### Generation of a Triangular Irregular Network (TIN) from a dense DEM grid
|
|
|
|
|
2021-09-16 11:12:35 +08:00
|
|
|
<img src="topo_TIN.png" alt="topo_TIN" style="zoom:24%;" />
|
2021-09-16 09:28:49 +08:00
|
|
|
|
|
|
|
#### Compile
|
|
|
|
|
|
|
|
```shell
|
2021-09-16 23:09:12 +08:00
|
|
|
g++ demo.cpp -O2
|
2021-09-16 09:28:49 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Run demo
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./a.out
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Visualization
|
|
|
|
|
|
|
|
##### macOS
|
|
|
|
|
|
|
|
```shell
|
|
|
|
open -a Gmsh topo_TIN.msh
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Linux/Unix
|
|
|
|
|
|
|
|
```shell
|
|
|
|
gmsh topo_TIN.msh
|
|
|
|
```
|
|
|
|
|