查看单个帖子
旧 2009-05-06, 07:53 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)