<?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 Face Class, Intersect() method problem in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460467#M55506</link>
    <description>&lt;P&gt;I have t&lt;STRONG&gt;wo objects not touching&lt;/STRONG&gt; or intersecting each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After extracting every face from each object and iterating&amp;nbsp;through the collection i get unexpected result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;faceElement1[a].Intersect(faceElement2[b])&lt;/STRONG&gt; gives&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Intersecting&lt;/STRONG&gt; &lt;/SPAN&gt;as result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be possible?&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2017 14:34:06 GMT</pubDate>
    <dc:creator>giancarlo.web</dc:creator>
    <dc:date>2017-10-14T14:34:06Z</dc:date>
    <item>
      <title>Face Class, Intersect() method problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460467#M55506</link>
      <description>&lt;P&gt;I have t&lt;STRONG&gt;wo objects not touching&lt;/STRONG&gt; or intersecting each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After extracting every face from each object and iterating&amp;nbsp;through the collection i get unexpected result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;faceElement1[a].Intersect(faceElement2[b])&lt;/STRONG&gt; gives&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Intersecting&lt;/STRONG&gt; &lt;/SPAN&gt;as result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be possible?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 14:34:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460467#M55506</guid>
      <dc:creator>giancarlo.web</dc:creator>
      <dc:date>2017-10-14T14:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Face Class, Intersect() method problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460510#M55507</link>
      <description>&lt;P&gt;Is it instance geometry or symbol geometry?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Presumably you have two face collections one for each element and are comparing each item from one against each item from the other?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 15:32:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460510#M55507</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2017-10-14T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Face Class, Intersect() method problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460602#M55508</link>
      <description>&lt;P&gt;i have 2 walls, and each face collection reports correctly 6 faces&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my workflow for collecting faces:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                    GeometryElement geometryelem1 = (GeometryElement)join[e1].GetGeometryObjectFromReference(new Reference(join[e1]));
                    //Tutti i solidi nel primo GeometryObject
                    List&amp;lt;Autodesk.Revit.DB.Solid&amp;gt; solids1 = new List&amp;lt;Autodesk.Revit.DB.Solid&amp;gt;();
                    //Tutte le facce dei Solidi del primo GeometryObject
                    List&amp;lt;Autodesk.Revit.DB.Face&amp;gt; faces1 = new List&amp;lt;Autodesk.Revit.DB.Face&amp;gt;();

                    //inserisco  i solid1 nelle liste solids1
                    foreach (var element in geometryelem1)
                    {
                        solids1.Add((Autodesk.Revit.DB.Solid) element);
                    }

                    //inserisco le FacesArray di ogni solid nella lista arrays1
                    foreach (Autodesk.Revit.DB.Solid solid1 in solids1)
                    {
                        foreach (Autodesk.Revit.DB.Face face in solid1.Faces)
                        {
                            faces1.Add(face);
                        }
                    }&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Oct 2017 17:00:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460602#M55508</guid>
      <dc:creator>giancarlo.web</dc:creator>
      <dc:date>2017-10-14T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Face Class, Intersect() method problem</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460720#M55509</link>
      <description>&lt;P&gt;Apparently faces are infinite with therefore&amp;nbsp;many possible intersections beyond the range of the element itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So perhaps not the best approach for your needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the image below the green lines are plotted using curves from the overload Face.Intersect(ByVal Face, ByRef&amp;nbsp;Curve). Hard to understand at first why they all exist&amp;nbsp;but once you trace along&amp;nbsp;parallel to the faces you&amp;nbsp;start to see all are valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WallIntersects.PNG" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/413064i6535A810F91A1BFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="WallIntersects.PNG" alt="WallIntersects.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 19:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/face-class-intersect-method-problem/m-p/7460720#M55509</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2017-10-14T19:28:02Z</dc:date>
    </item>
  </channel>
</rss>

