### Generation of a Triangular Irregular Network (TIN) from a dense DEM grid

<img src="topo_TIN.png" alt="topo_TIN" style="zoom:24%;" />

#### Compile

```shell
g++ demo.cpp -O2
```

#### Run demo

```shell
./a.out
```

#### Visualization

##### macOS

```shell
open -a Gmsh topo_TIN.msh
```

##### Linux/Unix

```shell
gmsh topo_TIN.msh
```

