几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】oddbellipse to windows cdcellipse90 (http://www.dimcax.com/hust/showthread.php?t=17513)

yang686526 2009-05-06 07:38 PM

【转帖】oddbellipse to windows cdcellipse90
 
oddbellipse to windows cdc::ellipse()
oddbellipse to windows cdc::ellipse()
greetings,
i am reading in an ellipse from the oddbellipse class. i need to display this shape in a dialog in windows using cdc::ellipse(x1, y1, x2, y2) where x1 = the x coordinate of the upper-left corner of the ellipse's bounding rectangle, y1 = upper-left y coord, x2 = lower-right x and y2 = lower-right y.
how do i user what i am given in the oddbellipse class to build this ellipse in the windows interface?
thanks,
al

oddbellipse can't be represented by such data, due to these reasons:
1. oddbellipse can be rotated about its center. (its major axis can be neither perpendicular nor parallel to x axis).
2. oddbellipse can be really a part of ellipse (elliptic arc).
so oddbellipse is much more general case then cdc::ellipse.
sincerely yours,
george udov
so, are you saying that the oddbelliipse entity which dwgdirect reads from the dwg file cannot be displayed in windows?

no :-)
i'm saying that the oddbelliipse entity which dwgdirect reads from the dwg file cannot be displayed using cdc::ellipse function.
dwgdirect rendering displaying oddbellipse entity in manner other then using cdc::ellipse(x1, y1, x2, y2). best way is to obtain odgeelliparc3d, then call odgeelliparc3d::getsamplepoints to obtain polyline, approximating the source ellipse.
btw, aren't you think that it is much more easy to use dwgdirect rendering capabilities to display dwg files?
sincerely yours,
george udov


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