几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-05-07, 03:29 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】scaling During Vectorization

scaling during vectorization
scaling during vectorization
hi,
i have a couple of questions reagrding views:
1. duing import of a dxf/dwg file in my application, i would like to receive all entities without any scaling being applied. i.e. in screen coordinates.
so if there is a line from 0,0,0 to 100,100,0 in dwg file and the view is set to "top view"(i.e.normal = 0,0,1), then dd should give me these points as it is during vectorization. i would like dd to convert the wcs coordinates to screen coordinates, but no other tranformation should be applied.
is there a way to do this?
2. what will happen if odgsdevice:nsize() function is not called. how would the entities be vectorized then?
3. how can i make all entities in a drawing to fit a particular area? i do not want viewport clipping. i.e. all entities in the drawing should be vectorized from the active view and should fit in a particular area.
please provide some pointers for the above questions.
tia
alex
last edited by alex30; 21st october 2005 at 01:34 pmfff">.

1. dd vectorization pipeline by default doesn't apply any transforms to input wcs geometry, except taking block (model->world) and world->eye transforms into account.
additional transform can be established by odgibasevectorizer::seteyetooutputtransform function.
2. they won't be vectorized, since dd will notice that device output area is empty.
3. you should look to "zoom extents" functionality (see cdwgviewer:nviewzoomextents(), dwgviewer.cpp, odamfcapp sample).
sincerely yours,
george udov

okay...so it means onsize call has to be always there during vectorization.
assuming that i have an infinite device area..how can i ask dd to vectorize the geometry and just apply the eye2screen transformation??
because if onsize() has to be called, then dd would always apply some scaling depending on the device area specified in the onsize argument!!.
i wanted to give the user an option to render their dxf/dwg files after just applying eye2screen transformation.
it seems this is not possible in dd.
please correct me if i am wrong.
are there any workarounds??
last edited by pareshgoel; 9th november 2005 at 10:08 pmfff">.

pareshgoel, please study our singledoc and odamfcapp samples.
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】paging support during vectorization yang686526 DirectDWG 0 2009-05-06 09:35 PM
【转帖】incorrect vectorization of 2d solid yang686526 DirectDWG 0 2009-05-06 03:50 PM
【转帖】different vectorization of same file on windows and mac yang686526 DirectDWG 0 2009-05-04 07:29 PM
【转帖】color problem with hatch while vectorization yang686526 DirectDWG 0 2009-05-04 05:55 PM
【转帖】3d to 2d vectorization yang686526 DirectDWG 0 2009-05-04 03:03 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多