Avogadro::Rendering::ArcSector#
-
class ArcSector : public MeshGeometry#
The ArcSector class is a convenience class for creating an arc disk (e.g., part of a circle) from a MeshGeometry.
<avogadro/rendering/arcsector.h>
See also
ArcStrip for the edge of a circle.
Public Functions
-
inline ArcSector()#
-
inline ~ArcSector() override#
-
void setArcSector(const Vector3f &origin, const Vector3f &startEdge, const Vector3f &normal, float degreesCCW, float resolutionDeg)#
Define the sector.
- Parameters:
origin – Center of the circle from which the arc is cut.
startEdge – A vector defining an leading edge of the sector. The direction is used to fix the sector’s rotation about the origin, and the length defines the radius of the sector.
normal – The normal direction to the plane of the sector.
degreesCCW – The extent of the sector, measured counter-clockwise from startEdge in degrees.
resolutionDeg – The radial width of each triangle used in the sector approximation in degrees. This will be adjusted to fit an integral number of triangles in the sector. Smaller triangles (better approximations) are chosen if adjustment is needed.
-
inline ArcSector()#