TA的每日心情![](source/plugin/dsu_paulsign/img/emot/kx.gif) | 开心 昨天 15:23 |
---|
签到天数: 69 天 [LV.6]常住居民II
管理员
- 积分
- 2704
|
bool PtLeftOfCurve(const AcDbCurve* pCurve, AcGePoint3d pt)
{
AcGePoint3d ptOnCurve;
pCurve->getClosestPointTo(pt, ptOnCurve);
AcGeVector3d deriv1, testvec; pCurve->getFirstDeriv(ptOnCurve, deriv1);
testvec = pt.asVector() - ptOnCurve.asVector();
return (testvec.perpVector().isCodirectionalTo(deriv1));
} |
|