*Graphic() - offset cylinder
Creates an offset cylinder graphic.
Syntax
*Graphic(gr_name,"gr_label",CYLINDER, body, point_1, POINT|VECTOR, point_2|vector_2, radius_1, radius_2, length, offset, [CAPBOTH|CAPBEGIN|CAPEND])
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 .
- CAPBOTH CAPBEGIN CAPEND
- An optional argument that identifies if either or both cylinder ends should be capped.
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)
Context
Comments
If point_2 is used instead of vector in the argument list, the axis of the cylinder is the vector passing through point_1 and point_2. The cylinder ends are not capped if the optional argument is omitted.