[vtkusers] I want to make multi vtkQuad data to a vtkPolyData field

MK.LEE lmklgm at naver.com
Mon Nov 14 01:39:51 EST 2016


Hello vtk users

I study VTK to visualize .dyn model.
I read .dyn Data and complete showing to renderer whole dyn data.
But, i want to seperate shell Data by Part ID.

for exameple:
 ShellID      PartID      NodeID1   2   3   4
   1              11                   1   2   3  4
   2              11                   5   6   7  8
   3              2                     9   10 11 12
   4              12                   13  2  14 15
   5              11                   11  12 23 24

And, I wrote code like this:
vtkSmartPointer<vtkQuad> quad = vtkSmartPointer<vtkQuad>::New();
vtkSmartPointer<vtkCellArray> quads = vtkSmartPointer<vtkCellArray>::New();
for(initial;size;++)
{
quad->GetPointIds()->SetId(0, NodeID_1);
quad->GetPointIds()->SetId(1, NodeID_2);
quad->GetPointIds()->SetId(2, NodeID_3);
quad->GetPointIds()->SetId(3, NodeID_4);
}
vtkSmartPointer<vtkPolyData> polydata =	vtkSmartPointer<vtkPolyData>::New();
polydata->SetPoints(points);
polydata->SetPolys(quads);

--------------------------------------

I check that I can put multi Quad Data to CellArray Data.
But, I have to make Quad Data Partly visualize.

How to make multi Quad Data save to vtkPolyData?
Do I must make multi vtkQuad Class as much as number of Shell Part?



--
View this message in context: http://vtk.1045678.n5.nabble.com/I-want-to-make-multi-vtkQuad-data-to-a-vtkPolyData-field-tp5741154.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list