<?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: Reference vector of AcDbArc in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7913962#M6787</link>
    <description>&lt;P&gt;In the end I computed the Arbitrary X axis based on the following article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-E19E5B42-0CC7-4EBA-B29F-5E1D595149EE" target="_blank"&gt;https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-E19E5B42-0CC7-4EBA-B29F-5E1D595149EE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I am not facing any problems with my arcs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am still curious to know why there is not a method to compute it directly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evangelos&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 13:26:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-06T13:26:29Z</dc:date>
    <item>
      <title>Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7913702#M6786</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the reference vector of a circular arc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only information I found is:&lt;/P&gt;&lt;PRE&gt;AcDbArc* arc = AcDbArc::cast( pEnt );
AcGeVector3d refVec = arc-&amp;gt;normal()-&amp;gt;perpVector();&lt;/PRE&gt;&lt;P&gt;However, I was expecting a method to give back the reference vector.&lt;/P&gt;&lt;P&gt;Could somebody help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Evangelos&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 12:12:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7913702#M6786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-06T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7913962#M6787</link>
      <description>&lt;P&gt;In the end I computed the Arbitrary X axis based on the following article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-E19E5B42-0CC7-4EBA-B29F-5E1D595149EE" target="_blank"&gt;https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-E19E5B42-0CC7-4EBA-B29F-5E1D595149EE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I am not facing any problems with my arcs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am still curious to know why there is not a method to compute it directly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evangelos&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:26:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7913962#M6787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-06T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7920476#M6788</link>
      <description>&lt;PRE&gt;AcGeVector3d refVec = arc-&amp;gt;normal()-&amp;gt;perpVector();&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;AcGeVector3d::perpVector()&lt;/FONT&gt; also uses the arbitrary axis algorithm. This is the usual way to determine the reference vector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 08:24:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7920476#M6788</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2018-04-10T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7923510#M6789</link>
      <description>&lt;P&gt;Dear tbammer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always need to use the OCS X axis as the reference vector. So, I created a small function to compute it, based on the &lt;A href="https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-E19E5B42-0CC7-4EBA-B29F-5E1D595149EE" target="_blank"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="typ"&gt;If&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;abs &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Nx&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;/&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;64&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;and&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;abs &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Ny&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;/&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;64&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;) &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;then&lt;/SPAN&gt;
     &lt;SPAN class="typ"&gt;Ax&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;Wy&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; X N&lt;/SPAN&gt;&lt;SPAN class="pun"&gt; (&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;where&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;“&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;X&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;”&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;is&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; the cross&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;product &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;operator&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;).&lt;/SPAN&gt;
&lt;SPAN class="typ"&gt;Otherwise&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;
     &lt;SPAN class="typ"&gt;Ax&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;Wz&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; X N&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;To clarify, I would like to ask: Nx and Ny are the coordinates of normal N?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The perpVector indeed returns a reference vector but not the one I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Evangelos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7923510#M6789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-11T07:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7923595#M6790</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymouswrote:&lt;BR /&gt;&lt;P&gt;To clarify, I would like to ask: Nx and Ny are the coordinates of normal N?&lt;/P&gt;&lt;P&gt;The perpVector indeed returns a reference vector but not the one I need.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes. N is the normal (Nx,Ny,Nz). N must be normalized to a length of 1 if you use your algorithm.&lt;/P&gt;&lt;P&gt;This algorithm is the &lt;A title="Arbitrary Axis Algorithm" href="https://www.autodesk.com/techpubs/autocad/acadr14/dxf/arbitrary_axis_algorithm_al_u05_c.htm" target="_blank"&gt;"Arbitrary Axis Algorithm"&lt;/A&gt;. It is used by &lt;FONT face="courier new,courier"&gt;N.perpVector()&lt;/FONT&gt;. Note that&amp;nbsp;&lt;FONT face="courier new,courier"&gt;perpVector()&lt;/FONT&gt; does not require&amp;nbsp;&lt;FONT face="courier new,courier"&gt;N&lt;/FONT&gt; to be normalized.&lt;/P&gt;&lt;P&gt;What do you mean by "the returned vector is not the reference vector that you need"? What is wrong with it?&lt;/P&gt;&lt;P&gt;Can you post a sample DWG and your code to clarify?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:44:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7923595#M6790</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2018-04-11T07:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7924185#M6791</link>
      <description>&lt;P&gt;Perhaps I misunderstood the documentation.&lt;/P&gt;&lt;P&gt;What you are saying is that the perVector of a normal vector will return the OCS X axis?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:51:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7924185#M6791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-11T10:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reference vector of AcDbArc</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7925073#M6792</link>
      <description>&lt;P&gt;Yes. See also the docs for &lt;A title="ObjectARX Reference Guide" href="http://help.autodesk.com/view/OARX/2018/ENU/?guid=OREF-AcDbArc__startAngle" target="_blank"&gt;AcDbArx::startAngle()&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reference-vector-of-acdbarc/m-p/7925073#M6792</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2018-04-11T15:00:16Z</dc:date>
    </item>
  </channel>
</rss>

