pyvista.DiscSource#
- class DiscSource(
- center: VectorLike[float] | None = None,
- inner: float = 0.25,
- outer: float = 0.5,
- r_res: int = 1,
- c_res: int = 6,
Disc source algorithm class.
Added in version 0.44.0.
- Parameters:
- centersequence[
float
], default: (0.0, 0.0, 0.0) Center in
[x, y, z]
. Middle of the axis of the disc.- inner
float
, default: 0.25 The inner radius.
- outer
float
, default: 0.5 The outer radius.
- r_res
int
, default: 1 Number of points in radial direction.
- c_res
int
, default: 6 Number of points in circumferential direction.
- centersequence[
Examples
Create a disc with 50 points in the circumferential direction.
>>> import pyvista as pv >>> source = pv.DiscSource(c_res=50) >>> source.output.plot(show_edges=True, line_width=5)
Methods
Attributes
Get number of points in circumferential direction.
Get the center in
[x, y, z]
.Get the inner radius.
Get the outer radius.
Get the output data object for a port on this algorithm.
Get number of points in radial direction.