freeyun 发表于 2004-3-30 10:55:00

看ObjectARX开发帮助遇到问题,谁来解释一下

在这个函数<FONT style="BACKGROUND-COLOR: #c0c0c0">Acad::ErrorStatus getBulgeAt(unsigned int index,</FONT><FONT style="BACKGROUND-COLOR: #c0c0c0">double&amp; bulge) 中</FONT>


bulge是什么意思?


帮助中的解释是这样的:The bulge factor is used to indicate how much of an arc segment is present at this vertex. The bulge factor is the tangent of one fourth the included angle for an arc segment, made negative if the arc goes clockwise from the start point to the endpoint.


看不懂。The bulge factor is the tangent of one fourth the included angle for an arc segment,这句怎么理解?请大家指教。

comseg007 发表于 2004-3-30 12:41:00

bulge:突起


       


AcGeCircArc::bulge() : ==tan(弧段的圆心角/4), 有正负之分,


顺时针为负,


如半圆的bulge==+或-1

freeyun 发表于 2004-3-30 13:05:00

多谢多谢,十分感激。


没想到tangent是正切的意思。


再问一句,bulge有什么数学含义吗(或者有什么作用)?怎么会设置这么一个参数呢?

freeyun 发表于 2004-3-30 13:21:00

哎,数学没学好。


想了想,似乎是为了衡量弧段的圆心角大小。


bulge&gt;0时,bulge越大则代表圆心角越大。


由于tan(x)在0~90度(=0~360度/4)是递增函数,这就是为什么要取1/4角度的原因。


不知道这样理解对不对?

comseg007 发表于 2004-3-31 00:03:00

知道了bulge 再加上玄的长度即可知道半径了,


知道玄的两点坐标,即可知道圆心坐标了,



我想这样表示弧是最节省内存或磁盘空间了。。。
页: [1]
查看完整版本: 看ObjectARX开发帮助遇到问题,谁来解释一下