<?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: Exporting triangulation data in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11762730#M42348</link>
    <description>&lt;P&gt;What is your end goal? Are you trying to import into another software for generating something like G code? If so, then there are better tools than AutoCAD.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 16:37:10 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2023-02-17T16:37:10Z</dc:date>
    <item>
      <title>Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11759459#M42347</link>
      <description>&lt;P&gt;I am new to AutoCAD and I would need to export the triangulation data of a 3D object in AutoCAD.&lt;/P&gt;&lt;P&gt;That is: list of 3D coordinates of points/vertices and list of triangles (either coordinates of the vertices or reference to points).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I would also have data of tetrahedra if the object is filled, but this is not necessary. Is something like this possible? If not, what software could give me this data?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 13:34:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11759459#M42347</guid>
      <dc:creator>bostjan_gabr</dc:creator>
      <dc:date>2023-02-16T13:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11762730#M42348</link>
      <description>&lt;P&gt;What is your end goal? Are you trying to import into another software for generating something like G code? If so, then there are better tools than AutoCAD.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 16:37:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11762730#M42348</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-02-17T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11762977#M42349</link>
      <description>&lt;P&gt;There are several options for storing and retrieving 3D triangle data with AutoCAD.&amp;nbsp; The 3DFACE object is often used.&amp;nbsp; It stores the x,y,z world coordinates for up to 4 vertices.&amp;nbsp; The fourth vertex is often ignored as there it may not lie on the same plane defined by the first three vertecies. 3DFACE data can be exported in an ASCII text file as well as other methods.&amp;nbsp; An AutoCAD solid model can be exported in an stl format.&amp;nbsp; An stl file is often used for 3D printing.&amp;nbsp; It is a tesselated model of the solid which is essentially a collection of triangles in 3D space.&amp;nbsp; Each of these methods outputs the 3D coordinates for each triangle and therefore the vertex coordinates are duplicated for adjacent 3Dfaces. They do not create a single unique list of vertices and a list referencing the vertices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Civil 3D includes a TIN (Triangulated Irregular Network).&amp;nbsp; It is a collection of 3D triangles used to define a surface for civil engineering applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt;&amp;nbsp;noted, it wold help to know more about your application.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 18:06:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11762977#M42349</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-02-17T18:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763490#M42350</link>
      <description>&lt;P&gt;My end goal is purely academical/reserach. I am testing some algorithms for computing topological properties from large triangulations of bodies and want to obtain a examples from CAD models.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:05:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763490#M42350</guid>
      <dc:creator>bostjan_gabr</dc:creator>
      <dc:date>2023-02-17T22:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763521#M42351</link>
      <description>&lt;P&gt;You might want to explore Autodesk Civil 3D.&amp;nbsp; The TIN can be simple to complex depending on your data and site configuration/size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Civil 3D allows for the use of Points, LiDAR, DEMs, breaklines (3d polylines), contours (polylines), feature lines, grading objects and more.&amp;nbsp; Often models from other programs that have already optimized the ground data are imported in Civil 3D.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:29:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763521#M42351</guid>
      <dc:creator>tboehler</dc:creator>
      <dc:date>2023-02-17T22:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763528#M42352</link>
      <description>&lt;P&gt;Since you are doing research, I assume you can code. You could explode the 3D solid, which would give you a bunch of region objects. Select them and run explode again to get lines and arcs. Then run the OVERKILL command to remove duplicate lines. Now code a sub that iterates all the objects in modelspace and logs the startpoint and endpoint of each entity.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:37:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763528#M42352</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-02-17T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763570#M42353</link>
      <description>&lt;P&gt;Please refer to the attached documnet.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763570#M42353</guid>
      <dc:creator>WeTanks</dc:creator>
      <dc:date>2023-02-17T23:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763715#M42354</link>
      <description>&lt;P&gt;If you have the object as a solid object in AutoCAD you can export it as an STL binary file.&amp;nbsp; YOu can then use a program like &lt;A href="https://www.paraview.org/download/" target="_blank" rel="noopener"&gt;Paraview&lt;/A&gt; (free)&amp;nbsp; to convert the file to ASCII.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp; here's a torus with a cylinder subtracted from it as modeled in AutoCAD.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1676685471478.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1178213iFD7CE19CAE48A5D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1676685471478.png" alt="leeminardi_0-1676685471478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can display it in AutoCAD as a tessellated model by changing the visualstyle to 2D Wireframe and then give the hide command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_1-1676685583574.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1178214i3D4CFD636DB7E985/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_1-1676685583574.png" alt="leeminardi_1-1676685583574.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can change the density of triangles via Options, Rendered object smoothness.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_2-1676685700037.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1178215i4CBB405C825D1AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_2-1676685700037.png" alt="leeminardi_2-1676685700037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's a sample of the STL&amp;nbsp; ASCII file as viewed in an ASCII editor (e.g., Notepas++).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_3-1676685812165.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1178216i31E1C7C25496FD46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_3-1676685812165.png" alt="leeminardi_3-1676685812165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As mentioned previously, vertices are duplicated where adjacent triangles are coincident.&amp;nbsp; The only software I know that creates a list of vertices and a list to triangles that reference the vertex list are FEA programs. If you really need that format for your data you might be able to find an FEA mesh generator that will mesh an object with triangular elements.&amp;nbsp;&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>Sat, 18 Feb 2023 02:07:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11763715#M42354</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-02-18T02:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting triangulation data</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11772162#M42355</link>
      <description>&lt;P&gt;Thanks. I have the triangles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also another way: export to stl and then open the file in Python using numpy.stl&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 08:30:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/exporting-triangulation-data/m-p/11772162#M42355</guid>
      <dc:creator>bostjan_gabr</dc:creator>
      <dc:date>2023-02-22T08:30:46Z</dc:date>
    </item>
  </channel>
</rss>

