<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Hi,</div></div><div dir="ltr"><br></div><div>I have an unstructured mesh that represents some topography and I am able to view this in paraview. I would like to have a set of points overlain over this 3D mesh that correspond to various physical locations, so-as to more easily interpret my results.</div><div><br></div><div>I am following this wiki link pretty much verbatim to write this set of points to a VTP file.</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP</a><br></div><div><br></div><div>I insert a point like</div><div> points->InsertNextPoint ( UTM_easting,UTM_northing, elevation );<br></div></div></div></div></div></div>
<div dir="ltr"><br></div><div>When I write to vtp using ascii output, it looks correct (the negative easting value is a result of the projection I'm using).</div><div><br></div><div><div><Points></div><div> <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii" RangeMin="3525178.8854" RangeMax="3525178.8854"></div><div> -2100420 2831098.75 1375.8105469</div><div> </DataArray></div><div> </Points></div></div><div><br></div><div>However, when I view this in Paraview, I see nothing. No amount of fiddling with representation and corresponding size seems to make these points visible.</div><div><br></div><div>When I compile and run the example linked in the wiki, I am able to see the points in 3D glyph mode. However if I modify it to write just 1 point to output, e.g.,</div><div> points->InsertNextPoint ( -2100420, 2831098.75 ,1375.8105469);<br></div><div>I can not see the point. If I change to 3D glyph-> Sphere I can see it in 2D, and if I overlay my unstructured mesh it goes away. Full contents of vtp file are below</div><div>Cheers</div><div>Chris</div><div><br></div><div><div><?xml version="1.0"?></div><div><VTKFile type="PolyData" version="0.1" byte_order="LittleEndian" header_type="UInt32" compressor="vtkZLibDataCompressor"></div><div> <PolyData></div><div> <Piece NumberOfPoints="1" NumberOfVerts="0" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0"></div><div> <PointData></div><div> </PointData></div><div> <CellData></div><div> </CellData></div><div> <Points></div><div> <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii" RangeMin="3525178.8893" RangeMax="3525178.8893"></div><div> -2100420 2831098.75 1375.8105469</div><div> </DataArray></div><div> </Points></div><div> <Verts></div><div> <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> </Verts></div><div> <Lines></div><div> <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> </Lines></div><div> <Strips></div><div> <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> </Strips></div><div> <Polys></div><div> <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="1e+299" RangeMax="-1e+299"></div><div> </DataArray></div><div> </Polys></div><div> </Piece></div><div> </PolyData></div><div></VTKFile></div></div><div><br></div></div>