[vtkusers] vtk add automatic points in delaunay 3D??
David Imboden
d at davidimboden.net
Mon Apr 10 06:01:29 EDT 2006
Hello,
When I write an output with VTK, he add me some points (end of file)! Why?
How to correct this?
Thanks
Vtk code :
p->InsertNextPoint(1,0,1) ;
p->InsertNextPoint(2,0,2) ;
p->InsertNextPoint(3,0,1) ;
p->InsertNextPoint(4,0,2) ;
p->InsertNextPoint(5,0,1) ;
p->InsertNextPoint(6,0,2) ;
p->InsertNextPoint(7,0,1) ;
p->InsertNextPoint(8,0,2) ;
p->InsertNextPoint(9,0,1) ;
p->InsertNextPoint(10,0,2) ;
p->InsertNextPoint(1,1,1) ;
p->InsertNextPoint(2,1,2) ;
p->InsertNextPoint(3,1,1) ;
p->InsertNextPoint(4,1,2) ;
p->InsertNextPoint(5,1,1) ;
p->InsertNextPoint(6,1,2) ;
p->InsertNextPoint(7,1,1) ;
p->InsertNextPoint(8,1,2) ;
p->InsertNextPoint(9,1,1) ;
p->InsertNextPoint(10,1,2) ;
pd->SetPoints(p) ;
delaunay3d->SetInput(pd) ;
delaunay3d->BoundingTriangulationOn() ;
delaunay3d->Update() ;
uGridW->SetInputConnection(delaunay3d->GetOutputPort());
uGridW->SetFileName("test.txt") ;
uGridW->Write() ;
________________________________
vtk output
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 26 float
1 0 1 2 0 2 3 0 1
4 0 2 5 0 1 6 0 2
7 0 1 8 0 2 9 0 1
10 0 2 1 1 1 2 1 2
3 1 1 4 1 2 5 1 1
6 1 2 7 1 1 8 1 2
9 1 1 10 1 2 -17.2761 0.5 1.5
28.2761 0.5 1.5 5.5 -22.2761 1.5 5.5 23.2761 1.5
5.5 0.5 -21.2761 5.5 0.5 24.2761
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060410/c251857f/attachment.htm>
More information about the vtkusers
mailing list