Motion of Curves Constrained on Surfaces Using a Level-Set Approach