|
- 算法(注意得到的值是逆时针走向的凸度)
- double GetBulge(AcDbArc*& pArc)
- {
- double dStartAngle = pArc->startAngle();
- double dEndAngle = pArc->endAngle();
- double dAlfa = dEndAngle - dStartAngle;
- if (dAlfa < 0.0)//如果终点角度小于起点角度
- {
- dAlfa = 2 * PI + dAlfa;
- }
- double dBulge = 0.0;
- dBulge = tan((dAlfa) / 4.0);
- return dBulge;
- }
复制代码 |
|