<?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 There is something wrong in the intersectwith function, how to deal with this? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/there-is-something-wrong-in-the-intersectwith-function-how-to/m-p/10780192#M14482</link>
    <description>&lt;P&gt;Almost can't imagine it but, but don't see any other expanation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explain this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            Point3dCollection snijpunten = new Point3dCollection();
            bovenaanzicht.IntersectWith(hulplijn1, Intersect.OnBothOperands, snijpunten, IntPtr.Zero, IntPtr.Zero);
            
            int aantalsnijpunten = snijpunten.Count;

            if (aantalsnijpunten &amp;gt; 0)
            {
                foreach (Point3d snijpunt in snijpunten)
                {
                    double debug = bovenaanzicht.GetDistAtPoint(snijpunt);&lt;/LI-CODE&gt;&lt;P&gt;I get a 'eInvalidInput' at defining the 'debug double'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm calculating pretty much intersections in my code and suddenly this happens, every time at same moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was having a similar issue a few days ago, couldn't figure it out, so rewrote the whole code in some other way, now this same thing happens again...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 21:14:31 GMT</pubDate>
    <dc:creator>stefanveurink68AXD</dc:creator>
    <dc:date>2021-11-24T21:14:31Z</dc:date>
    <item>
      <title>There is something wrong in the intersectwith function, how to deal with this?</title>
      <link>https://forums.autodesk.com/t5/net-forum/there-is-something-wrong-in-the-intersectwith-function-how-to/m-p/10780192#M14482</link>
      <description>&lt;P&gt;Almost can't imagine it but, but don't see any other expanation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explain this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            Point3dCollection snijpunten = new Point3dCollection();
            bovenaanzicht.IntersectWith(hulplijn1, Intersect.OnBothOperands, snijpunten, IntPtr.Zero, IntPtr.Zero);
            
            int aantalsnijpunten = snijpunten.Count;

            if (aantalsnijpunten &amp;gt; 0)
            {
                foreach (Point3d snijpunt in snijpunten)
                {
                    double debug = bovenaanzicht.GetDistAtPoint(snijpunt);&lt;/LI-CODE&gt;&lt;P&gt;I get a 'eInvalidInput' at defining the 'debug double'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm calculating pretty much intersections in my code and suddenly this happens, every time at same moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was having a similar issue a few days ago, couldn't figure it out, so rewrote the whole code in some other way, now this same thing happens again...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 21:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/there-is-something-wrong-in-the-intersectwith-function-how-to/m-p/10780192#M14482</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2021-11-24T21:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: There is something wrong in the intersectwith function, how to deal with this?</title>
      <link>https://forums.autodesk.com/t5/net-forum/there-is-something-wrong-in-the-intersectwith-function-how-to/m-p/10780236#M14483</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is perhaps an accuracy issue (this may happen if entities are far away from Origin).&lt;/P&gt;
&lt;P&gt;You can try this:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Point3d pointOnCurve = bovenaanzicht.GetClosestpointTo(snijpunt);
double delta = snijpunt.GetDistanceTo(pointOnCurve);
double debug = bovenaanzicht.GetDistAtPoint(pointOnCurve);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 06:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/there-is-something-wrong-in-the-intersectwith-function-how-to/m-p/10780236#M14483</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-11-25T06:28:39Z</dc:date>
    </item>
  </channel>
</rss>

