<?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: Checking UV mapping for inverted and overlapped faces in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/checking-uv-mapping-for-inverted-and-overlapped-faces/m-p/12864338#M874</link>
    <description>&lt;P&gt;post an example file that shows what the code is doing wrong.&lt;BR /&gt;v 2020 please... so most people can try it.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 09:47:59 GMT</pubDate>
    <dc:creator>denisT.MaxDoctor</dc:creator>
    <dc:date>2024-06-27T09:47:59Z</dc:date>
    <item>
      <title>Checking UV mapping for inverted and overlapped faces</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/checking-uv-mapping-for-inverted-and-overlapped-faces/m-p/12863322#M873</link>
      <description>&lt;P&gt;A long time ago I found a code example on CGTalk,&lt;BR /&gt;now I needed it and decided to check it. It works,&lt;BR /&gt;but not as well as I would like.&lt;BR /&gt;It doesn't always find what it should find&lt;BR /&gt;and sometimes finds what it shouldn't )&lt;BR /&gt;Is there any more accurate method of checking?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;for i in geometry do
(
    select i
    AddModifier i (Unwrap_UVW())
    local faces = #{1..(meshOp.getNumFaces i.mesh)}
    i.modifiers ["Unwrap_UVW"].getArea faces &amp;amp;uvX &amp;amp;uvY &amp;amp;uvWidth &amp;amp;uvHeight &amp;amp;uvFaceArea &amp;amp;objGeomArea
    if uvWidth &amp;gt; 1 or uvHeight &amp;gt; 1 then print ("UVW mapping out of range " + i.name)

    i.modifiers ["Unwrap_UVW"].selectOverlappedFaces()
    overcnt = (i.Unwrap_Uvw.getSelectedFaces()).numberSet
    if overcnt &amp;gt;= 1 then print ("Overlapped UVW " + i.name)

    i.modifiers ["Unwrap_UVW"].selectInvertedFaces()
    invrtcnt = (i.Unwrap_Uvw.getSelectedFaces()).numberSet
    if invrtcnt &amp;gt;=1 then print ("Inverted UVW " + i.name)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Jun 2024 19:56:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/checking-uv-mapping-for-inverted-and-overlapped-faces/m-p/12863322#M873</guid>
      <dc:creator>maxyweb</dc:creator>
      <dc:date>2024-06-26T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Checking UV mapping for inverted and overlapped faces</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/checking-uv-mapping-for-inverted-and-overlapped-faces/m-p/12864338#M874</link>
      <description>&lt;P&gt;post an example file that shows what the code is doing wrong.&lt;BR /&gt;v 2020 please... so most people can try it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 09:47:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/checking-uv-mapping-for-inverted-and-overlapped-faces/m-p/12864338#M874</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-06-27T09:47:59Z</dc:date>
    </item>
  </channel>
</rss>

