*Graphic() - cylinder

Creates a cylinder graphic.

Syntax

*Graphic(gr_name,"gr_label",CYLINDER, body, point_1, POINT|VECTOR, point_2|vector_2, radius_1, radius_2, length, offset, [cap_flag], refinement_level)

Arguments

gr_name
The variable name of the graphic.
Data type: varname
gr_label
The descriptive label of the graphic.
Data type: label
CYLINDER
This argument indicates the graphic is a cylinder.
body
The body associated with the graphic.
Data type: Body
point_1
The location of one end of the cylinder.
Data type: Point
POINT|VECTOR
A keyword that indicates the alignment method.
point_2|vector_2
An entity variable referring to a Point or Vector which is based on the above keyword which provides the direction of the axis of the cylinder.
Data type: Point or Vector
radius_1
The radius of the cylinder at one end.
Data type: real
radius_2
The radius of the cylinder at the other end.
Data type: real
length
The length of the cylinder.
Data type: real
offset
Distance by which the origin of the cylinder is offset from point_1.
Data type: real
cap_flag
This argument indicates the end capping method. Valid values are: CAPBOTH|CAPBEGIN|CAPEND
Data type: keyword
refinement_level
Specifies the refinement for tessalation of the graphics for MotionSolve. Refer to the <Post_Graphic MotionSolve XML statement for additional information.
Data type: real

Example

*Point(p_follower_pivot,         "Follower pivot")
*Point(p_follower_pivot_axis,    "Follower pivot axis")
*RevJoint(j_follower_pivot,      "Follower pivot rj", 
                                 b_follower, 
                                 b_follower_att, 
                                 p_follower_pivot, 
                                 p_follower_pivot_axis)
*Graphic(g_follower_pivot,       "Follower pivot graphic", 
                                 CYLINDER, 
                                 j_follower_pivot.b1, 
                                 p_follower_pivot, 
                                 POINT, 
                                 p_follower_pivot_axis, 
                                 6, 6, 10, -5, 3)

Context

*BeginMdl()

*DefineAnalysis()

*DefineGraphic()

*DefineSystem()

Comments

If the alignment method is POINT, the axis of the cylinder is the vector passing through point_1 and point_2.

Providing the length argument is optional for the POINT alignment method. Leave this field blank to specify the distance between point_1 and point_2 as the length of the cylinder.

The cylinder ends are not capped if the last optional argument cap_flag is omitted.

radius_2 is parameterized to radius_1 when the cylinder graphic is created using the MotionView GUI. Specifying a different radius_2 will create a conical graphic.

Specify a value for the offset argument to offset the cylinder graphics from its origin point_1.