Exporting Curvature Data

Hi @bserrano
If you set the number of points per interpolating segment to 1, then you basically get a curvature measurement for n=control points.
You can set the number of points per interpolating segment to 1 using:
curve_node.SetNumberOfPointsPerInterpolatingSegment(1)

To get number of control points per curve_node use:
curve_node.GetNumberOfControlPoints()

To get number of curvature points just measure length of curvature array:

curvature = arrayFromMarkupsCurveData(curve_node, "Curvature", world=True)
len(curvature)

I don’t know why you would want to do this though, because to get better curvature measurements you need a small number of control points and a large number of points per interpolating segment, at least that works for my case.
In general, I found it very useful to visualize the curvature values as mentioned in this post Separating centerline metrics - #9 by som1197