add miter class, ugly hack in polygon.py to make OpenEMS mesh reasonably