closed curve ; open curve