Port PolygonHolder to Scala Trait