[vtkusers] Re : Constrained Delaunay triangulation

pof jd379252 at gmail.com
Sat Nov 14 16:13:50 EST 2009


Hi David, 
I've already used constrained Delaunay few years back and it worked.
What I did was (vtk5.0.4) :

// adding points to polydata 
PolyData->SetLines(Lines);

// adding constraints lines (actually inner lines)
PolyData->SetLines(Lines);

// adding the contour to the polydata
PolyData->SetPolys(contour);

// update
PolyData->Update();

// 
vtkDelaunay2D *Del = vtkDelaunay2D::New();
Del->SetInput(PolyData);
Del->SetSource(PolyData);
Del->Update();

Hope this helps
JD





More information about the vtkusers mailing list