我在代码里面使用下面语句: Acad::ErrorStatus esPoly = Acad::eOk ; esPoly = m_pPolyline->getPointAtDist( dLength, ptPos ) ; //m_pPolyline为AcDb2dPolyline类型 执行后esPoly的值是-858993460,但是如果我在执行getPointAtDist前加上下面一句: esPoly = m_pPolyline->getFirstDeriv( ptPos, vtZDir ) ; 则getPointAtDist执行又是成功的,esPoly值为Acad::eOk,请问这是什么原因? 另外, double dLength = 0.0 ; AcGePoint3d ptEnd ; m_pPolyline->getEndPoint( ptEnd ) ; m_pPolyline->getDistAtPoint( ptEnd, dLength ) ; AcGePoint3d pt ; Acad::ErrorStatus esPoly = m_pPolyline->getPointAtDist( ptEnd, dLength ) ; 这里esPoly 为什么返回的是Acad::eInvalidInput?是不是因为精度原因?
|