查看单个帖子
旧 2009-05-07, 06:21 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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();
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)