- UID
- 215174
- 积分
- 286
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2005-1-29
- 最后登录
- 1970-1-1
|
发表于 2006-8-22 08:53:54
|
显示全部楼层
XD回答过这个问题,转述如下
1、首先用:
[PHP]virtual Acad::ErrorStatus getFirstDeriv( const AcGePoint3d& unnamed, AcGeVector3d& firstDeriv) const;
[/PHP]
unnamed Input point on curve at which to find the first derivative
firstDeriv Returns the first derivative of the curve at point
This function evaluates the first derivative of the curve at point and sets
firstDeriv to the result, in both this class and derived classes. Both point
and firstDeriv are in WCS coordinates in derived classes.
Returns Acad::eOk if successful. If point is not on the curve, then
Acad::eInvalidInput is returned. Other ErrorStatus return values are up to
the implementor.
For implementation, the AcGe classes may provide some of the necessary
functionality to make the job easier.
In the default implementation, the function returns Acad::eNotImplemented
得到曲线在该点p1的一阶导数(切线矢量)vec1
2、由vec1使用:
[PHP]AcGeVector3d::perpVector Function AcGeVector3d
perpVector() const; [/PHP]
Returns a vector orthogonal to this vector. The choice of the orthogonal
vector is determined by the function
得到垂向量vec2 后,那么过曲线任一点的“垂线”也就得到了。
我认为ARX编程最高效的地方就在于这个AcGe几何库。 |
|