Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USplineComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SplineComponent.h |
| Include | #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
Remarks
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.