<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Use <br>
<pre class="de1" style="font-family: monospace, monospace; padding: 0px; border: 0px none white; color: rgb(0, 0, 0); line-height: 1.2em; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 1em; margin: 0px; vertical-align: top; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background: none rgb(249, 249, 249);">vtkXMLPolyDataWriter
</pre>
<br>
to write your data:<br>
<br>
<pre class="de1" style="font-family: monospace, monospace; padding: 0px; border: 0px none white; color: rgb(0, 0, 0); line-height: 1.2em; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 1em; margin: 0px; vertical-align: top; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background: none rgb(249, 249, 249);"> vtkSmartPointer<span class="sy1" style="color: rgb(0, 0, 128);"><</span>vtkXMLPolyDataWriter<span class="sy1" style="color: rgb(0, 0, 128);">></span> writer <span class="sy1" style="color: rgb(0, 0, 128);">=</span>
vtkSmartPointer<span class="sy1" style="color: rgb(0, 0, 128);"><</span>vtkXMLPolyDataWriter<span class="sy1" style="color: rgb(0, 0, 128);">></span><span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="color: rgb(0, 119, 136);">New</span><span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>
writer<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>SetFileName<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="st0" style="color: rgb(255, 0, 0);">"test.vtp"</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>
<span class="co2" style="color: rgb(51, 153, 0);">#if VTK_MAJOR_VERSION <= 5</span>
writer<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>SetInput<span class="br0" style="color: rgb(0, 128, 0);">(</span>polydata<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>
<span class="co2" style="color: rgb(51, 153, 0);">#else</span>
writer<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>SetInputData<span class="br0" style="color: rgb(0, 128, 0);">(</span>polydata<span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>
<span class="co2" style="color: rgb(51, 153, 0);">#endif</span></pre>
<br>
<br>
<div class="moz-cite-prefix">Am 08.12.2015 um 10:06 schrieb
saravanakumar:<br>
</div>
<blockquote cite="mid:1449565561213-5735386.post@n5.nabble.com"
type="cite">
<pre wrap="">Hi,
I need to create .vtp files from the TIFF Image.
--
View this message in context: <a class="moz-txt-link-freetext" href="http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735386.html">http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735386.html</a>
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
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 VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</body>
</html>