[vtkusers] trouble with pointset
Joey Mukherjee
joey at phobos.space.swri.edu
Tue Sep 25 09:39:44 EDT 2001
> vtkDelaunay2D *Delaunay;
> vtkPointSet *PointSet;
> vtkPoints *xyz;
>
> Delaunay = vtkDelaunay2D::New();
> PointSet = vtkPointSet::New();
><------------will this work?
> xyz = vtkPoints::New();
>
>say for example that i had added the points into xyz using:
>
>for (int i =0; i < number; i++)
>xyz->setpoint(somenumber,x,y,z);
>
>PointSet->SetPoints(xyz); <------------------
>Delaunay->SetInput(PointSet); <------------------ will this
>work?
No. You need to put the points into a dataset like vtkStructuredGrid and then it will work.
Joey
+--------------------------------------------------------------------------+
+ +
+ Joey Mukherjee "The price of freedom is eternal +
+ joey at swri.org vigilance, or $12.50 as seen on +
+ E-Bay... +
+ +
+--------------------------------------------------------------------------+
More information about the vtkusers
mailing list