[vtkusers] usage of "vtkUnstructuredGrid.InsertNextCell" !!

윤영하 hives97 at aeroguy.snu.ac.kr
Tue Jul 11 02:20:23 EDT 2006


Hi,

I want to represent a cubic-meshed  structure  using vtkUnstructuredGrid (don't ask the reason :-)

Node information is 

*NODE 43567
-0.003482 -0.003482 0
-0.003482 0 0
-0.003482 0.003482 0
0 -0.003482 0
0 0 0
0 0.003482 0
0.003482 -0.003482 0
0.003482 0 0
0.003482 0.003482 0
0.003916 0.003916 0
0.00435 0.00435 0
0.004783 0.004783 0
0.005217 0.005217 0
.
.
.(omit)

Element information is...
*ELEMENT 36848
8 1 1 4 5 2 82 85 86 83
8 1 2 5 6 3 83 86 87 84
8 1 4 7 8 5 85 88 89 86
8 1 5 8 9 6 86 89 90 87
8 1 10 11 20 19 91 92 101 100
8 1 11 12 21 20 92 93 102 101
8 1 12 13 22 21 93 94 103 102
8 1 13 14 23 22 94 95 104 103
8 1 14 15 24 23 95 96 105 104
8 1 15 16 25 24 96 97 106 105
8 1 16 17 26 25 97 98 107 106
8 1 17 18 27 26 98 99 108 107
8 1 19 20 29 28 100 101 110 109
.
.
.(omit)



And the method of InsertNextCell  is  like this.

vtkIdType vtkUnstructuredGrid::InsertNextCell  (  int  type,   vtkIdList *  ptIds )  
 


What does the type mean ??

Some people use this method like...
vtkUnstructuredGrid::InsertNExtCell(12, IdList)

Why 12 ??

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060711/3c02dba5/attachment.htm>


More information about the vtkusers mailing list