<div dir="ltr">Looks fine to me except that you can yank the vertexglyph as it is not doing anything for you. The polydata can go directly into the mapper.  Maybe your points have a really large values and you are running into floating point issues. Look at the bounds on your points.  Could be something else but the basic code looks OK to me.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 9:11 AM, afnanahmad <span dir="ltr"><<a href="mailto:afnanahmad@live.com" target="_blank">afnanahmad@live.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is the code I'm using, not sure which step is wrong.<br>
<br>
vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::<wbr>New();<br>
vtkSmartPointer<vtkCellArray> cell = vtkCellArray::New();<br>
<br>
for (size_t i = 0; i < point_cloud->points.size(); i++)<br>
{<br>
<br>
        double point[3] = { point_cloud->points[i].x,<br>
                point_cloud->points[i].y,<br>
                point_cloud->points[i].z };<br>
<br>
        vtkIdType id = points->InsertNextPoint(point)<wbr>;<br>
<br>
        cell->InsertNextCell(1);<br>
        cell->InsertCellPoint(id);<br>
}<br>
<br>
vtkSmartPointer<vtkPolyData> polyData = vtkSmartPointer<vtkPolyData>::<wbr>New();<br>
polyData->SetPoints(points);<br>
polyData->SetVerts(cell);<br>
<br>
vtkSmartPointer<<wbr>vtkVertexGlyphFilter> glyphFilter =<br>
vtkSmartPointer<<wbr>vtkVertexGlyphFilter>::New();<br>
glyphFilter->SetInputData(<wbr>polyData);<br>
glyphFilter->Update();<br>
<br>
vtkSmartPointer<<wbr>vtkPolyDataMapper> mapper =<br>
vtkSmartPointer<<wbr>vtkPolyDataMapper>::New();<br>
mapper->SetInputConnection(<wbr>glyphFilter->GetOutputPort());<br>
<br>
vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::<wbr>New();<br>
actor->SetMapper(mapper);<br>
<br>
<br>
for some of the files this code is working fine.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-7-1-issue-with-vtkPoints-while-rendering-tp5742466p5742468.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-7-1-issue-with-<wbr>vtkPoints-while-rendering-<wbr>tp5742466p5742468.html</a><br>
Sent from the VTK - Dev mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div>
</div>