几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】intersectwith function (http://www.dimcax.com/hust/showthread.php?t=16904)

yang686526 2009-05-06 04:01 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 05:28 AM.