I am trying to get the number of curves/bends of a polyline. I know that I can accomplish this by getting the vertices of the polyline, and check the from and to and compare thier angles, if they match then no bend, if they dont match then thats a bend/curve. I am hoping that arcobjects might have an existing function that accomplishes that. any ideas ?the pictures below shows the required.
public static int GetNumberOfCurves(this Ipolyline crntEdge){// what I can do here is cast the polyline into IPointCollection// get each point and get the from and to and compare the angles. // but I am hoping there is something within the Apis that can get thosen curves}
أكثر...

public static int GetNumberOfCurves(this Ipolyline crntEdge){// what I can do here is cast the polyline into IPointCollection// get each point and get the from and to and compare the angles. // but I am hoping there is something within the Apis that can get thosen curves}
أكثر...