<p dir="ltr">I am trying to create a .vtk file from vertices, normals and polygons:</p>
<p dir="ltr"># vtk Datafile <br>
Vtk file<br>
ASCII<br>
DATASET POLYDATA<br>
#Vertices<br>
POINTS 6000 float<br>
X1 Y1 Z1<br>
...<br>
...</p>
<p dir="ltr">CELL_DATA 6000<br>
NORMALS cell_normals double<br>
x1 y1 z1<br>
...<br>
...</p>
<p dir="ltr">POLYGONS 15000 60000<br>
3 x11 y11 z11<br>
3 ...<br>
3 ...<br></p>
<p dir="ltr">ParaView gives an error loading this:<br>
VtkPolyDataReader: number of cells don't match number data values!<br></p>
<p dir="ltr">What am I doing wrong here?</p>
<p dir="ltr">Regards,<br>
Divya<br>
</p>