<?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 generate a solid from a set of points in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9583958#M11407</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9282716"&gt;@OldSchoolMakerD&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find @Anonymous&amp;nbsp;'s open source open source add-in helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/add-in-critique-polyhedron-generator/m-p/9555395#M10386" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/add-in-critique-polyhedron-generator/m-p/9555395#M10386&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 01:10:14 GMT</pubDate>
    <dc:creator>kandennti</dc:creator>
    <dc:date>2020-06-17T01:10:14Z</dc:date>
    <item>
      <title>How to generate a solid from a set of points</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9583766#M11406</link>
      <description>&lt;P&gt;Just as a fun exercise, I'm trying to create an icosahedron (the olde 20-sided die problem) in F360 strictly using the API.&amp;nbsp; I know how to do it using the UI (golden ratio rectangles, joint points into triangle faces, patch, stitch).&amp;nbsp; I'm trying to get the API to do similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I compute all the vertices in 3-space - that part's easy.&amp;nbsp; I then add 2-point lines everywhere -- a little harder, but doable.&amp;nbsp; But that's about where I run into trouble.&amp;nbsp; My approach with the UI would have been to select all the faces (triangles) one by one, and Patch.&amp;nbsp; After that, I can Stitch.&amp;nbsp; That works on very simple models (e.g., four-sided die / tetrahedron) in the API but fails on the set of points I have for the icosahedron.&amp;nbsp; I kinda feel like it's joining up things in an odd way when patching, making patch faces cross through the interior of the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't find any API examples that go from a series of points or lines to a body.&amp;nbsp; Everything is either about meshes or extrusions, and I'm not doing either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could potentially break up the model into 20 individual tetrahedrons radiating out from the origin, and then Combine them into one.&amp;nbsp; But I was hoping for some other approach that could take all the points or faces in one go, and make a single body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there better approaches for this?&amp;nbsp; I'm not too familiar with the "right" ways to build a BRep.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 21:43:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9583766#M11406</guid>
      <dc:creator>OldSchoolMakerD</dc:creator>
      <dc:date>2020-06-16T21:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a solid from a set of points</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9583958#M11407</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9282716"&gt;@OldSchoolMakerD&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find @Anonymous&amp;nbsp;'s open source open source add-in helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/add-in-critique-polyhedron-generator/m-p/9555395#M10386" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/add-in-critique-polyhedron-generator/m-p/9555395#M10386&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 01:10:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9583958#M11407</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-06-17T01:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a solid from a set of points</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9584435#M11408</link>
      <description>Interesting. Thanks for the pointer.&lt;BR /&gt;The main difference I'm seeing is that I build up a bunch of points and&lt;BR /&gt;lines, and then attempt to get them all patched at once. The example given&lt;BR /&gt;builds up one "face" (presumably a closed set of 3-space vertices from an&lt;BR /&gt;external source) at a time. Each face&lt;BR /&gt;- gets its own new sketch&lt;BR /&gt;- the sketch points are added and lines are drawn&lt;BR /&gt;- the sketch's profiles go into a new collection (per face)&lt;BR /&gt;- the profile collection serves as input to a patch operation -- but that's&lt;BR /&gt;for a set of patches across all faces&lt;BR /&gt;- the patch feature's body is added to the overall collection of surfaces&lt;BR /&gt;And when all that is done, it's using a BoundaryFill operation, where I was&lt;BR /&gt;using a Stitch.&lt;BR /&gt;&lt;BR /&gt;I'll re-structure my code and try it. Thanks!&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jun 2020 08:41:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9584435#M11408</guid>
      <dc:creator>OldSchoolMakerD</dc:creator>
      <dc:date>2020-06-17T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a solid from a set of points</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9584846#M11409</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure there is a more efficient way, but my decisions in that code were informed from the following:&lt;/P&gt;&lt;P&gt;- The format of the shape data files.&lt;/P&gt;&lt;P&gt;- There are a wide variety in the types of shapes available, specifically some of the polyhedra have self-intersecting faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that drawing all the lines in a single sketch makes it difficult to automatically detect just the exterior sketch profiles. To avoid having surfaces added in the center of my shape, I only draw one face at a time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The boundary fill operation is used instead of patch to properly handle the cases with self-intersecting faces.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 12:24:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9584846#M11409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-17T12:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a solid from a set of points</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9585463#M11410</link>
      <description>&lt;P&gt;Excellent, thanks Evan.&amp;nbsp; I re-cast my code, effectively unwrapping your "for each face" loop, and it works now!&amp;nbsp; I still have to get my head wrapped around the concepts -- surfaces -&amp;gt; profiles -&amp;gt; body, etc.&amp;nbsp; I think your example provides a way of thinking of any arbitrary set of exterior faces forming a body -- and it relies on knowledge of what the exterior faces are.&amp;nbsp; And that's good enough for what I'm doing, so thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, something additive is happening in your code, so I'll comment on that in the code repo itself, once I figure it out.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 16:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-generate-a-solid-from-a-set-of-points/m-p/9585463#M11410</guid>
      <dc:creator>OldSchoolMakerD</dc:creator>
      <dc:date>2020-06-17T16:20:23Z</dc:date>
    </item>
  </channel>
</rss>

