<?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: Element Bodies: Meshes, Tessellated meshes, Nurbs. in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272891#M2097</link>
    <description>That is most excellent, thanks</description>
    <pubDate>Sat, 19 Jun 2021 05:47:25 GMT</pubDate>
    <dc:creator>drjustice</dc:creator>
    <dc:date>2021-06-19T05:47:25Z</dc:date>
    <item>
      <title>Element Bodies: Meshes, Tessellated meshes, Nurbs.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272887#M2093</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I am looking to extract triangles out of a ModerAPI::Element.&lt;BR /&gt;&lt;BR /&gt;I see 3 methods:&lt;BR /&gt;&lt;BR /&gt;GetTessellatedBody/Count()&lt;BR /&gt;GetMeshBody/Count()&lt;BR /&gt;GetNurbsBody/Count()&lt;BR /&gt;&lt;BR /&gt;What do these return exactly? &lt;BR /&gt;&lt;BR /&gt;Does the GetTessellatedBodyCount return the number of mesh+nurbs bodies?&lt;BR /&gt;&lt;BR /&gt;In other words, if my object is a nurbs, will GetTessellatedBody return a polygonal tessellated version of the nurbs geometry?&lt;BR /&gt;&lt;BR /&gt;Also, I read somewhere that tessellated bodies doesn't mean triangles, it only guarantees convex polygons. is this true?&lt;BR /&gt;&lt;BR /&gt;Finally, let's say my element is a wall, will getting the tessellated bodies of the wall contain the openings, or will I just get a flat rectangle?&lt;BR /&gt;&lt;BR /&gt;thx!&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:36:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272887#M2093</guid>
      <dc:creator>drjustice</dc:creator>
      <dc:date>2021-09-14T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Element Bodies: Meshes, Tessellated meshes, Nurbs.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272888#M2094</link>
      <description>There are two types of bodies in the model:&lt;BR /&gt;
- &lt;B&gt;MeshBody&lt;/B&gt;: Body represented as planar polygon boundaries.&lt;BR /&gt;
- &lt;B&gt;NurbsBody&lt;/B&gt;: Body represented as a NURBS surface.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;TessellatedBody&lt;/B&gt; is a helper class that contains the planar polygon boundary representation of the body regardless of it's original representation. So if you would like to have triangles, you can always use &lt;B&gt;TessellatedBody&lt;/B&gt;, and don't have to use the other two types.&lt;BR /&gt;
&lt;BR /&gt;
From a &lt;B&gt;TessellatedBody&lt;/B&gt; you can access &lt;B&gt;Polygon&lt;/B&gt; instances, and get &lt;B&gt;ConvexPolygon&lt;/B&gt; instances from that polygon. A &lt;B&gt;ConvexPolygon&lt;/B&gt; - as the name says - always convex, so you can easily triangulate it by forming a fan from the first vertex.</description>
      <pubDate>Mon, 07 Jun 2021 20:09:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272888#M2094</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2021-06-07T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Element Bodies: Meshes, Tessellated meshes, Nurbs.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272889#M2095</link>
      <description>Thank you. That's exactly the answer I was looking for. Cookies for you.&lt;BR /&gt;
&lt;BR /&gt;
But also, an important part of the question that remained unaswered:&lt;BR /&gt;
&lt;BR /&gt;
"let's say my element is a wall, will getting the tessellated bodies of the wall contain the openings, or will I just get a flat rectangle?"</description>
      <pubDate>Tue, 08 Jun 2021 16:23:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272889#M2095</guid>
      <dc:creator>drjustice</dc:creator>
      <dc:date>2021-06-08T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Element Bodies: Meshes, Tessellated meshes, Nurbs.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272890#M2096</link>
      <description>The element will have all the holes. Openings will be separate elements, but their place will be cutted out from their owner element.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2021 06:59:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272890#M2096</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2021-06-09T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Element Bodies: Meshes, Tessellated meshes, Nurbs.</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272891#M2097</link>
      <description>That is most excellent, thanks</description>
      <pubDate>Sat, 19 Jun 2021 05:47:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Element-Bodies-Meshes-Tessellated-meshes-Nurbs/m-p/272891#M2097</guid>
      <dc:creator>drjustice</dc:creator>
      <dc:date>2021-06-19T05:47:25Z</dc:date>
    </item>
  </channel>
</rss>

