<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>
Hi, VTKers.<BR>
<BR>
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. <BR>
<BR>
Here is my piece of code, it doesn't work as it should be. But I have no idea how to make it work.<BR>
/////////////////////////////////////////<BR>
vtkUnstructuredGrid *dataSet = vtkUnstructuredGrid::New();<BR> dataSet->SetPoints( points );<BR> vtkCellLinks *link = vtkCellLinks::New();<BR> link->Allocate( points->GetNumberOfPoints(), ext );<BR> link->BuildLinks(dataSet, cellArray);<BR>
link->GetLink ( Id );<BR>
////////////////////////////////////////<BR>
<BR>
<BR>
Have a good holiday.<BR>
Siqi<RTE_TEXT></RTE_TEXT><BR><br /><hr />查看 Windows Live™ 的更多精彩功能。
不只是收发邮件 — 了解Windows Live™ 的其他强大功能。
<a href='http://www.microsoft.com/windows/windowslive/' target='_new'>不只是收发邮件</a></body>
</html>