Fill a Polyline as a PolygonGraphics

Hello, I am rendering a huge quantity of PolygonGraphic Entities and I want to know if I can use Polylines instead. Is there any way I can use Material to fill a Polyline? Or can you tell me if there is a better component to render a lot of polygons?