pyvista.ConeSource#
- class ConeSource(
- center: VectorLike[float] = (0.0, 0.0, 0.0),
- direction: VectorLike[float] = (1.0, 0.0, 0.0),
- height: float = 1.0,
- radius: float | None = None,
- capping: bool = True,
- angle: float | None = None,
- resolution: int = 6,
Cone source algorithm class.
- Parameters:
- centersequence[
float
], default: (0.0, 0.0, 0.0) Center in
[x, y, z]
. Axis of the cone passes through this point.- directionsequence[
float
], default: (1.0, 0.0, 0.0) Direction vector in
[x, y, z]
. Orientation vector of the cone.- height
float
, default: 1.0 Height along the cone in its specified direction.
- radius
float
,optional
Base radius of the cone.
- cappingbool, default:
True
Enable or disable the capping the base of the cone with a polygon.
- angle
float
,optional
The angle in degrees between the axis of the cone and a generatrix.
- resolution
int
, default: 6 Number of facets used to represent the cone.
- centersequence[
Examples
Create a default ConeSource.
>>> import pyvista as pv >>> source = pv.ConeSource() >>> source.output.plot(show_edges=True, line_width=5)
Methods
Attributes
Get the angle in degrees between the axis of the cone and a generatrix.
Enable or disable the capping the base of the cone with a polygon.
Get the center in
[x, y, z]
.Get the direction vector in
[x, y, z]
.Get the height along the cone in its specified direction.
Get the output data object for a port on this algorithm.
Get base radius of the cone.
Get number of points on the circular face of the cone.