Hello, I'm new to vtk and this user group.
Very much in learning stage.
I have been trying to triangulate
unstructured surface data point.
I have been using vtkDelaunay3D
vtkFloatPoints *startPoints =
vtkFloatPoints::New();
vtkPolyData *inputDataSet;
inputDataSet =
vtkPolyData::New();
inputDataSet->SetPoints(startPoints);
vtkDelaunay3D *del =
vtkDelaunay3D::New();
del->SetInput(inputDataSet);
del->SetTolerance(0.001);
when it comes to this line the
following error accord
vtkPolyDataMapper *mapMapper =
vtkPolyDataMapper::New();
mapMapper->SetInput(del->GetOutput());
error
C2664: 'void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)'
:
cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 'class
vtkPolyData *'
or is it the way I'm doing here is wrong?
Does anybody know how I can
overcome this error
Any help will be very welcome.
Thank you in advance.
Chandra.