Port VisiblePoint to Scala