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

hatch vectorization
hatch vectorization
hello forum,
i have got some hatches that are processed through odgiconveyorgeometrydumper::shellproc during vectorization.
if i look at the "const odint32* facelist" parameter, it contains many triangles. i expected, in this facelist, the outer bound and the inner bounds.
1) is there anything i can do to receive the vectorized hatch bounds in the facelist rather than triangles ?
2) how can set the hatch vectorization tolerance ? (i would like to receive less vertices !)
you may sometimes make the hatch to produce less triangles by specifying larger deviation in your odgiworlddraw::deviation(kodgimaxdevforcurve, ) overload.
it won't help if the hatch boundary is polyline with many vertices - polylines are not resampled depending on deviation.
note also that if the hatch was once rendered with small deviation, it won't reevaluate itself with larger deviation, unless evaluatehatch() is called manually.
vladimir

thank you for your answer to the second question.
have you got any answer to the first question :
1) is there anything i can do to receive the vectorized hatch bounds in the facelist rather than triangles ?
i fear there are no "vectorized hatch bounds" in our vectorizer. you may probably handle the hatch yourself, by checking currentdrawable() in your rendering device, but it is not trivial.
vladimir

for my problem, i will perform some treatment in the shellproc function.
but i would like to know wether shellproc always receives triangles or wether is sometimes receives datas as described in your dwgdirect documentation ?
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)