Method FitSplineToPoints
FitSplineToPoints(List<float3>, float, bool, out Spline)
Computes a Spline to approximate the curve formed by the list of provided points within the given error threshold.
Declaration
public static bool FitSplineToPoints(List<float3> points, float errorThreshold, bool closed, out Spline spline)
Parameters
Type | Name | Description |
---|---|---|
List<float3> | points | The list of float3 points that define the curve to approximate. |
float | errorThreshold | The error threshold to use. Represents the largest distance between any of the provided points and the curve. |
bool | closed | Whether to close the Spline. |
Spline | spline | The output Spline fitted to the points, or an empty spline if could not be fitted. |
Returns
Type | Description |
---|---|
bool | Whether a curve could be fitted according to the provided error threshold. |