Avogadro::Rendering::ArcStrip#
-
class ArcStrip : public LineStripGeometry#
The ArcStrip class is a convenience class for creating an arc line (e.g., the edge of a circle).
<avogadro/rendering/arcstrip.h>
Public Functions
-
inline ArcStrip()#
-
inline ~ArcStrip() override#
-
void setArc(const Vector3f &origin, const Vector3f &start, const Vector3f &normal, float degreesCCW, float resolutionDeg, float lineWidth)#
Define the arc.
- Parameters:
origin – Center of the circle from which the arc is cut.
start – A vector pointing from the origin to the start of the arc.
normal – The normal direction to the plane of the circle.
degreesCCW – The extent of the arc, measured counter-clockwise from start in degrees.
resolutionDeg – The radial width of each segment used in the arc approximation, in degrees. This will be adjusted to fit an integral number of segments into the arc. Smaller segments (better approximations) are chosen if adjustment is needed.
lineWidth – The width of the line.
-
inline ArcStrip()#