*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.
Data type: varname
gr_label
The descriptive label of the graphic.
Data type: label
SPHERE
This argument indicates the graphic is a sphere.
body
The body associated with the graphic.
Data type: Body
origin
The location of center of the sphere.
Data type: Point
radius
The radius of the sphere.
Data type: real
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

*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

*BeginMdl()

*DefineAnalysis()

*DefineGraphic()

*DefineSystem()

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.