[vtkusers] vtkCellLinks
chensiqi
pidanchen at hotmail.com
Sat Dec 27 01:05:05 EST 2008
Hi, VTKers.
I have a VTKPoints object "points" and a VTKCellArray "cellArray" object which defines the connectivity of VTKPoints. Now I want to link those points in a right order ( either clockwise or counter- ). I think vtkCellLinks can do this job, but seems there is no explanations or examples so far.
Here is my piece of code, it doesn't work as it should be. But I have no idea how to make it work.
/////////////////////////////////////////
vtkUnstructuredGrid *dataSet = vtkUnstructuredGrid::New(); dataSet->SetPoints( points ); vtkCellLinks *link = vtkCellLinks::New(); link->Allocate( points->GetNumberOfPoints(), ext ); link->BuildLinks(dataSet, cellArray);
link->GetLink ( Id );
////////////////////////////////////////
Have a good holiday.
Siqi
_________________________________________________________________
不只是收发邮件— 查看 Windows Live™ 的更多精彩功能。
http://www.microsoft.com/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081227/45c5a899/attachment.htm>
More information about the vtkusers
mailing list