SMS dit: Structural geology algorithms: