<div>I have a simple vtp file to draw a 2D triangle.</div><div>################################################</div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</div><div>&lt;VTKFile type=&quot;PolyData&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot;&gt;</div>
<div>        &lt;PolyData&gt;</div><div>                &lt;Piece NumberOfPoints=&quot;3&quot; NumberOfPolys=&quot;1&quot;&gt;</div><div><br></div><div>&lt;Points&gt;</div><div>                                &lt;DataArray type=&quot;Float32&quot; NumberOfComponents=&quot;2&quot; </div>
<div>format=&quot;ascii&quot;&gt;</div><div>0.0 0.0</div><div>1.0 0.0 </div><div>0.0 1.0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>                                &lt;/DataArray&gt;</div><div>
                        &lt;/Points&gt;</div><div>                        &lt;Polys&gt;</div><div>                                &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; </div><div>format=&quot;ascii&quot;&gt;</div>
<div>                                        0 1 2</div><div>                                &lt;/DataArray&gt;</div><div>                                &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; </div>
<div>format=&quot;ascii&quot;&gt;</div><div>                                         3</div><div>                                &lt;/DataArray&gt;</div><div>                        &lt;/Polys&gt;</div><div><br></div><div>
                &lt;/Piece&gt;</div><div>        &lt;/PolyData&gt;</div><div>&lt;/VTKFile&gt;</div><div>#######################</div><div>When I load it with paraview, I get the following message:</div><div>&quot;vtkPoints: Number of components is different... can&#39;t set data&quot;.</div>
<div><br></div><div>If however, I change NumberOfComponents to  3 and append a 0 at the end of each point&#39;s coordinates,</div><div>it works fine.</div><div>Anything I am missing?</div><div><br></div><div>Thanks, Ram.</div>