高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|