<?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 Three-dimensional central inflection point between two 3d points in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074088#M8262</link>
    <description>&lt;P&gt;How can I get the three-dimensional central inflection point between two 3d points, and that the first tangent passes through a 3d vector with origin at the first point.&lt;BR /&gt;Does anyone have a function that performs this calculation, or something similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jul 2023 23:51:46 GMT</pubDate>
    <dc:creator>Kélcyo</dc:creator>
    <dc:date>2023-07-01T23:51:46Z</dc:date>
    <item>
      <title>Three-dimensional central inflection point between two 3d points</title>
      <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074088#M8262</link>
      <description>&lt;P&gt;How can I get the three-dimensional central inflection point between two 3d points, and that the first tangent passes through a 3d vector with origin at the first point.&lt;BR /&gt;Does anyone have a function that performs this calculation, or something similar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 23:51:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074088#M8262</guid>
      <dc:creator>Kélcyo</dc:creator>
      <dc:date>2023-07-01T23:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Three-dimensional central inflection point between two 3d points</title>
      <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074331#M8263</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As described that does not make sense for me, it looks like there're missing data to define the curve on which the inflection point is.&lt;/P&gt;
&lt;P&gt;Could you provide some drawing, please.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 04:38:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074331#M8263</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-07-02T04:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Three-dimensional central inflection point between two 3d points</title>
      <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074423#M8264</link>
      <description>&lt;P&gt;Yes, here is an illustrative image and a file with the same three-dimensional information.&lt;BR /&gt;An observation is that the calculated point must always be in the plane that passes through the provided vector and point 2. That is, the vector can be rotated 360 degrees, but it will always have its origin at point 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Modelo.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1235665i4ABA3A6BCDE8BCF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Modelo.png" alt="Modelo.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 06:43:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074423#M8264</guid>
      <dc:creator>Kélcyo</dc:creator>
      <dc:date>2023-07-02T06:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Three-dimensional central inflection point between two 3d points</title>
      <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074477#M8265</link>
      <description>&lt;P&gt;Here's a way.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        static Point3d GetCentralPoint(Point3d ptA, Point3d ptB, Vector3d direction)
        {
            var normal = direction.CrossProduct(ptA.GetVectorTo(ptB));
            if (normal.Length == 0.0)
                return ptA + ptA.GetVectorTo(ptB) / 2.0;
            var plane = new Plane(ptA, normal);
            var ptA2d = ptA.Convert2d(plane);
            var ptB2d = ptB.Convert2d(plane);
            var segmentAB = new LineSegment2d(ptA2d, ptB2d);
            var axis = new Line2d(segmentAB.MidPoint, segmentAB.Direction.GetPerpendicularVector());
            var dirA = direction.Convert2d(plane);
            var dirB = dirA.TransformBy(Matrix2d.Mirroring(axis));
            var ptCen2d = new Line2d(ptA2d, dirA).IntersectWith(new Line2d(ptB2d, dirB))[0];
            return new Point3d(ptCen2d.X, ptCen2d.Y, 0.0).TransformBy(Matrix3d.PlaneToWorld(plane));
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A testing command&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("TEST")]
        public void Test()
        {
            var doc = AcAp.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            var ed = doc.Editor;

            var ppo = new PromptPointOptions("\nSpecify first point: ");
            var ppr = ed.GetPoint(ppo);
            if (ppr.Status != PromptStatus.OK)
                return;
            var ptA = ppr.Value;

            ppo.Message = "\nSpecify second point: ";
            ppo.UseBasePoint = true;
            ppo.BasePoint = ptA;
            ppr = ed.GetPoint(ppo);
            if (ppr.Status != PromptStatus.OK)
                return;
            var ptB = ppr.Value;

            ppo.Message = "\nSpecify direction: ";
            ppr = ed.GetPoint(ppo);
            if (ppr.Status != PromptStatus.OK)
                return;
            var dir = ptA.GetVectorTo(ppr.Value);

            var ptCen = GetCentralPoint(ptA, ptB, dir);
            ed.Command("_point", ptCen);
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 02 Jul 2023 07:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074477#M8265</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-07-02T07:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Three-dimensional central inflection point between two 3d points</title>
      <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074503#M8266</link>
      <description>&lt;P&gt;Another way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        static Point3d GetCentralPoint(Point3d ptA, Point3d ptB, Vector3d direction)
        {
            if (ptA.GetVectorTo(ptB).IsParallelTo(direction))
                return ptA + ptA.GetVectorTo(ptB) * 0.5;
            var segmentAB = new LineSegment3d(ptA, ptB);
            var plane = new Plane(segmentAB.MidPoint, segmentAB.Direction);
            var lineA = new Line3d(ptA, direction);
            var lineB = (Line3d)lineA.Clone();
            lineB.TransformBy(Matrix3d.Mirroring(plane));
            return lineA.IntersectWith(lineB)[0];
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 08:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074503#M8266</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-07-02T08:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Three-dimensional central inflection point between two 3d points</title>
      <link>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074557#M8267</link>
      <description>Perfect, in a quick test, I detected that the first option contains an exception when the points are aligned in the same elevation (Z). However, the second option does not cause the same error, and as far as I evaluated there were no errors found... Thanks</description>
      <pubDate>Sun, 02 Jul 2023 08:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/three-dimensional-central-inflection-point-between-two-3d-points/m-p/12074557#M8267</guid>
      <dc:creator>Kélcyo</dc:creator>
      <dc:date>2023-07-02T08:57:58Z</dc:date>
    </item>
  </channel>
</rss>

