Back to 3D Visualization (VTK)
vtk.cylinder
Create cylinder geometry
Syntax
vtk.cylinder() vtk.cylinder(height, radius) vtk.cylinder(height, radius, resolution)
Description
Creates a VTK cylinder source with specified height, radius, and resolution.
Parameters
| Name | Description |
|---|---|
| height(optional) | Cylinder height (default: 1) |
| radius(optional) | Cylinder radius (default: 0.5) |
| resolution(optional) | Number of facets around circumference (default: 32) |
Returns
null (renders cylinder inline)