请问怎么样读取多点,谢谢
<p>在用ObjectARX做AutoCAD的二次开发中</p><p>......</p><p>AcDbDwgFiler *pFiler;</p><p>for (UInt32 i = 0; i != m_pnts_num; i++)<br/> pFiler->readPoint3d(&m_pnts); </p><p>m_pnts是一个vector<AcGePoint3d >类型,m_pnts_num是此容器的元素个数,每次有用户确定</p><p>调试的时候pFiler->readPoint3d(&m_pnts)处出现错误,因为点的数量不定,无法穷尽,要用类似容器或数组保存</p><p>请问怎么解决这个问题,本人感激不尽!!!</p><p><br/> </p><p></p> <p>AcDbDwgFiler *pFiler;<br/>AcGePoint3d pt;<br/>AcGePoint3dArray ptSet;</p><p>while (pFiler->readPoint3d(pt) == Acad::eOk)<br/>{<br/> ptSet.append(pt);<br/>}</p>
页:
[1]