The circle object uses the center, radius, normal, and thickness properties to define the geometry
to be drawn. In examples, the pCircle variable stores a pointer to the circle object.
Center
The Center property defines the center of the circle in three-dimensional coordinates. The center has the
coordinates (0,0,0) by default.
To get the center, use the center() method which does not have arguments and returns the three-dimensional
point as an instance of the OdGePoint3d type. For example:
OdGePoint3d center = pCircle->center();
odPrintConsoleString(L"\nCenter = (%g,%g,%g)", center.x, center.y, center.z);
To set the center, use the setCenter() method which requires the three-dimensional point as an argument
of the OdGePoint3d type and does not return a value. For example:
To set the radius, use the setRadius() method which requires a positive Double value as an argument
and does not return a value. For example:
pCircle->setRadius(3.2);
Normal
The Normal property defines the normal to the plane in which the circle is placed. The normal defines the
orientation of the circle in world space. The normal has the coordinates (0,0,1) by default.
To get the normal, use the normal() method which does not have arguments and returns the three-dimensional
vector as an instance of the OdGeVector3d type. For example:
OdGeVector3d normal = pCircle->normal();
odPrintConsoleString(L"\nNormal = (%g,%g,%g)", normal.x, normal.y, normal.z);
To set the normal, use the setNormal() method which requires the three-dimensional vector as an argument
of the OdGeVector3d type and does not return a value. For example:
The Thickness property defines the thickness of the circle as a Double value in drawing units. A positive value
defines the thickness to be drawn along the normal direction. A negative value defines the thickness to be
drawn in the opposite direction from the normal. A zero value defines a circle without thickness. The thickness
is zero by default.
To get the thickness, use the thickness() method which does not have arguments and returns the thickness
as a Double value. For example: