Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jbegaint authored Mar 26, 2018
1 parent 324034b commit d4811b9
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ Implementation of the Bowyer-Watson algorithm, heavily inspired from: http://pau

## Example

```
...
#include "delaunay.hpp"
...
std::vector<delaunay::Point<float>> points;
...
const auto triangulation = delaunay::triangulate(point);
...
```
*
```
...
#include "delaunay.hpp"
...
std::vector<delaunay::Point<float>> points;
/* Initialize the points. */
...
/* Triangulate. */
const auto triangulation = delaunay::triangulate(point);
...
/* Do domething with the edges or the triangles. */
for (auto const& e : triangulation.edges) {
...
}
....
```

* a working example can be found in the ```demo.cpp``` file, in addition the ```delaunay.hpp```header file should be self-explanatory.

0 comments on commit d4811b9

Please sign in to comment.