几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】pline and selectionmarker (http://www.dimcax.com/hust/showthread.php?t=17905)

yang686526 2009-05-06 10:01 PM

【转帖】pline and selectionmarker
 
pline and selectionmarker
pline and selectionmarker
hi,
i've tried to override the pline method so i have this code
void odgsopenglvectorizeview:line(const odgipolyline& polyline, oduint32 fromindex,
oduint32 numsegs)
{
if(effectivelyvisible() && !regenabort())
{
oduint32 nb = (oduint32)polyline.numverts();
ontraitsmodified();
for (oduint32 i=0;i<nb;i++)
{
setselectionmarker(i+1);
m_pactiveentrypoint->geometry().plineproc(polyline, 0, i, 1);
}
}
}
with this code the vectorization is not good, for both lwpolyline. (continous linetype (white lwpolyline) and non continous linetype(yellow lwpolyline).
see attached file.
i'm using oda 2_1_0
you can reproduce in odamfcdll.
.
please help me.
attached files


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