<?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: Selecting outer or inner faces of mesh with PyMEL? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/selecting-outer-or-inner-faces-of-mesh-with-pymel/m-p/4234182#M15312</link>
    <description>I've made some progress...&lt;BR /&gt;&lt;BR /&gt;The snippet below now get's most lamina and inner faces for deletion. But is extremely slow when working on a mesh with 2400 polys (Menger Sponge iteration 2). Since the mesh is symmetrical I can polySplit it before performing this operation so save some time. Can anyone think of a faster solution?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;laminaf = pm.polyInfo(lf=True)&lt;BR /&gt;    innerf = []&lt;BR /&gt;    for lf in range(0, len(laminaf)):&lt;BR /&gt;        verts = pm.PyNode(laminaf).connectedVertices()&lt;BR /&gt;        for face in mesh.f:&lt;BR /&gt;            if face.connectedVertices() == verts:&lt;BR /&gt;                innerf.append(face)&lt;BR /&gt;    &lt;BR /&gt;    output('deleting %i' % (len(laminaf) + len(laminaf)) + ' lamina and inner faces') &lt;BR /&gt;    pm.delete()&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Jan 2012 15:43:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-23T15:43:30Z</dc:date>
    <item>
      <title>Selecting outer or inner faces of mesh with PyMEL?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/selecting-outer-or-inner-faces-of-mesh-with-pymel/m-p/4234181#M15311</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm writing a PyMEL script that generates the Menger Sponge with geometry. The script generates a whole bunch of cubes, combines them, merges the verticies then deletes the lamina faces. After i'm left with inner faces that were at the same positions at the lamina faces.   &lt;BR /&gt;&lt;BR /&gt;The only way I can think off to get rid of these faces is to either select all the external faces of a mesh and duplicate them to a new mesh or delete all the internal faces.&lt;BR /&gt;&lt;BR /&gt;Anyone know how to do either?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;David.&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/m/menger_spnge_ss1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/m/menger_spnge_ss2.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2012 19:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/selecting-outer-or-inner-faces-of-mesh-with-pymel/m-p/4234181#M15311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-22T19:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting outer or inner faces of mesh with PyMEL?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/selecting-outer-or-inner-faces-of-mesh-with-pymel/m-p/4234182#M15312</link>
      <description>I've made some progress...&lt;BR /&gt;&lt;BR /&gt;The snippet below now get's most lamina and inner faces for deletion. But is extremely slow when working on a mesh with 2400 polys (Menger Sponge iteration 2). Since the mesh is symmetrical I can polySplit it before performing this operation so save some time. Can anyone think of a faster solution?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;laminaf = pm.polyInfo(lf=True)&lt;BR /&gt;    innerf = []&lt;BR /&gt;    for lf in range(0, len(laminaf)):&lt;BR /&gt;        verts = pm.PyNode(laminaf).connectedVertices()&lt;BR /&gt;        for face in mesh.f:&lt;BR /&gt;            if face.connectedVertices() == verts:&lt;BR /&gt;                innerf.append(face)&lt;BR /&gt;    &lt;BR /&gt;    output('deleting %i' % (len(laminaf) + len(laminaf)) + ' lamina and inner faces') &lt;BR /&gt;    pm.delete()&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:43:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/selecting-outer-or-inner-faces-of-mesh-with-pymel/m-p/4234182#M15312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-23T15:43:30Z</dc:date>
    </item>
  </channel>
</rss>

