几何尺寸与公差论坛

 找回密码
 注册
查看: 944|回复: 0

【转帖】dynamically change the view

[复制链接]
发表于 2009-4-12 20:45:24 | 显示全部楼层 |阅读模式
dynamically change the view
hello everyone,
i'm presently working on a c# addin and i'm trying to dynamically move the view (called modelview i guess). i can't manage to obtain a fluid and nice result with the method i'm using now. here is what i'm doing :
doc = swapp.iactivedoc2;
view = doc.iactiveview;
view.enablegraphicsupdate = false;
view.translateby(tx, ty);
view.zoombyfactor(1 + tz);
view.rotateaboutcenter(rx, ry);
view.enablegraphicsupdate = true;
view.rollby(rz);
doc.windowredraw();
this method offers me the best framerate i could obtain for now. using doc.graphicsredraw2(); seems to be worse, but does not induce flickering of the menus due to the whole window refresh i guess.
have you got an idea of how i could get a better framerate as well as edge simplification that occurs when moving the view thanks to the standard middle mouse click ?
cheers,
edited: 03/03/2009 at 05:51 am by eric delattre
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 10:11 , Processed in 0.034746 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表