Factored out polygon type

More polygon creation algorithms are supported (currently only ``simple`` is implemented).