<?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 Ray-to-object 3D intersection test method in Archicad? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Ray-to-object-3D-intersection-test-method-in-Archicad/m-p/278346#M3592</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;Does the Archicad API support detecting ray-to-object collision/intersection detection.&lt;BR /&gt;Revit has a pure method &lt;A href="http://revitapisearch.com.s3-website-us-east-1.amazonaws.com/html/4108a128-9fe8-05ae-5536-8727427788bc.htm" target="_blank" rel="noopener"&gt;Document.FindReferencesWithContextByDirection&lt;/A&gt; which takes a ray origin, ray direction and the 3D view and returns references which collide with the ray. (in my specific case a simple boolean result would be sufficient.)&lt;BR /&gt;&lt;BR /&gt;I have already manually written code to create boxes for all walls, beams, slabs, however this is not accurate enough. My collision detection uses the Möller-Trumbore intersection algorithm for the 12 surface triangles each box consists of (6 sides * 2 triangles per side). Using that algorithm it would also be helpful to get triangles for any object, so also more complicated elements (non-box, slanted walls, etc.) can be detected accurately.&lt;BR /&gt;&lt;BR /&gt;Of course a one-liner method like the one I mentioned above would be preferable, but if I could get the surface geometry of elements in the form of (more accurate) triangles (or some other shape with a different algorithm) this would also help me immensely!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help,&lt;BR /&gt;- Dan&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Oct 2022 14:42:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-04T14:42:30Z</dc:date>
    <item>
      <title>Ray-to-object 3D intersection test method in Archicad?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Ray-to-object-3D-intersection-test-method-in-Archicad/m-p/278346#M3592</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;Does the Archicad API support detecting ray-to-object collision/intersection detection.&lt;BR /&gt;Revit has a pure method &lt;A href="http://revitapisearch.com.s3-website-us-east-1.amazonaws.com/html/4108a128-9fe8-05ae-5536-8727427788bc.htm" target="_blank" rel="noopener"&gt;Document.FindReferencesWithContextByDirection&lt;/A&gt; which takes a ray origin, ray direction and the 3D view and returns references which collide with the ray. (in my specific case a simple boolean result would be sufficient.)&lt;BR /&gt;&lt;BR /&gt;I have already manually written code to create boxes for all walls, beams, slabs, however this is not accurate enough. My collision detection uses the Möller-Trumbore intersection algorithm for the 12 surface triangles each box consists of (6 sides * 2 triangles per side). Using that algorithm it would also be helpful to get triangles for any object, so also more complicated elements (non-box, slanted walls, etc.) can be detected accurately.&lt;BR /&gt;&lt;BR /&gt;Of course a one-liner method like the one I mentioned above would be preferable, but if I could get the surface geometry of elements in the form of (more accurate) triangles (or some other shape with a different algorithm) this would also help me immensely!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help,&lt;BR /&gt;- Dan&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:42:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Ray-to-object-3D-intersection-test-method-in-Archicad/m-p/278346#M3592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T14:42:30Z</dc:date>
    </item>
  </channel>
</rss>

