<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to convert spline into polyline in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3499586#M14672</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for ur help&lt;/P&gt;&lt;P&gt;i found another way to convert spline to polyline but the output is wrongly come because of tolerance in spline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDb3dPolyline(AcDb::Poly3dType, AcGePoint3dArray&amp;amp; vertices, Adesk::Boolean closed = Adesk::kFalse);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AcDb3dPolyline *pPline =&amp;nbsp;&lt;/SPAN&gt;AcDb3dPolyline(&lt;SPAN&gt;k3dQuadSplinePoly,SplinePoints);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;pSpline-&amp;gt;erase();&lt;/P&gt;&lt;P&gt;AppendEntity(pPline);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whether this method is correct to convert polyline&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2012 07:20:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-14T07:20:23Z</dc:date>
    <item>
      <title>How to convert spline into polyline</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3491004#M14668</link>
      <description>&lt;P&gt;How to convert spline into polyline without using the function of toPolyline in AcdbSpline member?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plz provide some sample code!!!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 05:28:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3491004#M14668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-08T05:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spline into polyline</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3491096#M14669</link>
      <description>&lt;P&gt;there is no simple way to do this. So, the way I'm doing this is:&lt;/P&gt;&lt;P&gt;1. choose a minimal distance A, for example 0.1 or 0.5&lt;/P&gt;&lt;P&gt;2. collect all of the spline's points at &amp;nbsp;A, A*2, A*3, ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. use group of three points to find out if all of them are on the same LINE. If it's true, kill middle point&lt;/P&gt;&lt;P&gt;4. repeate 3 until the last collected point.&lt;/P&gt;&lt;P&gt;5. create polyline (2D or 3D) from the remaining points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. kill the spline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, can't give you a source. But I think algorythm is enough for understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 07:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3491096#M14669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-08T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spline into polyline</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3495658#M14670</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;use group of three points to find out if all of them are on the same LINE. If it's true, kill middle point---&amp;gt; how spline point in same line can u explain briefly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 05:02:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3495658#M14670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-12T05:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spline into polyline</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3495810#M14671</link>
      <description>&lt;P&gt;first of all collect spline points through some step, for example 1/5000 of spline's length&lt;/P&gt;&lt;P&gt;put then into ptArray.&amp;nbsp;&lt;/P&gt;&lt;P&gt;then: &amp;nbsp;&lt;/P&gt;&lt;P&gt;for(int i = 0; i&amp;lt;ptArray.length()-3; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;// first line - ptArray.at(i), ptArray.at(i+1)&lt;/P&gt;&lt;P&gt;// second line - ptArray.at(i+1), ptArray.at(i+2)&lt;/P&gt;&lt;P&gt;// if (lines have the same direction or less then permissible angle, for example 1degree in radians)&lt;/P&gt;&lt;P&gt;// {&amp;nbsp;&lt;/P&gt;&lt;P&gt;// ptArray.removeAt(i+1);&lt;BR /&gt;&amp;nbsp;// i--;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// }&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 07:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3495810#M14671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-12T07:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spline into polyline</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3499586#M14672</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for ur help&lt;/P&gt;&lt;P&gt;i found another way to convert spline to polyline but the output is wrongly come because of tolerance in spline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDb3dPolyline(AcDb::Poly3dType, AcGePoint3dArray&amp;amp; vertices, Adesk::Boolean closed = Adesk::kFalse);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AcDb3dPolyline *pPline =&amp;nbsp;&lt;/SPAN&gt;AcDb3dPolyline(&lt;SPAN&gt;k3dQuadSplinePoly,SplinePoints);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;pSpline-&amp;gt;erase();&lt;/P&gt;&lt;P&gt;AppendEntity(pPline);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whether this method is correct to convert polyline&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 07:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3499586#M14672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert spline into polyline</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3499684#M14673</link>
      <description>&lt;P&gt;everything depends on accuracy of created polyline. if you want to have polyline's looks, like spline is shown on the screen, use my way or something similar. arx methods can't help you in this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be in 3-5 years somethin will change in autodesk structure, an they will try to fix great quantity of "expected behavior" of their functions. but now, look at the attached picture (autocad's native command for spline to polyline convertation). black - polyline3d, red - spline, blue marks - "expected behavior" (i call it BUGS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="acadspline2poly_convert.GIF" src="https://forums.autodesk.com/t5/image/serverpage/image-id/30722i964BC13AC6233B7B/image-size/original?v=mpbl-1&amp;amp;px=-1" align="center" title="acadspline2poly_convert.GIF" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 08:40:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-convert-spline-into-polyline/m-p/3499684#M14673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T08:40:33Z</dc:date>
    </item>
  </channel>
</rss>

