查看单个帖子
旧 2009-05-06, 04:01 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】intersectwith function

intersectwith function
intersectwith function
hi,all
i'd like to be told how to use the intersectwith fuction to get intersection points between a line and a polyline.
the code is as below:
...
oddblineptr pline = lineid.safeopenobject(oddb::kforwrite);
oddbpolylineptr ppoly = polylineid.safeopenobject(oddb::kforwrite);
oddb::intersect inttype;
pline->intersectwith(ppoly,0,points,0,0); //intersection points
the compiler said no intersectwith member function for oddbline(oddbentity):
error c2039: 'intersectwith' : is not a member of 'oddbline'
e:\developlib\opendesign252\include\dbline.h(36) : see declaration of 'oddbline'
i do see the declaration of intersectwith in dbentity.h, why this error comes?
any post is appreciated.
colinss
till dwgdirect 2.6 this function was commented out in dbentity.h
since 2.6 the function is uncommented but where is still no actual implementation for it. it tries to call client-supplied protocol extension to perform the job. see 2.6 release notes.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)