几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】number of vertex of polyline differen (http://www.dimcax.com/hust/showthread.php?t=17360)

yang686526 2009-05-06 06:42 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 05:46 PM.