medial axis :
added hackish flat vertex support