<?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 intersectWithCurve not returning the right count (it's missing intersections) in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13975478#M22498</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble using Line3D.&lt;FONT face="inherit"&gt;intersectWithCurve(). It seems to miss intersections at certain &lt;/FONT&gt;points&lt;FONT face="inherit"&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;1. Consider &lt;/FONT&gt;this basic sketch; it has one curve (a SketchControlPointSpline -- created in Illustrator) and point Point3D, near the top left of the curve (shown blue, selected).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-13 at 12.11.24 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1610369i59BA8ACFDC91CE6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-13 at 12.11.24 PM.png" alt="Screenshot 2026-01-13 at 12.11.24 PM.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;2. Some basic code creates a Line3D starting at the point and going to the right; it should intersect this curve two times, but the result is only one. Code (full example attached):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        design: Design = app.activeProduct

        sketch = design.rootComponent.sketches[0]
        point = sketch.sketchPoints[3].geometry # hardcoded to the right one
        print(point.x, point.y)
        endPoint = point.copy()
        endPoint.x += 100000
        line = Line3D.create(point, endPoint)
        curve = sketch.sketchCurves[0].geometry
        intersects = line.intersectWithCurve(curve)
        hitCount = intersects.count
        # ui.messageBox(f'hitCount should be 1 but is: {hitCount}')
        print(hitCount)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the .f3d file and the basic script to reproduce it. It is hardcoded and extracted from my more complex plugin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving the point around seems to give the right result when it isn't at the apex/top of the curve. &amp;nbsp;If yo move it in the middle of the apex (convex side), it will show 0 hits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing this is some rounding error or a bug...I'm open to suggestions on how to solve line intersections with arbitrary curves!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corbin&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jan 2026 20:19:48 GMT</pubDate>
    <dc:creator>corbin2</dc:creator>
    <dc:date>2026-01-13T20:19:48Z</dc:date>
    <item>
      <title>intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13975478#M22498</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble using Line3D.&lt;FONT face="inherit"&gt;intersectWithCurve(). It seems to miss intersections at certain &lt;/FONT&gt;points&lt;FONT face="inherit"&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;1. Consider &lt;/FONT&gt;this basic sketch; it has one curve (a SketchControlPointSpline -- created in Illustrator) and point Point3D, near the top left of the curve (shown blue, selected).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-13 at 12.11.24 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1610369i59BA8ACFDC91CE6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-13 at 12.11.24 PM.png" alt="Screenshot 2026-01-13 at 12.11.24 PM.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;2. Some basic code creates a Line3D starting at the point and going to the right; it should intersect this curve two times, but the result is only one. Code (full example attached):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        design: Design = app.activeProduct

        sketch = design.rootComponent.sketches[0]
        point = sketch.sketchPoints[3].geometry # hardcoded to the right one
        print(point.x, point.y)
        endPoint = point.copy()
        endPoint.x += 100000
        line = Line3D.create(point, endPoint)
        curve = sketch.sketchCurves[0].geometry
        intersects = line.intersectWithCurve(curve)
        hitCount = intersects.count
        # ui.messageBox(f'hitCount should be 1 but is: {hitCount}')
        print(hitCount)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the .f3d file and the basic script to reproduce it. It is hardcoded and extracted from my more complex plugin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving the point around seems to give the right result when it isn't at the apex/top of the curve. &amp;nbsp;If yo move it in the middle of the apex (convex side), it will show 0 hits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing this is some rounding error or a bug...I'm open to suggestions on how to solve line intersections with arbitrary curves!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corbin&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 20:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13975478#M22498</guid>
      <dc:creator>corbin2</dc:creator>
      <dc:date>2026-01-13T20:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13975825#M22499</link>
      <description>&lt;P&gt;I can reproduce this, and it appears to be a bug in the intersectWithCurve method. A bug has been logged. Out of curiosity, where did the curve come from? I'm guessing it was imported somehow.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 04:25:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13975825#M22499</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2026-01-14T04:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13976390#M22502</link>
      <description>&lt;P&gt;Thanks Brian! I mentioned it briefly, but the curve was created in Adobe Illustrator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a work around by implementing my own intersectWithCurve, but I'm hitting the same issue. I haven't debugged it much yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corbin&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 13:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13976390#M22502</guid>
      <dc:creator>corbin2</dc:creator>
      <dc:date>2026-01-14T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980386#M22508</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mr Corbin2,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider checking:&lt;/P&gt;&lt;PRE&gt;(returnValue, intersectingCurves, intersectionPoints) = sketchControlPointSpline_var.&lt;STRONG&gt;intersections&lt;/STRONG&gt;(sketchCurves)&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;returnValue = plane_var.&lt;STRONG&gt;intersectWithCurve&lt;/STRONG&gt;(curve)&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and also:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;line = Line2D.create(point, endPoint)&lt;/LI-CODE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;MichaelT&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2026 11:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980386#M22508</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2026-01-17T11:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980486#M22509</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2900239"&gt;@MichaelT_123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hi Mr Corbin2,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider checking:&lt;/P&gt;&lt;PRE&gt;(returnValue, intersectingCurves, intersectionPoints) = sketchControlPointSpline_var.&lt;STRONG&gt;intersections&lt;/STRONG&gt;(sketchCurves)&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;returnValue = plane_var.&lt;STRONG&gt;intersectWithCurve&lt;/STRONG&gt;(curve)&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and also:..&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;Hi MichaelT,&lt;/P&gt;&lt;P&gt;I should have mentioned that I also did try SketchCurve.intersections(..) and it fails too. I'm guessing that the algorithm subdivides the curve and compares distances, but not with enough resolution to realize the small corner change would cause a different hit. I also ran into this with my own algorithm, and increased the resolution to get the correct answer. However, mine has other flaws that I haven't worked out yet and need to debug. I have to shelve this for a while to work on other stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line2D doesn't have an intersectXXX method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corbin&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2026 14:52:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980486#M22509</guid>
      <dc:creator>corbin2</dc:creator>
      <dc:date>2026-01-17T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980658#M22510</link>
      <description>&lt;P&gt;As you seem to be capable... of writing your own numerical algorithm, try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Find the closest point to the curve and use it as the starting approximation in fsolve()&lt;/LI&gt;&lt;LI&gt;With a failed "solve", run the process on a couple of approximation points lying on the curve&lt;/LI&gt;&lt;LI&gt;change fsolve() algorithm and/or change iteration parameters.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MichaelT&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jan 2026 02:59:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980658#M22510</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2026-01-18T02:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980736#M22511</link>
      <description>&lt;P&gt;Another option is to call the evaluator property of the curve to obtain a CurveEvaluator3D, then use the getStrokes method to obtain a polyline approximation of the curve. Then the intersection becomes a line-line intersection.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2026 23:51:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980736#M22511</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2026-01-17T23:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980747#M22512</link>
      <description>&lt;P&gt;Thanks Brian - that sounds like a better idea than what I was doing! I'll experiment with this idea when I get back into it.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jan 2026 00:16:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/13980747#M22512</guid>
      <dc:creator>corbin2</dc:creator>
      <dc:date>2026-01-18T00:16:34Z</dc:date>
    </item>
    <item>
      <title>We're happy to report this issue has been resolved. Updat...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/14254789#M23039</link>
      <description>We're happy to report this issue has been resolved. &lt;A href="https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-do-I-download-updates-for-Fusion-360.html" target="_blank"&gt;Update Fusion&lt;/A&gt; to the most recent version to apply the fix. If this update resolved your issue, feel free to click the "Accept Solution" button to help other community members find the answer more easily. If the issue persists after updating, don't hesitate to reach out to us by replying to this thread. We're here to help! Let us know if you need any further assistance!</description>
      <pubDate>Fri, 04 Sep 2026 01:15:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/14254789#M23039</guid>
      <dc:creator>Closed-Loop-Bot</dc:creator>
      <dc:date>2026-09-04T01:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWithCurve not returning the right count (it's missing intersections)</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/14312157#M23160</link>
      <description>&lt;P&gt;Awesome, this looks to be fixed, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2026 20:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/intersectwithcurve-not-returning-the-right-count-it-s-missing/m-p/14312157#M23160</guid>
      <dc:creator>corbin2</dc:creator>
      <dc:date>2026-10-13T20:22:20Z</dc:date>
    </item>
  </channel>
</rss>

