How to get the length of a Bezier Spline?

Is this already done in OCC or I have to do it by myself?

Rob Bachrach's picture

If you create an edge from your spline, you can use:

GProp_GProps myProps;
BRepGProp::LinearProperties(myEdge, myProps);
Standard_Real fLength = myProps.Mass();

tom jones's picture

Thanks, I will try that.