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

region creation problem
region creation problem
i am trying to create region by using the function oddbregion::createfromcurves( const odrxobjectptrarray& curvesegments,
odrxobjectptrarray& regions )
and suppose i pass two intersection circle in curvesegments then regions created is 0. why is this happening.
and if i create two close loops and passing the entity list to curvesegments then still i am getting only one region instead of 2 regions.
hi,
here is limitation. createfromcurves creates only one region for call. only first loop used from input curve array. and curves should be orderer in input array.
boolean operations with regions aren't implemented.
thanks for reply .. is there any other method to create region .
only acisin(...) from file or membuf. we use next trick also
code:
char buf[1000];
static const char* sat =
"700 6 1 0\n"
"16 autodesk autocad 17 asm 6.0.4.7009 nt 24 wed may 05 14:46:44 2004\n"
"1 9.9999999999999995e-007 1e-010\n"
"body $-1 -1 $-1 $1 $-1 $-1 #\n"
"lump $-1 -1 $-1 $-1 $2 $0 #\n"
"shell $-1 -1 $-1 $-1 $-1 $3 $-1 $1 #\n"
"face $4 -1 $-1 $-1 $-1 $2 $-1 $5 forward single #\n"
"color-adesk-attrib $-1 -1 $-1 $-1 $3 256 #\n"
"sphere-surface $-1 -1 $-1 0 0 0 %.17lg 1 0 0 0 0 1 forward_v i i i i #\n";
sprintf(buf, sat, radius);
sir actully my problem is that .. i have a collection of entities . like circle , line , poly line , spline and all that. i have to get all the closed regions .. like closed region created ny circle and circle or circle and line .. etc.. what could be the best possible way to do that .. thanks in advance
toolkit can help you only with region creation with described limitation. so you should implement functionality getallclosedloopsfromentities.
i am using dwg direct library .. not using any toolkit .. and what is this
getallclosedloopsfromentities() .. is this any oddb function ..
please clear it .. i am not getting any solution.
getallclosedloopsfromentities is not toolkit function. you should implement such functionality. toolkit hasn't it.
in my opinion
1. you have input array with entities.
2. you should implement functionality, which return to you closed loops from input array somehow. this is replacement of not fully implemented createfromcurves in toolkit.
3. use toolkit version of createfromcurves to get region for each loop from p.2.
4. you got array of regions.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】problem with creation of ole2frame objects in dwgdirect 1.13 yang686526 DirectDWG 0 2009-05-06 11:11 PM
【转帖】problem reading r12 dxf files yang686526 DirectDWG 0 2009-05-06 10:56 PM
【转帖】problem during leader entity creation yang686526 DirectDWG 0 2009-05-06 10:40 PM
【转帖】problem during leader creation with 2 ver yang686526 DirectDWG 0 2009-05-06 10:40 PM
【转帖】cannot open a dwg file in autocad - random problem yang686526 DirectDWG 0 2009-05-04 05:28 PM


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


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