spline

Mapdl.spline(p1='', p2='', p3='', p4='', p5='', p6='', xv1='', yv1='', zv1='', xv6='', yv6='', zv6='', **kwargs)

Generate a segmented spline through a series of keypoints.

APDL Command: SPLINE

The output from this command is a series of connected lines (one line between each pair of keypoints) that together form a spline. Note that solid modeling in a toroidal coordinate system is not recommended.

Parameters
p1, p2, p3, … , p6

Keypoints through which the spline is fit. At least two must be defined.

Returns
list

List of line numbers generated.

Examples

Create a spline with 5 keypoints.

>>> k0 = mapdl.k('', 0, 0, 0)
>>> k1 = mapdl.k('', 0.2, 0.2, 0)
>>> k2 = mapdl.k('', 0.4, 0.3, 0)
>>> k3 = mapdl.k('', 0.6, 0.5, 0)
>>> k4 = mapdl.k('', 0.8, 0.3, 0)
>>> lines = mapdl.spline(k0, k1, k2, k3, k4)
>>> lines
[1, 2, 3, 4]
Return type

list