How to measure total length of gensec which contains few curves ?