<?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: UCS 3points in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3749920#M52728</link>
    <description>&lt;P&gt;Hi Gilles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was indeed incorrect. I tried your code again and it works fine now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 11:54:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-10T11:54:01Z</dc:date>
    <item>
      <title>UCS 3points</title>
      <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3678928#M52723</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to place a UCS based on 3 points&lt;/P&gt;&lt;P&gt;- the origin of the UCS (PTOrigin)&lt;/P&gt;&lt;P&gt;- the x-direction (PTX)&lt;/P&gt;&lt;P&gt;- the y-direction (PTY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is that the angle between the vectorX (from origin to PTX) and vectorY (from origin to PTY) is not always 90°. Currently a create a new UCS in the UCSTable change the origin of the record to PTOrigin. Then I create a 3D vector from PTOrigin to PTX and then I'm stuck. I 'm unable to create a vector perpendicular to the vectorX which goes through PTY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can&lt;/SPAN&gt; &lt;SPAN&gt;anyone help&lt;/SPAN&gt; &lt;SPAN&gt;me&lt;/SPAN&gt; creating the Y-vector &lt;SPAN&gt;or are there&lt;/SPAN&gt; &lt;SPAN&gt;other solutions&lt;/SPAN&gt; &lt;SPAN&gt;for this&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Filip&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 12:26:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3678928#M52723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-30T12:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: UCS 3points</title>
      <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686278#M52724</link>
      <description>&lt;P&gt;Hi Filip,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried rotating the PTX about the PTOrigin by 90 degrees to determine the PTY&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the other option is to first create a vector from PTX to PTOrigin and then use the "Vector3d.GetPerpendicularVector"&amp;nbsp;method using that vector.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 05:58:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686278#M52724</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2012-11-05T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: UCS 3points</title>
      <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686314#M52725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use the cross product of X axis&amp;nbsp; and Y axis to define the Z axis, then recalculate Y axis with the cross product of z axis and X axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a quick and dirty (no error handling if points are overlapped or if xaxis is parallel to Y axis)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        private CoordinateSystem3d UcsBy3points(Point3d org, Point3d ptX, Point3d ptY)
        {
            Vector3d xAxis = org.GetVectorTo(ptX).GetNormal();
            Vector3d zAxis = xAxis.CrossProduct(org.GetVectorTo(ptY)).GetNormal();
            Vector3d yAxis = zAxis.CrossProduct(xAxis).GetNormal();
            return new CoordinateSystem3d(org, xAxis, yAxis);
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 07:28:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686314#M52725</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-11-05T07:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: UCS 3points</title>
      <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686362#M52726</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the solution with&amp;nbsp;"Vector3d.GetPerpendicularVector" seems easy, but I've tried it without the desired result. The UCS is not always correct because some times the Y-direction must point to the negative Z-direction (from World UCS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your second solutions seems more like it. I will try it in a few days and report the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 08:33:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686362#M52726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T08:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: UCS 3points</title>
      <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686372#M52727</link>
      <description>&lt;P&gt;The way I purposed will also work whatever the new XY plane (i.e. 3D UCS rotated on X and/or Y axis).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 08:45:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3686372#M52727</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-11-05T08:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: UCS 3points</title>
      <link>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3749920#M52728</link>
      <description>&lt;P&gt;Hi Gilles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was indeed incorrect. I tried your code again and it works fine now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 11:54:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/ucs-3points/m-p/3749920#M52728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-10T11:54:01Z</dc:date>
    </item>
  </channel>
</rss>

