*Graphic() - sphere
Creates a sphere graphic.
Syntax
*Graphic(gr_name,"gr_label",SPHERE, body, origin, radius, refinement_level)
Arguments
- gr_name
- The variable name of the graphic.
- gr_label
- The descriptive label of the graphic.
- SPHERE
- This argument indicates the graphic is a sphere.
- body
- The body associated with the graphic.
- origin
- The location of center of the sphere.
- radius
- The radius of the sphere.
- refinement_level
- Specifies the refinement for tessalation of the graphics for MotionSolve. Refer to the <Post_Graphic MotionSolve XML statement for additional information.
Example
*Body(b_kn, "Knuckle", p_kn_cm)
*Point(p_lbj, "Lower ball joint")
*Graphic(gr_knuckle, "Knuckle" SPHERE,
b_kn,
p_lbj,
10
3)
Context
Comments
To avoid the graphic being visible during MotionSolve result animation in HyperView, set the hide_in_post attribute to {{true}}. For example: *Set(gra_link.hide_in_post, true). This option will set the graphic component's visibility to be turned off when the result H3D is loaded in HyperView.