Vertex.setSmoothMethod

If the smoothing method is bezier, this indicates that the line should be drawn as a curve, rendered as a set of quadratic splines: one spline is drawn for the first and second line segments, one for the second and third, and so on. Straight-line segments can be generated within a curve by duplicating the end-points of the desired line segment. If the smoothing method is raw, this indicates that the line should also be drawn as a curve but where the list of coordinates is such that the first coordinate pair (and every third coordinate pair thereafter) is a knot point on a cubic bezier curve, and the other coordinates are control points on the cubic bezier curve. Straight line segments can be generated within a curve by making control points equal to their neighbouring knot points. If the last point is a control point and not a knot point, the point is repeated (one or two times) so that it also becomes a knot point.

mixintemplate Vertex()
setSmoothMethod
(
this T
)
()

Parameters

smoothMethod string

The smooth method.

Return Value

Type: auto

This item to aid method chaining.

See Also

Meta