<div dir="ltr">Hi Bill,<div>Thanks for your quick reply. I gave a try on your suggestion, but could not get the thing I wanted. May be the following description (what I intend to do) will be helpful. </div><div><br></div><div>Here is the code snippets:</div><div><br></div><div><div>   //VTk writer</div><div>   vtkSmartPointer<vtkXMLPolyDataWriter> w = vtkSmartPointer<vtkXMLPolyDataWriter>::New();</div><div><br></div><div>   // VTK points</div><div>   vtkSmartPointer<vtkPoints> polyPoints = vtkSmartPointer<vtkPoints>::New();</div><div><br></div><div>   // Set the precision for the new points</div><div>   polyPoints->SetDataType( VTK_DOUBLE );</div><div><br></div><div>   // VTK PolyData</div><div>   vtkSmartPointer<vtkPolyData> polydata = vtkSmartPointer<vtkPolyData>::New();</div><div><br></div><div>   // Generate points for the polydata</div><div>     .....</div><div>   //</div><div><br></div><div>   polydata->SetPoints( newPoints );</div><div><br></div><div>  // Set the writer to write the polydata</div><div><br></div><div>  #if VTK_MAJOR_VERSION <= 5</div><div>         w->SetInput( polydata );</div><div>   #else</div><div>         w->SetInputData( polydata );</div><div>  #endif</div><div><br></div><div>// set filename</div><div>w->SetFileName("myFile.vtp");</div><div><br></div><div>// Write the poly data into file</div><div>   w->Write();</div><div><br></div><div>------------------------------------------------------------------</div><div>At this stage : myFile.vtp file contains :</div><div><br></div><div><Points>...</ Points> </div><div><CellData>...</ CellData> </div><div><Verts>...</ Verts> </div><div><Lines>...</ Lines> </div><div><Strips>...</ Strips> </div><div><Polys>...</ Polys> </div><div><br></div><div><br></div><div>I just need to print the part under the tag <Points>...</ Points>  and nothing else. </div></div><div><br></div><div>Any suggestions ?</div><div><br></div><div>Thank in advance,</div><div>Chiranjib</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 12, 2015 at 12:13 AM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You might be able to create another vtkPolyData and just set its<br>
PointData to the PointData of your original polydata.<br>
<div><div class="h5"><br>
On Wed, Mar 11, 2015 at 12:36 PM, Chiranjib Sur <<a href="mailto:sur.chiranjib@gmail.com">sur.chiranjib@gmail.com</a>> wrote:<br>
> Hi All,<br>
> I am using the class vtkXMLPolyDataWriter to write polydata in my vtp file.<br>
> Is there any way, that I can write only the PointData and  ignore the rest<br>
><br>
> <CellData>...</ CellData><br>
> <Points>...</ Points><br>
> <Verts>...</ Verts><br>
> <Lines>...</ Lines><br>
> <Strips>...</ Strips><br>
> <Polys>...</ Polys><br>
><br>
> If I want to do this, do I have to write my own writer class ?<br>
><br>
> Thanks,<br>
> Chiranjib<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div>