<?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 Use gravity for Z position in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255847#M5409</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;My Addon creates API_Element (GDL object) on user specified coordinates acquired with APIIo_GetPointID. X and Y coordinates are ok, Z coordinate is always zero.&lt;BR /&gt;
&lt;BR /&gt;
I would like to use gravity when picking a point on eg Mesh so Z coordinate gets populated too.&lt;BR /&gt;
&lt;BR /&gt;
Is this possible?&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 May 2023 14:37:44 GMT</pubDate>
    <dc:creator>Miha Nahtigal</dc:creator>
    <dc:date>2023-05-23T14:37:44Z</dc:date>
    <item>
      <title>Use gravity for Z position</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255847#M5409</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;My Addon creates API_Element (GDL object) on user specified coordinates acquired with APIIo_GetPointID. X and Y coordinates are ok, Z coordinate is always zero.&lt;BR /&gt;
&lt;BR /&gt;
I would like to use gravity when picking a point on eg Mesh so Z coordinate gets populated too.&lt;BR /&gt;
&lt;BR /&gt;
Is this possible?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 May 2023 14:37:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255847#M5409</guid>
      <dc:creator>Miha Nahtigal</dc:creator>
      <dc:date>2023-05-23T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use gravity for Z position</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255848#M5410</link>
      <description>Talking to myself a bit more...&lt;BR /&gt;
&lt;BR /&gt;
I could use TDGetHeightAtPoint() which will "Calculate the height of a triangulated mesh at a given location."&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately one of the parameters is a list of triangles. Browsing through mesh type and its memo, I do not think I can extract them from specified existing mesh.&lt;BR /&gt;
&lt;BR /&gt;
To go a bit further... there is also a TDTriangulate() function. Wouldn't be a bit overkill using it on already defined (and triangulated) mesh?</description>
      <pubDate>Tue, 09 Feb 2016 12:53:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255848#M5410</guid>
      <dc:creator>Miha Nahtigal</dc:creator>
      <dc:date>2016-02-09T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use gravity for Z position</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255849#M5411</link>
      <description>&lt;BLOCKQUOTE&gt;vuego wrote:&lt;BR /&gt;My Addon creates API_Element (GDL object) on user specified coordinates acquired with APIIo_GetPointID. X and Y coordinates are ok, Z coordinate is always zero. I would like to use gravity when picking a point on eg Mesh so Z coordinate gets populated too.&lt;/BLOCKQUOTE&gt;
I don't know if there is a shortcut to achieving this. You could get the 3D body of the mesh from ModelAccess or the older 3D Manager (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_Get3DInfo&lt;E&gt;&lt;/E&gt; etc). You could then determine which face lies directly under the point of interest and the z level on the plane at that point.</description>
      <pubDate>Wed, 10 Feb 2016 16:24:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255849#M5411</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2016-02-10T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use gravity for Z position</title>
      <link>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255850#M5412</link>
      <description>I've decided to change my object creation concept. &lt;BR /&gt;
&lt;BR /&gt;
Switched from APIelement creation to new element event observer and let user use default gravity functionality of AC. API magic is fired afterwards.</description>
      <pubDate>Thu, 11 Feb 2016 08:28:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Use-gravity-for-Z-position/m-p/255850#M5412</guid>
      <dc:creator>Miha Nahtigal</dc:creator>
      <dc:date>2016-02-11T08:28:39Z</dc:date>
    </item>
  </channel>
</rss>

