几何尺寸与公差论坛------致力于产品几何量公差标准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, 04:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】exture Coordinates

texture coordinates
texture coordinates
hello there !
could someone just tell where i can find information on the texture coordinate system in dd ? it seems to me that i'm supposed to use the "xdata" stuff... but how am i supposed to extract this information i want and how can i use it ? (ie: is there a way to assign those uv coords to each vertex when using the vectorization framework for example ?)
thanks for your help !
manu.
xdata for uv coords (in fact uvw matrix transformation ?)
hello again !
i tryed to use odreadex sample to check some xdata, and the only thing i found is something like:
xdata:
1011. . . . . . . . . . . . . . [43.2 510.0 3.0]
1011. . . . . . . . . . . . . . [44.2 510.0 3.0]
1011. . . . . . . . . . . . . . [43.2 511.0 3.0]
1011. . . . . . . . . . . . . . [43.2 510.0 4.0]
does this represent the uvw coord system i'm looking for ?? in this case, am i right tu assume that i will always have 4 values in this order : the origin, the x axis, the y axis and the z axis ?...
and if this is the only way to represent the uv coords, it means that autocad is limited to one simple matrix transform to apply those coords... (which could be easily linking to texture matrices in opengl for example i guess...) ? this means that those coords cann't be assigned per face inside a given entity, am i wrong ?
manu.
where are 2 kinds of materials used by autocad: avematerials (used up to ac2006) and dbmaterials (used sinse autocad 2007)
ave materials and related data were stored as xdata of ave_* application (ave_finish, ave_render, ave_entity_material etc.)
new material-related stuff is represented by new classes of database objects: acdbmaterial etc.
autocad 2007 which started using new materials simply ignores old (ave) data. autocad 2008 started to perform convertion between old and new representations (it's not always possible without some loss of information).
current dwgdirect does not perform convertion between old and new representation of materials.
materials from new drawings can be accessed via oddbmaterial, oddbmaterialmapping etc. classes.
materials from old drawings (ave) can be accessed via helper classes which parse the xdata. see headers from /include/ve folder and odaveex sample from /examples/odaveex.
uv mapping is stored in ave_entity_material xdata which represents mapping (the name is confusing).
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】newbie zooming to world coordinates yang686526 DirectDWG 0 2009-05-06 06:30 PM
【转帖】dwg to svg export world coordinates yang686526 DirectDWG 0 2009-05-05 08:09 AM
【转帖】dwg file coordinates to world yang686526 DirectDWG 0 2009-05-05 08:02 AM
【转帖】ransform face coordinates to assembly9global0 coordinates yang686526 SolidWorks二次开发 0 2009-04-12 10:40 PM


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


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