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

number of vertex of polyline different
number of vertex of polyline different
dd returns the number of vertex of this polyline as 69.
whereas autocad says 35. the opendwg library also return 35.
please let me know if this is a dd bug and how soon we can expect a fix to it.
-prem
attached files
the curve/spline-fit type for the db2dpolyline entity from the attached file is k2dfitcurvepoly. the polyline contains vertices of k2dvertex (35) and k2dcurvefitvertex types. curvefitvertex vertices are automatically generated as the result of a curve-fit operation (can be deleted during decurve operation).
acad says 35 in "properties" window, but vertexiterator() iterates through all 69 vertices. ddt's vertexiterator() also iterates through all 69 vertices.
to skip unnecessary vertices you can check a vertex type.
regards,
sergey vishnevetsky
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)