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

oddb3dpolyline vertex issue
oddb3dpolyline vertex issue
hi
i got stuck extracting informations of oddb3dpolyline. i am extracting the vertices of the polyline in the following ways
code:
oddbobjectiteratorptr iter = polyline->vertexiterator();
for(; !iter->done(); iter->step()){
oddb3dpolylinevertexptr vertex = polyline->openvertex(iter->objectid(), oddb::kforread);
}
if the polyline is a simple polyline then it is returning the vertices fine. but if we change the smoothness of the polyline as quadratic or cubic it gives me a set of vertices which are superset of the control points of the polyline.
if a, b, c, d, e are the control points of the polyline then it returns me the vertices set as follows.
a, [a set of other points] b, c, d, e. if we connect all these points we can draw the the polyline but it shows other lines which connects these control points also b-c, c-d, d-e. please note there is no api to get the no of vertices in the polyline except interating the vertex list..
kindly help me.
with regards
anirban talukdar
you can ask vertex for vertextype() which can be one of oddb::vertex3dtype
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)