<?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: I can't get a solid from a directshape created based on 4 points. in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11477484#M16410</link>
    <description>&lt;P&gt;Thanks a lot! Triangulation helped and now everything works. Unfortunately, there are still many problems ahead with cutting the created geometry from the wall, which works or does not work completely randomly...&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 12:51:54 GMT</pubDate>
    <dc:creator>AndrewButenko</dc:creator>
    <dc:date>2022-10-12T12:51:54Z</dc:date>
    <item>
      <title>I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11468394#M16399</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I need to get a solid based on four points. I am using TessellatedShapeBuilder.&lt;BR /&gt;I render a directshape and it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="зображення_2022-10-07_162341988.png" style="width: 991px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1124722iA496EB052AF15392/image-size/large?v=v2&amp;amp;px=999" role="button" title="зображення_2022-10-07_162341988.png" alt="зображення_2022-10-07_162341988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to get solid out of it. That solid does not exist.&lt;BR /&gt;I drew the meshes and it looks like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="зображення_2022-10-07_162548517.png" style="width: 865px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1124723i224AD9B1A4E1B15E/image-size/large?v=v2&amp;amp;px=999" role="button" title="зображення_2022-10-07_162548517.png" alt="зображення_2022-10-07_162548517.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look closely, I see unconnected dots in the corners:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="зображення_2022-10-07_162751272.png" style="width: 938px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1124727i3ED17962506D8C12/image-size/large?v=v2&amp;amp;px=999" role="button" title="зображення_2022-10-07_162751272.png" alt="зображення_2022-10-07_162751272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to get a solid in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 13:28:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11468394#M16399</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2022-10-07T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11468700#M16400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3155890"&gt;@AndrewButenko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One suggestion is to analyze the direct shape element using the RevitLookup tool.&lt;/P&gt;
