Self measuring of curves