 
   if (contour.GetVertices().GetNumberOfValues() == 0)
     {
-//    polydata->Reset();
     return;
     }
 

  appendFilter->Update();

  for (unsigned i=0;i<pyfrContourData->GetNumberOfContours();i++)
    polyData[i]->Delete();
}
  for (vtkIdType i=0;i<points->GetNumberOfPoints();i+=3)
    {
    for (vtkIdType j=0;j<3;j++)
      {
      indices[j] = i+j;
      }
    polys->InsertNextCell(3,indices);
    }

