Cone#
- Cone(
- 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,
Create a cone.
- 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,
optional 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[
- Returns:
pyvista.PolyDataCone mesh.
Examples#
Download Python source code | Download Jupyter notebook
Create a default Cone.
Used In#
Docstring Examples
AxesActor(1 use)AxesAssembly(1 use)AxesAssemblySymmetric(1 use)DataObjectFilters.rotate(1 use)Label(1 use)24 more
MultiBlock(1 use)MultiBlock.append(1 use)MultiBlock.bounds(1 use)MultiBlock.copy(1 use)MultiBlock.length(1 use)MultiBlock.n_blocks(1 use)MultiBlock.set_block_name(1 use)MultiBlock.volume(1 use)PartitionedDataSet(1 use)PartitionedDataSet.copy(1 use)Plotter.add_legend_scale(1 use)Plotter.add_ruler(1 use)Plotter.set_background(1 use)Plotter.set_color_cycler(1 use)Plotter.show_grid(1 use)Plotter.where_is(1 use)Renderer.add_legend_scale(1 use)Renderer.add_ruler(1 use)Renderer.set_background(1 use)Renderer.set_color_cycler(1 use)Renderer.show_grid(1 use)Theme.color_cycler(1 use)Transform(1 use)plot_compare(1 use)
Gallery Examples