MultipleLines#

MultipleLines(points=[[- 0.5, 0.0, 0.0], [0.5, 0.0, 0.0]])[source]#

Create multiple lines.

Parameters
pointsnp.ndarray or list, optional

List of points defining a broken line, default is [[-0.5, 0.0, 0.0], [0.5, 0.0, 0.0]].

Returns
pyvista.PolyData

Line mesh.

Examples

Create a multiple lines between (0, 0, 0), (1, 1, 1) and (0, 0, 1).

>>> import pyvista
>>> mesh = pyvista.MultipleLines(points=[[0, 0, 0], [1, 1, 1], [0, 0, 1]])
>>> mesh.plot(color='k', line_width=10)
../../../_images/pyvista-MultipleLines-1_00_00.png