Sphere

Model ElementThe Sphere element creates line segments between the specified markers.

Class Name

Sphere

Attribute Summary

Name Property Modifiable by command? Designable?
cm Reference (Marker) No Yes
radius Double () Yes
refinement_level Int ()  
material_inside Bool ()  
color String()  
hidden Bool() No

Usage

Sphere(cm=Marker(), radius=200)

Attributes

cm
Reference(Marker)
The marker is used as a coordinate system for the center of the Sphere graphic.
radius
Double()
The radius of the sphere.
refinement_level
Int()
Specifies the level of detail of the sphere entity.
Default is 2.
material_inside
Bool ()
Specifies if the graphic has material inside or outside. material_inside is a boolean flag (True/False).
True means the geometry is solid. In other words, it is filled with material and its exterior is devoid of material. Consequently, the surface normals of the geometry point outward.
False means the converse: The exterior of the geometry is filled with material and the interior is devoid of material. In this case, the surface normals of the geometry point inward.
color
String()
The color of the graphic for H3D animation. Specified as RGB (Red : Green : Blue).
hidden
Boolean
Specifies weather the graphics is being written to the H3D file or not.
  • True implies that the graphic is hidden and is not written to the H3D file.
  • False implies that the graphic is not hidden and is written to the H3D file.
This attribute is optional. When not specified, it defaults to False.

Comments

  1. See Properties for an explanation about what properties are, why they are used, and how you can extend these.