<?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 api delete issues in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8409158#M8688</link>
    <description>&lt;P&gt;&amp;nbsp;hi!&lt;/P&gt;&lt;P&gt;maya api&amp;nbsp;does not delete..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;meshFn&lt;/SPAN&gt;&lt;SPAN&gt;.deleteFace(14)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="contentBox"&gt;&lt;DIV class="well well-small"&gt;&lt;DIV class="goog-trans-section translated-ltr"&gt;&lt;SPAN class="gt-text"&gt;&lt;FONT&gt;&lt;FONT&gt;does not work!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="goog-trans-section translated-ltr"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="goog-trans-section translated-ltr"&gt;&lt;SPAN class="gt-text"&gt;&lt;FONT&gt;&lt;FONT&gt;PN:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="contentBox"&gt;&amp;nbsp;P L E A S E&amp;nbsp; &amp;nbsp;H E L P.&lt;/DIV&gt;&lt;DIV class="contentBox"&gt;thanks.&lt;/DIV&gt;</description>
    <pubDate>Sun, 18 Nov 2018 18:28:32 GMT</pubDate>
    <dc:creator>egoldid1</dc:creator>
    <dc:date>2018-11-18T18:28:32Z</dc:date>
    <item>
      <title>api delete issues</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8409158#M8688</link>
      <description>&lt;P&gt;&amp;nbsp;hi!&lt;/P&gt;&lt;P&gt;maya api&amp;nbsp;does not delete..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;meshFn&lt;/SPAN&gt;&lt;SPAN&gt;.deleteFace(14)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="contentBox"&gt;&lt;DIV class="well well-small"&gt;&lt;DIV class="goog-trans-section translated-ltr"&gt;&lt;SPAN class="gt-text"&gt;&lt;FONT&gt;&lt;FONT&gt;does not work!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="goog-trans-section translated-ltr"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="goog-trans-section translated-ltr"&gt;&lt;SPAN class="gt-text"&gt;&lt;FONT&gt;&lt;FONT&gt;PN:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="contentBox"&gt;&amp;nbsp;P L E A S E&amp;nbsp; &amp;nbsp;H E L P.&lt;/DIV&gt;&lt;DIV class="contentBox"&gt;thanks.&lt;/DIV&gt;</description>
      <pubDate>Sun, 18 Nov 2018 18:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8409158#M8688</guid>
      <dc:creator>egoldid1</dc:creator>
      <dc:date>2018-11-18T18:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: api delete issues</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8417863#M8689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;egoldid1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried out the function deleteFace() and it seems to work for me. May I get a a sample of the problem that you're having?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 02:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8417863#M8689</guid>
      <dc:creator>lanh.hong</dc:creator>
      <dc:date>2018-11-22T02:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: api delete issues</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8418426#M8690</link>
      <description>&lt;P&gt;thanks! but, i &lt;SPAN&gt;should tell&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN&gt;you,&amp;nbsp;deleteFace, work in python api, but it dont work in c++ api for me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;this is my c++ code:&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;MObject oThis = thisMObject();&amp;nbsp;

MDataHandle origMeshSrcHandle = data.inputValue(inMeshAttr);&amp;nbsp;
MObject inMesh = origMeshSrcHandle.asMesh();&amp;nbsp;
//inMesh:&amp;nbsp;
MFnMesh inMesh_fn(inMesh, &amp;amp;stat);&amp;nbsp;

MFnMeshData meshDataFn;&amp;nbsp;
MObject outMeshObj = meshDataFn.create();&amp;nbsp;
MFnMesh outMeshFn;&amp;nbsp;
outMeshFn.copy(inMesh, outMeshObj);&amp;nbsp;

outMeshFn.deleteFace(12);&amp;nbsp;

MPlug oMPlug(oThis, outMeshAttr);&amp;nbsp;
oMPlug.selectAncestorLogicalIndex(0, outsAttr);&amp;nbsp;
oMPlug.setMObject(outMeshObj);&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 10:12:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8418426#M8690</guid>
      <dc:creator>egoldid1</dc:creator>
      <dc:date>2018-11-22T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: api delete issues</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8431379#M8691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;egoldid1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to delete the face of the copied mesh, you must first create another function set to operate on it.&lt;/P&gt;
&lt;PRE&gt;outMeshFn.copy(inMesh, outMeshObj); 
MFnMesh newMeshFn(outMeshObj);
newMeshFn.deleteFace(12); &lt;/PRE&gt;
&lt;P&gt;If you prefer, you can also operate on the input mesh object before copying.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for my late reply, but I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lanh&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 20:31:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/api-delete-issues/m-p/8431379#M8691</guid>
      <dc:creator>lanh.hong</dc:creator>
      <dc:date>2018-11-28T20:31:20Z</dc:date>
    </item>
  </channel>
</rss>

