return of geomFact.createPolygon passed to auto_ptr