几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】hatch render above below (http://www.dimcax.com/hust/showthread.php?t=16491)

yang686526 2009-05-05 11:57 AM

【转帖】hatch render above below
 
hatch render above/ below
hatch render above/ below
hi,
i was wondering how i can know what the rules are on when a hatch is rendered.
ie - two hatches on top of each other, which one do i render first. the first one i find in the file?, is there a flag indicating render order? something else i am missing ?
cheers
jason
it depends.
first, it works differently in 2d wireframe and 3d render modes.
in 3d modes it all depends on position of 2 entities (which one is closer to the camera). if entities are in the same plane the result is unpredictable.
in 2d wireframe render mode all depends on drawing order. by default entity which appeared in file first is rendered first.
but this order can be changed using oddbsortentstable methods.
the sort table is returned by oddbblocktablerecord::getsortentstable() method (it makes sense for layout blocks).
if the sorttable is taken into account or not also depends on value of sortents variable.
btw, oddbblocktablerecord::newiterator() can return "sorted" iterator which takes into account the sort table.
sergey slezkin
last edited by mmuratov; 29th january 2007 at 03:56 amfff">.
thank you.


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