几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】vectorization Problem Only A Subarea Is Vectorized (http://www.dimcax.com/hust/showthread.php?t=18998)

yang686526 2009-05-07 06:21 PM

【转帖】vectorization Problem Only A Subarea Is Vectorized
 
vectorization problem: only a subarea is vectorized
vectorization problem: only a subarea is vectorized
hi,
while loading some dwg files (but not all) the vectorization is generating only information for objects inside a small rectangular area. loading the drawings using the free dwg viewer shows all the drawing.
any idea of why i'm reading only a part but not all the drawing?
my code is based on the vectorization example. the main difference is that i don't transform the coordinates to screen coordinates. what i do is:
void exsimpleview::update()
{
...
odgematrix3d eye2screen(geteyetoworldtransform());
...
i set also a dummy onsize as:
odgsdcrect screenrect(odgsdcpoint( 0.0, 0.0 ), odgsdcpoint( 10000.0, 10000.0 ));
pdevice->onsize(screenrect);
thanks,
david

dear david,
exsimpleview::update() contains some code, illustrating dd vector viewport clipping. probably you need to comment these lines:
code:
pushclipboundary(&m_eyeclip);
popclipboundary();
sincerely yours,
george udov
you are right. thanks a lot !
david
quote:
originally posted by george udov
dear david,
exsimpleview::update() contains some code, illustrating dd vector viewport clipping. probably you need to comment these lines:
code:
pushclipboundary(&m_eyeclip);
popclipboundary();


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