Split curve a set of curve with a same lenght

Hello,

I tried to split a curve in set of curve with a same lenght.

for a straight line , it is very simple, but in my case i have a general curve Geom_Curve.

Does anyone have any suggestions for me?

Thanks in advance

Anton Popov's picture

I have found a solution:

Standard_Integer h_count = (Standard_Integer)ceil(step_dist);
GCPnts_QuasiUniformAbscissa cc(adaptor, h_count);
 if (cc.IsDone()) {
     Standard_Integer nc_count = cc.NbPoints();

.......................