Skip to content

CleanSpline

Juju Adams edited this page Mar 15, 2021 · 5 revisions

CleanSpline(controlPointArray, segments)

Returns: Polyline struct

Name Datatype Purpose
controlPointArray array Array of x/y coordinate pairs for control points for the spline
segments integer Number of segments to use to build the spline

Splinesdefined using this function are no different internally to the standard polyline shape. Please see the CleanPolyline() documentation for available methods.

N.B. A shape will only draw when you call the .Draw() method. Splines (and polylines) tend not to cope well with very sharp angles and very short distances so be careful about the geometry you're trying to draw.