<?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: Getting correct UV coordinates (APIAny_GetTextureCoordID in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-correct-UV-coordinates-APIAny-GetTextureCoordID/m-p/52357#M7236</link>
    <description>Have you had any success in solving it?</description>
    <pubDate>Thu, 19 Jul 2007 07:16:25 GMT</pubDate>
    <dc:creator>stefan</dc:creator>
    <dc:date>2007-07-19T07:16:25Z</dc:date>
    <item>
      <title>Getting correct UV coordinates (APIAny_GetTextureCoordID)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-correct-UV-coordinates-APIAny-GetTextureCoordID/m-p/52356#M7235</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm building a custom exporter for ArchiCAD 8.1 (using API Development Kit 5.1) and I'm having trouble getting the correct UV coordinates. I've been trying to use ACAPI_Goodies with APIAny_GetTextureCoordID to get the UV coordinates, but without much success. &lt;BR /&gt;&lt;BR /&gt;The function takes a pointer to API_TexCoordPars and API_UVCoord. First struct specifies the body and polygon indeces and a surface point in local coordinate system. &lt;BR /&gt;&lt;BR /&gt;So far what I've tried to do is:
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Gather the vertices for the polygon in their local coordinate space (ie. without applying the body matrix to vertices), which are correct and verified&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;For each vertex, call the ACAPI_Goodies(APIAny_GetTextureCoordID, &amp;amp;txpars, &amp;amp;uv) where txpars is API_TexCoordPars filled with body and polygon indices and the vertex.&lt;/LI&gt;
&lt;/UL&gt;
&lt;S&gt;No errors happen, but the returned UV-coordinates are something other than they should be (like, really huge numbers).&lt;BR /&gt;&lt;BR /&gt;Any ideas? What am I missing here?&lt;/S&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:51:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-correct-UV-coordinates-APIAny-GetTextureCoordID/m-p/52356#M7235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting correct UV coordinates (APIAny_GetTextureCoordID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-correct-UV-coordinates-APIAny-GetTextureCoordID/m-p/52357#M7236</link>
      <description>Have you had any success in solving it?</description>
      <pubDate>Thu, 19 Jul 2007 07:16:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-correct-UV-coordinates-APIAny-GetTextureCoordID/m-p/52357#M7236</guid>
      <dc:creator>stefan</dc:creator>
      <dc:date>2007-07-19T07:16:25Z</dc:date>
    </item>
  </channel>
</rss>

