*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.
- gr_label
- The descriptive label of the graphic.
- CYLINDER
- This argument indicates the graphic is a cylinder.
- body
- The body associated with the graphic.
- point_1
- The location of one end of the cylinder.
- 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.
- radius_1
- The radius of the cylinder at one end.
- radius_2
- The radius of the cylinder at the other end.
- length
- The length of the cylinder.
- offset
- Distance by which the origin of the cylinder is offset from point_1.
- cap_flag
- This argument indicates the end capping method. Valid values are: CAPBOTH|CAPBEGIN|CAPEND
- refinement_level
- Specifies the refinement for tessalation of the graphics for MotionSolve. Refer to the <Post_Graphic MotionSolve XML statement for additional information.
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
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.