Thanks for your reply!
I already have tested with the vtkDelaunay2d sample code.
I modified the code as below, the stack overflow exception occurred.
My code:
int main(int, char*[])
{
vtkNew<vtkNamedColors> colors;
vtkNew<vtkPLYReader> reader;
reader->SetFileName("test.ply");
reader->Update();
// Create a set of heights on a grid.
// This is often called a "terrain map".
vtkNew<vtkPoints> points;
points->DeepCopy(reader->GetOutput()->GetPoints());
// Add the grid points to a polydata object
vtkNew<vtkPolyData> polydata;
polydata->SetPoints(points);
//... same as the sample code
}