•Pentagon example

In[101]:=

points = {{0, 1/2}, {1, 0}, {3/2, 1/2}, {-1/4, 1}, {-1/2, 1/4}} ; connect = {{1, 2, 3, 4, 5}} ;  pts = Part[points, connect[[1]]] ; areas = Apply[area, Partition[pts, 3, 1, {2}], {1}] ;

•Compile function
•Show

In[109]:=

pent = Show[pContour,  Graphics[Flatten[{{RGBColor[1, 1, 1]}, {mask[pts]}}]], Graphics[Flatten[{{PointSize[.02]}, {outline[pts], name[pts], nodes[pts]}}]], PlotRange -> All, Frame -> False, AspectRatio -> 1, DisplayFunction -> $DisplayFunction]

[Graphics:../HTMLFiles/index_81.gif]

Out[109]=

-Graphics -


Converted by Mathematica  (March 7, 2003)