>
|
|
For this example we first construct a point list containing all points at coordinates (i,j) for i=0..4,j=0..4, and the center points of all enclosed squares (that is, (1/2,1/2)..(7/2,7/2)).
>
|
|
>
|
|
| (1) |
Use the DelaunayTriangulation command to get the set of triangles (tris) and the adjacency matrix (amat) for the point list pts.
>
|
|
Build and display a plot of all triangles.
>
|
|
>
|
|
Note that in the preceding plot, many of the triangles are chosen randomly because there are two optimal choices for many of the subdivisions. A slight shift of the points will make the optimal triangulation unique:
>
|
|
>
|
|
| (2) |
>
|
|
>
|
|
>
|
|