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

yang686526 2009-05-06 07:53 PM

【转帖】oddbmpolygonhatch 90 has incorrect looptypes
 
oddbmpolygon::hatch () has incorrect looptypes
oddbmpolygon::hatch () has incorrect looptypes
the attached file contains a mpolygon with two loops.
one with looptype inner and one with outer looptype.
the resulting oddbhatch has two loops with kpolyline.
shouldn磘 one loop get the looptype koutermost or kexternal ?
attached files
loop type is bit-coded. it may be for example kexternal | kpolyline.
how the loop flags are set is up to application which created the entity (hatch or mpolygon). the flags are important for island detection (which area should be filled and which not).
for example if an inner loop has kexternal flag than island detection style has no effect (untill you edit a loop and the flags are recalculated by autocad).
where is something wrong with mpolygon entity in your sample. if in autocad you edit one of loops a bit than only inner area is filled.
sergey slezkin


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