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

acis capabilities
acis capabilities
hi,
i've just started to use dwgdirect, and i need some info about acis data embedded in dwg files.
when i open a file containing a boolean operation, a pipe or an extrusion in odamfcapp, i can see the acis data (useless in my case), and a proxy describing the object's type. so i wonder if it is possible to get the "source objects" : a polygon, and an offset for an extrusion, the original meshes and operators for a boolean op, a spline and a polygon for a pipe... rather than the triangulated result object ???
otherwise, what is the simplest way to get a polyfacemesh from a 3dsolid built from acis data ?
thx
hi,
void cdwgview:neditacisconversion() containes an example code for the simplest way to get a polyfacemesh.
you cannot got a "source objects" information from oddb3dsolid\body\region. these entities store only the acis stream inside. also last autocads sometimes store a 'creation history' for oddb3dsolid (only). but we don't provide an interface to work with the history. you will see it like proxy entities.
oddbextrudedsurface, oddbrevolvedsurface have full access user interface.
thanks for your help, but i've looked at the example, and i am not sure this is what i need.
first of all, it don't mentioned any polyfacemesh...
secondly, it's about vectorization. i forgot to mention that i use dwgdirect only to read acad files, and convert them into my own classes. consequently, i don't need dwgdirect vectorization.
i still don't know how to to get a polyfacemesh or polygonmesh from a 3dsolid with acis data.
if oddb3dsolid::isaproxy returns true, it means it holds acis data, doesn't it?
after that, oddb3dsolid::acisin can be read with oddbacisio::readacisdata which returns a
odmodelergeometry
instance. but i don't know how to use it to get a polyfacemesh or polygonmesh... maybe it's not the right way ?
thanks again
edit : i've just seen how you proceed in the odwrite example. first the db is filled and then pdb->writefile(&fb, filetype, outver, true /* save preview */); (odwriteex.cpp, line 514) converts all 3dsolids into polyfacemesh if outver == ac12. exactly what i want! unfortunately, i don't have access to the sources, so if you could tell me how to have the same conversion only on a single entity (not the whole file), it would be great !!
last edited by adrien.lair@allsystems.fr; 28th may 2008 at 01:02 amfff">.
hi,
small example - please, generate file with single 3dsolid, open it with mfcapp, call convert acis. oddb3dsolid will be converted to oddbpolyfacemesh. the same functionality used when called writefile to r12.
if oddb3dsolid::isaproxy returns true, it means it holds acis data, doesn't it?
no. isaproxy doesn't relate to acis data.
thanks a lot !!
sorry, when you first mentionned cdwgview, i didn't look in the examples files but in the help... it points to a vectorization application example, what explains my answer... anyway, i won't bother you anymore on that topic!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】manufacturing capabilities by feature type yang686526 American standards 0 2009-04-29 08:45 PM
【转帖】solidworks macros capabilities yang686526 SolidWorks二次开发 0 2009-04-12 10:29 PM
【转帖】solidworks macros capabilities yang686526 SolidWorks二次开发 0 2009-04-12 07:40 PM


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


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