<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Federico,<br>
    <br>
    You have to create some vertex cells. So use a polydata or
    unstructured grid instead of pointset. Polydata is the easier you'd
    make a cell array like this: 1 0 1 1 1 2 ... 1 n where n is the
    number of points, and add this with SetVerts method. You won't have
    to use the Delaunay filter to see this.<br>
    <br>
    Burlen<br>
    <br>
    On 08/18/2011 09:54 AM, Federico Milano wrote:
    <blockquote
cite="mid:CAL28Ng+Ntk8JrBMcq=yVde6ZY4BcWuW+97KY595MrinZmVp5xQ@mail.gmail.com"
      type="cite">Hi. I want to show a colored point cloud (vtkPointSet)
      returning from a custom filter. In my custom filter, I prepare the
      pointCloud in this way:<br>
      <br>
      vtkSmartPointer&lt;vtkPointSet&gt; pointCloud =
      vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>
      &nbsp;&nbsp; pointCloud-&gt;SetPoints(points);<br>
      &nbsp;&nbsp; pointCloud-&gt;GetPointData()-&gt;SetScalars(distances);<br>
      &nbsp;&nbsp; pointCloud-&gt;Update();<br>
      <br>
      output-&gt;DeepCopy(pointCloud);<br>
      <br>
      points is a vtkPoints and distances is a vtkDoubleArray.<br>
      <br>
      The problem is that nothing is showing. If instead of using a
      vtkPointSet I use a vtkPolyData and filter it with a
      vtkDelaunay2D, it shows some points, but other points are left out
      (Do you know why is this happening?). If I use a vtkDelaunay3D,
      again, I see nothing.<br>
      <br>
      Do you know why is this happening? What do you recommend to build
      point clouds? <br>
      <br>
      I would really appreciate any suggestion.<br>
      <br>
      Thanks in advance,<br>
      <br>
      Federico<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>