In V9, hidden in Graphics`Mesh`
is the PolygonTriangulate
function...
pts = {{-5, 29.6537}, {-4, 16.3031}, {-3, 13.8614}, {-2, 9.22332}, {-1, 6.89646},
{0, 6.76047}, {1, 9.20436}, {2, 6.65919}, {3, 18.2084}, {4, 18.9102}, {5, 31.6521}};
Graphics[
GraphicsComplex[
pts,
{EdgeForm[{Thick, Gray}],
LightRed,
Polygon@Graphics`Mesh`PolygonTriangulate[pts]}
], Axes -> True, AspectRatio -> 1/GoldenRatio]
V10 update
While the OP specifically asks about V9, it is worth pointing out a more current solution, DiscretizeRegion
. It has a tendency to add points, which are not strictly necessary. MaxCellMeasure
can control the size of the triangles to some extent.
Show[
DiscretizeRegion[
Polygon[pts], MaxCellMeasure -> {"Area" -> Infinity}],
Axes -> True, AspectRatio -> 1/GoldenRatio]
One can get the same result using TriangulateMesh
and BoundaryDiscretizeRegion
.