Navigation
API > API/Plugins > API/Plugins/SVGImporter > API/Plugins/SVGImporter/FSVGImporterUtils
Description
Given a threshold, returns a list of vertices along the specified spline that, treated as a list of segments (polyline), matches the spline shape. This function is a reviewed implementation of USplineComponent::ConvertSplineToPolyLine.
| Name | ConvertSVGSplineToPolyLine |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/SVGImporter/Source/SVGImporter/Public/SVGImporterUtils.h |
| Include Path | #include "SVGImporterUtils.h" |
| Source | /Engine/Plugins/VirtualProduction/SVGImporter/Source/SVGImporter/Private/SVGImporterUtils.cpp |
static bool ConvertSVGSplineToPolyLine
(
const USplineComponent * InSplineComponent,
ESplineCoordinateSpace::Type InCoordinateSpace,
float InMaxSquareDistanceFromSpline,
TArray < FVector > & OutPoints
)
Parameters
| Name | Remarks |
|---|---|
| InSplineComponent | The spline to be fitted |
| InCoordinateSpace | The coordinate space to be used |
| InMaxSquareDistanceFromSpline | Fitting threshold |
| OutPoints | The polyline, as a list of Vectors |