<?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: How to determine the Edge Inclusion in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7507481#M55092</link>
    <description>&lt;P&gt;Hi Jimjia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for ExporterIFCUtils, which dll to use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 10:48:33 GMT</pubDate>
    <dc:creator>pmeigneux</dc:creator>
    <dc:date>2017-11-01T10:48:33Z</dc:date>
    <item>
      <title>How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7505284#M55089</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Custom Exporter to extract 3D geometry. I am able to retrieve the surface of the Revit components with the sequence of edges associated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to determine for a specific surface if a sequence of edges is included in another (see pictures below).&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="Slide1.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/419964iE693E2D747470110/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Slide1.JPG" alt="Slide1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Slide2.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/419965i9B2A9C94B0CB19E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Slide2.JPG" alt="Slide2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The red area represents the Surface and the blue and yellow represent the series of edges associated to this Surface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the first case, I succeed to determine that the Series of Edges 2 is included in the first one by comparing the min and max values of the (X;Y) coordinates of the Edge groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the second case, this comparison approach is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any method to solve this cover this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:45:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7505284#M55089</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-10-31T15:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7505654#M55090</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;The second case is&lt;STRONG&gt; not&lt;/STRONG&gt; working. Do you have any idea to resolve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 17:30:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7505654#M55090</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-10-31T17:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7506916#M55091</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;pmeigneux,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use solid operation to determine the inclusion.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please see codes below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;/// &amp;lt;summary&amp;gt;
        ///  determine the two loop is inclusion or not
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="loop1"&amp;gt;edge loop&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="loop2"&amp;gt;edge loop&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="normal"&amp;gt;the normal of surface&amp;lt;/param&amp;gt;
        /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
        public bool IsIncluded(CurveLoop loop1, CurveLoop loop2, XYZ normal)
        {
            Solid solid1 = GeometryCreationUtilities.CreateExtrusionGeometry(new List&amp;lt;CurveLoop&amp;gt;() { loop1 }, normal, 1);
            Solid solid2 = GeometryCreationUtilities.CreateExtrusionGeometry(new List&amp;lt;CurveLoop&amp;gt;() { loop2 }, normal, 1);

            Solid intersectedSolid = BooleanOperationsUtils.ExecuteBooleanOperation(solid1, solid2, BooleanOperationsType.Intersect);

            Transform t = null;

            return ExporterIFCUtils.AreSolidsEqual(solid2, intersectedSolid, out t) || ExporterIFCUtils.AreSolidsEqual(solid1, intersectedSolid, out t);
        }&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Hope the codes can solve your issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 04:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7506916#M55091</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2017-11-01T04:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7507481#M55092</link>
      <description>&lt;P&gt;Hi Jimjia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for ExporterIFCUtils, which dll to use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 10:48:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7507481#M55092</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-11-01T10:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7507512#M55093</link>
      <description>&lt;P&gt;I'm use Revit 2018, 2017,2016 and 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm test : Autodesk.Revit.DB.IFC.ExporterIFCUtils.AreSolidsEqual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 11:03:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7507512#M55093</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-11-01T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7509951#M55094</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Philippe,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is&amp;nbsp;Autodesk.Revit.DB.IFC.ExporterIFCUtils.AreSolidsEqual in&amp;nbsp;RevitAPIIFC.dll&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 01:41:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7509951#M55094</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2017-11-02T01:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7519742#M55095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. An other question foir you. How find Normal for all face type (for planar is simple, but for other ?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 11:24:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7519742#M55095</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-11-06T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7522353#M55096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Philippe,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If face is not planar, the normal is different&amp;nbsp;according to location where the point is, you can get the normal at that point by Face.ComputeNormal(UV point)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 01:59:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7522353#M55096</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2017-11-07T01:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7524732#M55097</link>
      <description>&lt;P&gt;Ok but for this function, witch point (u,V) use for calculate the normal ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:43:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7524732#M55097</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-11-07T18:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7526141#M55098</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Philippe,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The normal is different&amp;nbsp;at different UV point of the non-planar face.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can not get&amp;nbsp;a&amp;nbsp;common face normal of a non-planar face&amp;nbsp;like&amp;nbsp;planar face's.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 07:26:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7526141#M55098</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2017-11-08T07:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the Edge Inclusion</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7527947#M55099</link>
      <description>&lt;P&gt;Accept solution for Planar Face.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for other Faces Types not solution..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 17:47:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-determine-the-edge-inclusion/m-p/7527947#M55099</guid>
      <dc:creator>pmeigneux</dc:creator>
      <dc:date>2017-11-08T17:47:30Z</dc:date>
    </item>
  </channel>
</rss>

