高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|