Convert _KPolygon to Scala