Cylinder

The Cylinder source can be used to add a polygonal cylinder to the 3D scene. The radius, height, and center of the cylinder, the resolution of the polygonal approximation, and whether or not the cylinder is capped can be changed used the property sheet. The cylinder can be  translated, rotated, and scaled using the Actor control area of the Display tab for this source, and it can be interactively positioned using the Move operation of the camera.  The object created by this source is a vtkCylinderSource object, and the output of this source is vtkPolyData. The output polydata has normals and texture coordinates defined. An example of a cylinder source is given on the right.

 

 

The Cylinder source has the following parameters:

 

Resolution: This value indicates the number of divisions around the cylinder. The higher this number, the closer the polygonal approximate will come to representing a cylinder, and the more polygons it will contain. The default resolution is 6.

 

Radius:This is the radius of the cylinder. The default value is 0.5.

 

Height: This is the height of the cylinder. The default value is 1.0.

 

Center: These three values represent the coordinate value at the center of the cylinder. By default, the cylinder is centered on (0,0,0).

 

Capping: This check box indicates whether the cylinder is capped (there are two N sided polygons closing off the cylinder where N is the resolution) or open. By default the cylinder will be capped.