Reference Guide > C Routines > CYLINDER Function
  

CYLINDER Function
Defines a cylindrical object that can be used by the RENDER function.
Usage
result = CYLINDER( )
Parameters
None.
Returned Value
resultA structure that defines a cylinder object.
Keywords
ColorA 256-element double-precision floating-point vector containing the color (intensity) coefficients of the object. (Default: Color(*)=1.0)
DecalA 2D array of bytes whose elements correspond to indices into the arrays of material properties.
KambA 256-element double-precision floating-point vector containing the ambient (flat shaded) coefficients. (Default: Kamb(*)=0.0)
KdiffA 256-element double-precision floating-point vector containing the diffuse reflectance coefficients. (Default: Kdiff(*)=1.0)
KtranA 256-element double-precision floating-point vector containing the specular transmission coefficients. (Default: Ktran(*)=0.0)
TransformA 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’s Guide.
 

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.