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

yang686526 2009-05-06 10:00 PM

【转帖】pline and odgimetafilerimplplineproc
 
pline and odgimetafilerimpl::plineproc
pline and odgimetafilerimpl::plineproc
hi,
here is my problem:
currently odgimetafilerimpl::plineproc fff">is commented out in gimetafiler.cppfff">, and i'm trying to implement like this:
code:
void odgimetafilerimpl::plineproc(const odgipolyline& lwbuf,
const odgematrix3d* pxform,
oduint32 fromindex,
oduint32 numsegs)
{
recpline* ppline;
add(ppline = new recpline);
ppline->plwbuf= odgipolyline::cast(&lwbuf)->clone();
ppline->pxform = pxform;
ppline->fromindex = fromindex;
ppline->numsegs = numsegs ;
}
the reason i'm doing so is that we're having problem with displaying plinefff"> when gsmodelfff"> is turned on. the arc is not drawn smooth when zoom in. the vector caching for plinefff"> is not the same as for circulararcfff"> or circlefff">. i'm trying to do the same thing for plinefff"> here. the above code seems work for me, but is this the right approach? should i do something differently? why was odgimetafilerimpl::plineproc fff"> commented out?
i appreciate any answers. thanks.
angela
hi,
your code seems fine.
we commented it out to make cache redrawing faster - to do not process so complex primitive as pline every time.
thank you.
angela


所有的时间均为北京时间。 现在的时间是 09:44 PM.