Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:voronoi [2014/01/03 15:45] – external edit 127.0.0.1 | user_guide:tutorials:voronoi [2019/02/04 22:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Voronoi Diagrams ====== | + | {{page>.: |
- | + | ||
- | Voronoi diagrams are constructed from their sites (given in homogeneous coordinates). | + | |
- | <code> | + | |
- | $VD = new VoronoiDiagram(SITES=> | + | |
- | $VD-> | + | |
- | </ | + | |
- | + | ||
- | Actually, via lifting to the standard paraboloid, Voronoi diagrams are derived from '' | + | |
- | + | ||
- | < | + | |
- | polytope > print $VD-> | + | |
- | 2 -2 -2 1 | + | |
- | 1 0 -2 1 | + | |
- | 2 2 -2 1 | + | |
- | 2 -2 2 1 | + | |
- | 1 0 2 1 | + | |
- | 2 2 2 1 | + | |
- | 1 0 0 0 | + | |
- | + | ||
- | polytope > print $VD-> | + | |
- | 0 0 1 2 | + | |
- | 0 1 0 2 | + | |
- | 1 1/2 0 -1 | + | |
- | 0 -1 0 2 | + | |
- | 0 0 -1 2 | + | |
- | 1 -1/2 0 -1 | + | |
- | </ | + | |