<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Glad that helped, Eric.<br>
    <br>
    Well, if you have the connectivity you can just write the surface
    cells (triangles, quadrangles) like you did with the vertexes. If
    you don't have the connectivity then I do not know, but I'm sure
    someone on the ML will be able to help.<br>
    <br>
    Martin<br>
    <br>
    <div class="moz-cite-prefix">On 01/02/2016 16:32, Eric Robertson
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACk0HAMYUoG0AOChJPikxkkLvWt3g==gxPUxk0xKcqZS2S_-qw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Thanks Martin. That works pretty well. <br>
            <br>
          </div>
          I might add that I am scripting in C++ but I was quickly able
          to translate. <br>
          <br>
        </div>
        I see the output shows up in Paraview as a ton of points. How
        may I proceed to make it a 'surface' which connects these
        points? (the data set is a wing).<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Feb 1, 2016 at 4:22 AM, Martin
          Genet <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:martin.genet@polytechnique.edu"
              target="_blank">martin.genet@polytechnique.edu</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi Eric,<br>
              <br>
              Paraview only displays cells, not points.<br>
              <br>
              There are at least two solutions:<br>
               - When you write the ugrid file, you can add vertices,
              which are cells containing a single point, using something
              like:<br>
              <blockquote type="cite">cell = vtk.vtkVertex()<br>
                cell_array = vtk.vtkCellArray()<br>
                for k_point in
                xrange(ugrid.GetPoints().GetNumberOfPoints()):<br>
                    cell.GetPointIds().SetId(0, k_point)<br>
                    cell_array.InsertNextCell(cell)<br>
                ugrid.SetCells(vtk.VTK_VERTEX, cell_array)<br>
                for k_array in
                xrange(ugrid.GetPointData().GetNumberOfArrays()):<br>
                   
                ugrid.GetCellData().AddArray(ugrid.GetPointData().GetArray(k_array))<br>
              </blockquote>
              - Otherwise, if you have only points in your ugrid, you
              can glyph them in paraview, using for instance a sphere
              with fixed small diameter.<br>
              <br>
              Martin
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 01/02/2016 05:07, Eric Robertson wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi all,
                      <div><br>
                      </div>
                      <div>I have a raw data set of X,Y,Z coordinates as
                        well as a set of scalars (lets call them A, B,
                        C) which are stored at the aforementioned
                        coordinates. I use vtkUnstructuredGrid to create
                        the domain, but when I go to open the .vtu file
                        in Paraview I see that there aren't any cells to
                        visualize. </div>
                      <div><br>
                      </div>
                      <div>My question is- how do I go about providing
                        'cells' which use these points as cell-centers?</div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Search the list archives at: <a moz-do-not-send="true" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>