高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】求助:movegrippointsat中参数的意义和用法?
求助:movegrippointsat中参数的意义和用法?
求助:movegrippointsat中参数的意义和用法?
如题:该函数原型如下:
virtual acad::errorstatus movegrippointsat( const acdbintarray& indices, const acgevector3d& offset);
请问第一个参数具体如何使用?,帮助文件说是指示getgrippoints函数得到的夹点中当前“hot”夹点的index,问题是:indices是一个数组,一般我在例子中看到的是用indices[0]来得到当前热点的索引值,那么indices[1]、indices[2]......等等得到的是什么索引呢?
另外,getgrippoints( acgepoint3darray& grippoints, acdbintarray& osnapmasks, acdbintarray& geomids) const 函数中的第一参数grippoints帮助文件说是pre-existing array to append grip points ,并说最好是在自定义实体中append自己的夹点,而不应该用赋值(assigning ),因为grippoints可能已经有了别的实体的夹点,?此话何解?“别的实体”?原文如下:the grippoints array is passed to all entities involved in the grip operation, so the array may already contain grip points for other entities. therefore, it is very important to append the new points rather than assigning them to any existing elements in the array.
已解决
已了解到关键原因://移动grippoint时, cad按shift可以选中多个grippoint!!以前还不知道夹点也可以选中多个!幼稚啊
|