[vtkusers] ramdom points to surface problem
Paul Tait
paul at opes.com.au
Thu Oct 9 05:32:39 EDT 2003
Hi All
I'm trying to create a surface from some random points so eventually I can
contour it, but I'm not getting very far
I'm using what I think is fairly standard code
polydata->SetPoints(points);
vtkDelaunay2D *del3 = vtkDelaunay2D::New();
del3->SetInput(polydata);
del3->SetSource(polydata);
mapCellTop->SetInput(del3->GetOutput());
CellTopActor->SetMapper(mapCellTop);
but I'm getting this debug output
Debug: In D:\vtk42\vtk-src-windows\Common\vtkObject.cxx, line 235
vtkDelaunay2D (2977CD48): UnRegistered by NULL, ReferenceCount = 1
Debug: In d:\vtk42\vtk-src-windows\Graphics\vtkDelaunay2D.cxx, line 312
vtkDelaunay2D (2977CD48): Generating 2D Delaunay triangulation
Debug: In d:\vtk42\vtk-src-windows\Graphics\vtkDelaunay2D.cxx, line 507
vtkDelaunay2D (2977CD48): point #0
Debug: In d:\vtk42\vtk-src-windows\Common\vtkProcessObject.h, line 90
vtkDelaunay2D (2977CD48): vtkDelaunay2D (2977CD48): returning AbortExecute
of 0
Debug: In d:\vtk42\vtk-src-windows\Graphics\vtkDelaunay2D.cxx, line 519
vtkDelaunay2D (2977CD48): Triangulated 4 points, 0 of which were duplicates
Debug: In d:\vtk42\vtk-src-windows\Graphics\vtkDelaunay2D.cxx, line 312
vtkDelaunay2D (2977CD48): Generating 2D Delaunay triangulation
ERROR: In d:\vtk42\vtk-src-windows\Graphics\vtkDelaunay2D.cxx, line 323
vtkDelaunay2D (2977CD48): <<Cannot triangulate; no input points
etc......
my point data is as follows
points->InsertPoint(0, -86, -454, 470.4)
points->InsertPoint(1, -119, 277, 470.5)
points->InsertPoint(2, 193, -1703, 470.39)
points->InsertPoint(3, 399, -554, 470.6)
Any help will be appreciated and probably save my sanity
Thanks Paul Tait
More information about the vtkusers
mailing list