<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
hi,<br>
<br>
I tried to delete cells in polydata like this example <a
href="http://www.paraview.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/DeleteCells">http://www.paraview.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/DeleteCells</a>.
Code is compiled and worked but it cannot delete any cells which are
marked!<br>
<br>
I find another solution like this:<br>
<br>
<i> tempPData->Allocate(copyCellList->GetNumberOfIds());<br>
tempPData->CopyCells(pDataOut,copyCellList);<br>
pointsOut->Reset();<br>
pDataOut->Reset();<br>
pDataOut->DeepCopy(tempPData);<br>
pointsOut=pDataOut->GetPoints();<br>
tempPData->Delete();<br>
copyCellList->Delete();</i><br>
<br>
here I copy all cells which aren't delete a temporary <i>polydata </i>then
copy it again <i>pdataOut </i>but it seems very inefficient!<br>
Is there any working method apart from this inefficient way.<br>
<br>
Kind Regards.<br>
Ahmet Dogan <br>
</body>
</html>