&lt;P&gt;Could you please try to get/access solid of direct shape via the RevitLookup tool?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RevitLookup Links:&lt;STRONG&gt;&lt;A href="https://github.com/jeremytammik/RevitLookup" target="_blank" rel="noopener"&gt;https://github.com/jeremytammik/RevitLookup&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please take a look at the below link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/convert-directshape-to-solid/m-p/11429871#M66027" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;https://forums.autodesk.com/t5/revit-api-forum/convert-directshape-to-solid/m-p/11429871#M66027&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11468700#M16400</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2022-10-07T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11469205#M16401</link>
      <description>&lt;P&gt;A&amp;nbsp;TessellatedShapeBuilder can sometimes build a mesh instead of a solid. If you need it to create a solid, set its Target property to&amp;nbsp;TessellatedShapeBuilderTarget.Solid and its Fallback property to&amp;nbsp;TessellatedShapeBuilderFallback.Abort so it will either create a solid or fail.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 19:27:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11469205#M16401</guid>
      <dc:creator>mhannonQ65N2</dc:creator>
      <dc:date>2022-10-07T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11469501#M16402</link>
      <description>&lt;P&gt;Hard to solve a problem without being able to understand what exactly you are trying to do or how. Perhaps providing a code sample is the most efficient way of getting an answer here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using tessellated shape builder, then as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8377999"&gt;@mhannonQ65N2&lt;/a&gt;&amp;nbsp;notes it will have a fall back if your geometry fails to create a solid. Looking at your images you seem to have gaps in your geometry that could lead to a mesh rather than solid. Calling&amp;nbsp;GetBuildResult will indicate the type of geometry being created.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 23:15:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11469501#M16402</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-10-07T23:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474202#M16403</link>
      <description>&lt;P&gt;Thanks to all who responded. I have set the options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;builder.Target = TessellatedShapeBuilderTarget.Solid;&lt;BR /&gt;builder.Fallback = TessellatedShapeBuilderFallback.Abort;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now I'm getting an error:&lt;BR /&gt;TessellatedShapeBuilder failed to build the requested geometry&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code which i am using :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private static DirectShape CreatePrizmeDirectShape(Document doc, List&amp;lt;XYZ&amp;gt; lft, List&amp;lt;XYZ&amp;gt; rght, double Height)&lt;BR /&gt;{&lt;BR /&gt;List&amp;lt;List&amp;lt;XYZ&amp;gt;&amp;gt; pntss = new List&amp;lt;List&amp;lt;XYZ&amp;gt;&amp;gt;();&lt;/P&gt;&lt;P&gt;List&amp;lt;XYZ&amp;gt; pnts = new List&amp;lt;XYZ&amp;gt;();&lt;BR /&gt;&lt;BR /&gt;pnts.Add(lft.FirstElem());&lt;BR /&gt;pnts.Add(lft.LastElem());&lt;BR /&gt;pnts.Add(rght.LastElem());&lt;BR /&gt;pnts.Add(rght.FirstElem());&lt;BR /&gt;pntss.Add(pnts.Clone());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pnts.Clear();&lt;BR /&gt;pnts.Add(lft.FirstElem());&lt;BR /&gt;pnts.Add(rght.FirstElem());&lt;BR /&gt;pnts.Add(rght.FirstElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(lft.FirstElem().ZUpp(Height));&lt;BR /&gt;pntss.Add(pnts.Clone());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pnts.Clear();&lt;BR /&gt;pnts.Add(lft.FirstElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(lft.LastElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(lft.LastElem());&lt;BR /&gt;pnts.Add(lft.FirstElem());&lt;BR /&gt;pntss.Add(pnts.Clone());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pnts.Clear();&lt;BR /&gt;pnts.Add(lft.LastElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(lft.LastElem());&lt;BR /&gt;pnts.Add(rght.LastElem());&lt;BR /&gt;pnts.Add(rght.LastElem().ZUpp(Height));&lt;BR /&gt;pntss.Add(pnts.Clone());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pnts.Clear();&lt;BR /&gt;pnts.Add(rght.FirstElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(rght.LastElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(rght.LastElem());&lt;BR /&gt;pnts.Add(rght.FirstElem());&lt;BR /&gt;pntss.Add(pnts.Clone());&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pnts.Clear();&lt;BR /&gt;pnts.Add(lft.FirstElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(lft.LastElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(rght.LastElem().ZUpp(Height));&lt;BR /&gt;pnts.Add(rght.FirstElem().ZUpp(Height));&lt;BR /&gt;pntss.Add(pnts.Clone());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return CreateTessellatedShape(doc, pntss);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;private static DirectShape CreateTessellatedShape(Document doc, List&amp;lt;List&amp;lt;XYZ&amp;gt;&amp;gt; lloopverics)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FilteredElementCollector collector = new FilteredElementCollector(doc).OfClass(typeof(Material));&lt;BR /&gt;IEnumerable&amp;lt;Material&amp;gt; materialsEnum = collector.ToElements().Cast&amp;lt;Material&amp;gt;();&lt;/P&gt;&lt;P&gt;var materialReturn1 = from materialElement in materialsEnum&lt;BR /&gt;where materialElement.Name == "Default"&lt;BR /&gt;select materialElement;&lt;/P&gt;&lt;P&gt;ElementId materialId = materialReturn1.First().Id;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;TessellatedShapeBuilder builder = new TessellatedShapeBuilder();&lt;/P&gt;&lt;P&gt;builder.Target = TessellatedShapeBuilderTarget.Solid;&lt;/P&gt;&lt;P&gt;builder.Fallback = TessellatedShapeBuilderFallback.Abort;&lt;BR /&gt;//builder.Fallback = TessellatedShapeBuilderFallback.Salvage ;&lt;/P&gt;&lt;P&gt;builder.OpenConnectedFaceSet(true);&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; lloopverics.Count; i++)&lt;BR /&gt;{&lt;BR /&gt;builder.AddFace(new TessellatedFace(lloopverics[i], materialId));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;builder.CloseConnectedFaceSet();&lt;BR /&gt;builder.Build();&lt;/P&gt;&lt;P&gt;TessellatedShapeBuilderResult TessellatedShapeBuilderObject = builder.GetBuildResult();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Transaction t = new Transaction(doc, "Create direct shape");&lt;BR /&gt;t.Start();&lt;BR /&gt;DirectShape ds = DirectShape.CreateElement(doc, new ElementId(BuiltInCategory.OST_GenericModel));&lt;BR /&gt;ds.SetShape(TessellatedShapeBuilderObject.GetGeometricalObjects());&lt;BR /&gt;t.Commit();&lt;/P&gt;&lt;P&gt;return ds;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the input:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name Value Type&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;lft.FirstElem()&lt;/TD&gt;&lt;TD&gt;{(42.513861810, 364.342648187, 4.188446398)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;lft.LastElem()&lt;/TD&gt;&lt;TD&gt;{(43.986909346, 386.113916267, 4.466224178)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;rght.FirstElem()&lt;/TD&gt;&lt;TD&gt;{(40.279565212, 365.119862152, 4.188446398)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;rght.LastElem()&lt;/TD&gt;&lt;TD&gt;{(41.668282718, 385.644753829, 4.466224178)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;rght.FirstElem().ZUpp(Height)&lt;/TD&gt;&lt;TD&gt;{(40.279565212, 365.119862152, 7.132890844)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;rght.LastElem().ZUpp(Height)&lt;/TD&gt;&lt;TD&gt;{(41.668282718, 385.644753829, 7.132890844)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;lft.FirstElem().ZUpp(Height)&lt;/TD&gt;&lt;TD&gt;{(42.513861810, 364.342648187, 7.132890844)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;▶&lt;/TD&gt;&lt;TD&gt;lft.LastElem().ZUpp(Height)&lt;/TD&gt;&lt;TD&gt;{(43.986909346, 386.113916267, 7.132890844)}&lt;/TD&gt;&lt;TD&gt;Autodesk.Revit.DB.XYZ&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 06:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474202#M16403</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2022-10-11T06:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474273#M16404</link>
      <description>&lt;P&gt;Yes. Well, you will have to implement something to eliminate slightly offset duplicates of existing points. One method that I often like to use is to create a dictionary of all the vertices with a variable precision comparison operator, using vertices as dictionary keys. Every new point encountered is compared with the existing keys. If it is almost the same, the existing key is used instead. Look for GetVertices in The Building Coder samples, in&amp;nbsp;CmdNestedInstanceGeo.cs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have explained this in other recent forum threads also, so you can search this forum for&amp;nbsp;CmdNestedInstanceGeo to discover similar solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 06:35:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474273#M16404</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-10-11T06:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474442#M16405</link>
      <description>&lt;P&gt;Thanks for the answer !&lt;BR /&gt;Did I understand correctly that I should try to build a solid and if it is not built, then take points from the mesh to "clean" them using a function that will remove those points that lie nearby. And then from the received points again get a solid?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474442#M16405</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2022-10-11T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474504#M16406</link>
      <description>&lt;P&gt;Yes, that is my suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:46:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474504#M16406</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-10-11T08:46:36Z</dc:date>
    </item>
    <item>
      <title>回复： I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474527#M16407</link>
      <description>&lt;P&gt;Unfortunately this doesn't help. I get 12 points for input and 12 for output. They are not close to each other.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474527#M16407</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2022-10-11T08:58:53Z</dc:date>
    </item>
    <item>
      <title>回复： I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474553#M16408</link>
      <description>&lt;P&gt;Depending on your shape, you might be able to simply generate the convex hull of all your points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 09:09:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11474553#M16408</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-10-11T09:09:58Z</dc:date>
    </item>
    <item>
      <title>回复： I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11476256#M16409</link>
      <description>&lt;P&gt;Your first face added is non-planar I didn't check the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The shape builder TessellatedFace class does say the following:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;"...Face data is always set, even if the input data are invalid (e.g., describes a &lt;U&gt;wildly non-planar face)&lt;/U&gt;. A TessellatedShepeBuilder's function is used to check the data and heal them &lt;U&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/U&gt; possible."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shape builder also says:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;EM&gt;"All faces are planar and have polyline boundaries, defined as sequences of 3d coordinates."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I take it to mean that it will not create more exotic types of faces e.g. ruled faces if you add non-planer face definitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There must also be a point at which it is guessing how to 'heal' the face or perhaps it can't heal two connected faces because there is not a solution where they could both be planar with the target points provided. If you want to input a shape like this, then triangulate it to ensure all input faces are planar. Split the rectangle 1,2,3,4 into 1,2,3 &amp;amp; 1,3,4 no great hardship in that apart from the visible crease line perhaps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't predict how it will try to heal something so I would be instead deciding that process myself in terms of the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 23:00:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11476256#M16409</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-10-11T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get a solid from a directshape created based on 4 points.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11477484#M16410</link>
      <description>&lt;P&gt;Thanks a lot! Triangulation helped and now everything works. Unfortunately, there are still many problems ahead with cutting the created geometry from the wall, which works or does not work completely randomly...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 12:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/i-can-t-get-a-solid-from-a-directshape-created-based-on-4-points/m-p/11477484#M16410</guid>
      <dc:creator>AndrewButenko</dc:creator>
      <dc:date>2022-10-12T12:51:54Z</dc:date>
    </item>
  </channel>
</rss>

