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