Circle

Model ElementThe Circle element allows you to generate a circle graphic defined by a center marker and a reference marker or a radius.

Class Name

Circle

Attribute Summary

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

Usage

Circle(cm=Marker(), radius=100, seg=20, rm=Marker())
cm
Reference(Marker)
The marker that defines the center of the Circle.
Mandatory.
radius
Double()
The radius of the Circle.
rm
Reference(Marker)
The marker is used to compute the radius of the circle. This attribute is mutually exclusive with the radius attribute.
seg
Int()
Specifies the number of segments used to represent the circle.
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.

Example

Define circle geometry

Circle (cm=marker1,rm=marker2, seg=20)

Comments

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