CYLINDER Function

Defines a cylindrical object that can be used by the RENDER function.

Usage

    result = CYLINDER( )

Parameters

None.

Returned Value

result—A structure that defines a cylinder object.

Keywords

Color—A 256-element double-precision floating-point vector containing the color (intensity) coefficients of the object. (Default: Color(*)=1.0)

Decal—A 2D array of bytes whose elements correspond to indices into the arrays of material properties.

Kamb—A 256-element double-precision floating-point vector containing the ambient (flat shaded) coefficients. (Default: Kamb(*)=0.0)

Kdiff—A 256-element double-precision floating-point vector containing the diffuse reflectance coefficients. (Default: Kdiff(*)=1.0)

Ktran—A 256-element double-precision floating-point vector containing the specular transmission coefficients. (Default: Ktran(*)=0.0)

Transform—A 4-by-4 double-precision floating-point array containing the local transformation matrix whose default is the identity matrix.

Discussion

A CYLINDER is used by the RENDER function to render cylindrical objects, such as for molecular modeling (symbolizing bonds), or for generating axes and 3D lines. It is defined as having a radius of 0.5 and being centered at the origin with a height of 0.5 in the +z direction and 0.5 in the –z direction.

To change the dimensions and orientation of a CYLINDER, use the Transform keyword.

Example

T3D, /Reset, Rotate=[90, 0., 0]
c = CYLINDER(Transform=!P.T)
TVSCL, RENDER(c)

See Also

CONE,  MESH,  RENDER,  SPHERE,  VOLUME

For more information, see the PV‑WAVE User Guide.