查看单个帖子
旧 2009-05-05, 11:57 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】hatch rendering problem

hatch rendering problem
hatch rendering problem
hi!
i have a problem rendering hatches with the odgs classes. i "intercept" the geometry using the polylineproc(), prolygonproc() and shellproc() callbacks and i draw everything in my home-made viewer.
it seems like the vertices are not in the right order, is there a way to sort them properly ? is it a bug ?
i attached a file with 2 red squares side by side. both are non-associative hatches.
in version 1.12 :
* right square : looks like 2 triangles. (bug?)
* left square : looks like a triangle. (bug?)
in an earlier version (1.10 or 1.11 i think, not sure) :
* right square : looks like a square, ok.
* left square : looks like a triangle. (bug?)
what can i do to make them both look like squares, like autocad does.
thank you!
mat
attached files

hello,
only thing i can reproduce in odamfcapp is rendering of right one hatch. odamfcapp renders triangle instead square because hatch boundary data is invalid. in case solid hatch all loops must be closed. maybe we'll fix this in future, but i'm not sure. i'll appreciate if you tell me, using which product this file was created.
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)