MIL_ID List3dgraId,  //in 
MIL_INT64 ParentLabel,  //in 
MIL_INT64 CreationMode,  //in 
MIL_DOUBLE XPos1,  //in 
MIL_DOUBLE YPos1,  //in 
MIL_DOUBLE ZPos1,  //in 
MIL_DOUBLE XPos2OrVector,  //in 
MIL_DOUBLE YPos2OrVector,  //in 
MIL_DOUBLE ZPos2OrVector,  //in 
MIL_DOUBLE Radius,  //in 
MIL_DOUBLE Length,  //in 
MIL_INT64 ControlFlag  //in 
This function adds a cylinder graphic to the specified 3D graphics list, allowing you to, for example, view the cylinder graphic on a 3D display.
You must specify the label of the 3D graphic, in the 3D graphics list, to use as the parent of the cylinder graphic. When the cylinder graphic is added to the 3D graphics list's tree structure, it is added as a child under the specified parent. If the 3D graphics list is empty, the cylinder graphic's parent must be the root node. All coordinates are expressed in the coordinate system of the cylinder graphic's parent.
The cylinder graphic has its own coordinate system that represents the cylinder graphic's position and orientation with respect to its parent's coordinate system. The origin of the cylinder graphic's coordinate system is the cylinder graphic's start point, and its Zaxis is the cylinder graphic's central axis. You can inquire the cylinder graphic's start point using M3dgraInquire() with M_START_POINT_....
To modify or inquire 3D graphics list settings, use M3dgraControl() or M3dgraInquire(), respectively.
Unlike most other functions that modify a MIL object, you can call this function concurrently from multiple threads on the same MIL 3D graphics list (List3dgraId) without using an M_MUTEX object, as long as all the other parameters of the concurrent calls do not also share data.
Specifies the label of the parent of the cylinder graphic in the 3D graphics list.
For specifying the parent label


Value  Description  
M_DEFAULT 
Same as M_ROOT_NODE. 

M_ROOT_NODE 
Specifies the topmost node of the 3D graphics list. 

Value >= 0 
Specifies the label of the parent of the cylinder graphic in the 3D graphics list. 
Specifies how the cylinder graphic is defined.
See the Parameter associations section for possible values that can be specified.
Specifies the first parameter used to define the cylinder graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the second parameter used to define the cylinder graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the third parameter used to define the cylinder graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the fourth parameter used to define the cylinder graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the fifth parameter used to define the cylinder graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the sixth parameter used to define the cylinder graphic.
See the Parameter associations section for possible values that can be specified.
Specifies the cylinder graphic's radius.
For specifying the cylinder graphic's
radius


Value  Description  
Value > 0.0 
Specifies the cylinder graphic's radius. 
Specifies to override the default cylinder graphic's length.
For specifying to override the default cylinder
graphic's length


Value  Description  
M_DEFAULT 
Specifies the default length defined by the creation mode. 

M_INFINITE 
Specifies an infinite cylinder graphic. 

Value > 0.0 
Specifies to override the cylinder graphic's length with a specific value. 
The table below lists possible values for the CreationMode, XPos1, YPos1, ZPos1, XPos2OrVector, YPos2OrVector, and ZPos2OrVector parameters.
For specifying the cylinder graphic


CreationMode  Description  
XPos1  
YPos1  
ZPos1  
XPos2OrVector  
YPos2OrVector  
ZPos2OrVector  
M_POINT_AND_VECTOR 
Defines the cylinder graphic using a point on the cylinder graphic's central axis and a nonzero vector defining the central axis direction. 

XPos1 
Specifies the Xcoordinate of the point on the cylinder graphic's central axis. 

YPos1 
Specifies the Ycoordinate of the point on the cylinder graphic's central axis. 

ZPos1 
Specifies the Zcoordinate of the point on the cylinder graphic's central axis. 

XPos2OrVector 
Specifies the Xcomponent of the vector defining the central axis direction. 

YPos2OrVector 
Specifies the Ycomponent of the vector defining the central axis direction. 

ZPos2OrVector 
Specifies the Zcomponent of the vector defining the central axis direction. 

M_TWO_POINTS 
Defines the cylinder graphic using any two nonidentical points on the cylinder graphic's central axis. 

XPos1 
Specifies the Xcoordinate of the first point on the cylinder graphic's central axis. 

YPos1 
Specifies the Ycoordinate of the first point on the cylinder graphic's central axis. 

ZPos1 
Specifies the Zcoordinate of the first point on the cylinder graphic's central axis. 

XPos2OrVector 
Specifies the Xcoordinate of the second point on the cylinder graphic's central axis. 

YPos2OrVector 
Specifies the Ycoordinate of the second point on the cylinder graphic's central axis. 

ZPos2OrVector 
Specifies the Zcoordinate of the second point on the cylinder graphic's central axis. 
Header  Include mil.h. 
Library  Use mil.lib; mil3d.lib. 
DLL  Requires mil.dll; mil3d.dll. 