Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeCircArc2d::OdGeCircArc2d Constructor (const OdGePoint2d&, const OdGePoint2d&, double, bool)
Syntax
C++
OdGeCircArc2d(const OdGePoint2d& startPoint, const OdGePoint2d& endPoint, double bulge, bool bulgeFlag = true);

Constructor for objects of the OdGeCircArc2d class.

Parameters
Description
startPoint
[in] Startpoint of an arc.
endPoint
[in] Endpoint of an arc.
bulge
[in] Bulge distance.
bulgeFlag
[in] Specifies how to interpret bulge distance for arc calculation.

The constructor creates an arc with the specified parameters. 

If a line is drawn between startPoint and endPoint, the distance between this line and the midpoint of the constructed arc is equal to the bulge distance. If bulgeFlag is true, the bulge is interpreted as the maximum distance between the arc and the chord between the two input points. If bulgeFlag is false, the bulge is interpreted as the tangent of 1/4 the included angle (tan(ang/4)), where ang is the angle of the arc segment between the two input points. The direction of the constructed arc is always counterclockwise. This constructor always constructs a bounded arc and cannot be used to construct a full circle.

Copyright © 2002-2022. Open Design Alliance All rights reserved.