Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USplineComponent
Description
Given a threshold and a start and end distance range, returns a list of vertices along the spline that, treated as a list of segments (polyline), matches the spline shape in that range. Also fills a list of corresponding distances along the spline for each point.
| Name | ConvertSplineToPolyline_InDistanceRange |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SplineComponent.h |
| Include Path | #include "Components/SplineComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SplineComponent.cpp |
UFUNCTION (BlueprintPure=false, Category=Spline)
bool ConvertSplineToPolyline_InDistanceRange
(
ESplineCoordinateSpace::Type CoordinateSpace,
const float MaxSquareDistanceFromSpline,
float StartDistAlongSpline,
float EndDistAlongSpline,
TArray < FVector > & OutPoints,
TArray < double > & OutDistancesAlongSpline,
bool bAllowWrappingIfClosed
) const