

def polydecomposer(polygon):
    'Extracts the <gml:exterior> and <gml:interior> of a <gml:Polygon>.'
    exter = polygon.findall(('.//{%s}exterior' % ns_gml))
    inter = polygon.findall(('.//{%s}interior' % ns_gml))
    return (exter, inter)

dataset/ETHPy150Open tudelft3d/CityGML2OBJs/markup3dmodule.py polydecomposer/original