/Engine/Source/Runtime/Engine/Classes/Components/SplineComponent.h
Given a threshold, recursively sub-divides the spline section until the list of segments (polyline) matches the spline shape.
bool DivideSplineIntoPolylineRecursive ( float StartDistanceAlongSpline, float EndDistanceAlongSpline, [ESplineCoordinateSpace::Type](API\Runtime\Engine\Components\ESplineCoordinateSpace__Type) CoordinateSpace, const float MaxSquareDistanceFromSpline, [TArray](API\Runtime\Core\Containers\TArray)< FVector > & OutPoints ) const