pyvista.LineSource#

class LineSource(pointa=(-0.5, 0.0, 0.0), pointb=(0.5, 0.0, 0.0), resolution=1)[source]#

Create a line.

Added in version 0.44.

Parameters:
pointasequence[float], default: (-0.5, 0.0, 0.0)

Location in [x, y, z].

pointbsequence[float], default: (0.5, 0.0, 0.0)

Location in [x, y, z].

resolutionint, default: 1

Number of pieces to divide line into.

Methods

Attributes

LineSource.output

Get the output data object for a port on this algorithm.

LineSource.pointa

Location in [x, y, z].

LineSource.pointb

Location in [x, y, z].

LineSource.resolution

Number of pieces to divide line into.