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

can we trust odge... entities?
can we trust odge... entities?
hi all,
in the previous releases most of the methods of the geometry classes were not implemented and the linker could not build a application. in the latest releases (and 1.05) some methods of the geometry entities are implemented but i'm not sure how they work. for example:
odgelineseg2d line1(odgepoint2d(90,98),odgepoint2d(182,190));
odgelineseg2d line2(odgepoint2d(13,180),odgepoint2d(13,19));
odgepoint2d ptint;
bool bint = line1.intersectwith(line2,ptint);
returns true and the intersection of the extension of the 2 lines.
other methods as odgecircarc2d::ison, odgelineseg2d::ison, also seems to work for the extension of the lines.
is there some kind of a list which says which memebers are implemented fully, which partialy and which not?
thanks.
regards
chudomir
best regards
chudomir

most ge methods are trivial to implement - a few lines of code but where are hundreds of them. not all are implemented and tested. having to develop ac2004 and rendering support we implement ge methods upon reqests or bug reports. (if no one complains - probably no one needs them :-))
odgelineseg2d::intersectwith() - already fixed (bug presents in 1.05)
odgelineseg2d::ison() - will be fixed (thanks for finding it out)
odgecircarc2d::intersectwith() - not implemented yet. but where is no such function listed in headers.
sergey slezkin

thanks for your reply sergey,
may be we have to develop most of the geometry on our own in this case, though it was great in autocad to use the geometry on different planes and curves only by few lines...
can you then give some links for geomtery utilities or a library (free or not) which we can use for developing such geometry? (of course not your source code ). currently we don't have enough knowledges and time to obtain knowledges to develop such things as projecting curves on planes or finding the area of a curve or intersecting 2 splines etc. and previously we didn't care of this since just calling the objectarx and its ge library methods.
anyway your work on this library is just great!
thanks.
regards
chudomir
best regards
chudomir

using diferent geometry libraries in the same project is not convinient. you have to perform conversions between different types of points, matrixes etc.
primarily we implemented those parts of ge which are used in dwgdirect internal code and are going to implement others based on client requests and internal needs.
intersections, squre and projection is not a problem to implement in ge. it's not a problem to provide updates with fixes and new funtionality. but we need to know what exactly clients need first because implementing all objectarx functionality may take years.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】block entities are not erased after the block deleting yang686526 DirectDWG 0 2009-05-04 04:46 PM
【转帖】avoiding to read block definitions as entities yang686526 DirectDWG 0 2009-05-04 04:33 PM
【转帖】add entities to a specific position yang686526 DirectDWG 0 2009-05-04 03:42 PM
【转帖】objectarx&dummies教程(十三)—— deriving from acdbentity yang686526 ObjectARX(C++) 0 2009-04-16 10:40 AM
【转帖】objectarx&dummies习题(一)—— creating and editing entities yang686526 ObjectARX(C++) 0 2009-04-16 10:32 AM


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


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