Hi Everyone,
I am coming from a VisIt visualization world, with some experience on VisIt libsim. I am trying to create a curvilinear grid using ParaView catalyst. To do so, I have checked ParaView Catalyst user guide V2.0. In page 28 of this guide, there is a simple code for building curvilinear grids:
vtkStructuredGrid* grid = vtkStructuredGrid::New();
grid->SetExtent(0, 10, 0, 20, 0, 0);
vtkPoints* points = vtkPoints::New();
points->SetNumberOfPoints(11*21);
for(int j=0;j<21;j++)
{
for(int i=0;i<11;i++)
{
points->SetPoint(i+j*11, i, j, 0);
}
}
grid->SetPoints(points);
points->Delete();
Although the whole sample is clear, but I cannot understand the usage of the first parameter of SetPoint method. There is no explanation about it neither in the user guide nor in online documentations of vtkPoints class:
void vtkPoints::SetPoint ( vtkIdType id,
double x,
double y,
double z
)
Definition at line 288 of file vtkPoints.h.
Can anybody make me clear about it?
Thanks
Chou