Cone(center=(0.0, 0.0, 0.0), direction=(1.0, 0.0, 0.0), height=1.0, radius=None, capping=True, angle=None, resolution=6)[source]#

Create a cone.

centeriterable, optional

Center in [x, y, z]. Axis of the cone passes through this point.

directioniterable, optional

Direction vector in [x, y, z]. Orientation vector of the cone.

heightfloat, optional

Height along the cone in its specified direction.

radiusfloat, optional

Base radius of the cone.

cappingbool, optional

Enable or disable the capping the base of the cone with a polygon.

anglefloat, optional

The angle in degrees between the axis of the cone and a generatrix.

resolutionint, optional

Number of facets used to represent the cone.


Cone mesh.


Create a default Cone.

>>> import pyvista
>>> mesh = pyvista.Cone()
>>> mesh.plot(show_edges=True, line_width=5)