pyvista.LineSource

Contents

pyvista.LineSource#

class LineSource(
pointa: VectorLike[float] = (-0.5, 0.0, 0.0),
pointb: VectorLike[float] = (0.5, 0.0, 0.0),
resolution: int = 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.