Adding clear to TriangleFan

Following Sam Hellawells patch, the TriangleFan also get a clear method.
The clear method now also includes a call to setGeometryInvalid.