<!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 Irene,<br>
<br>
I suppose you're talking about writing a vtk based program.<br>
In order to read a PolyData file you should begin whit a
vtkPolyDataReader object<br>
<br>
If you're working with C++ (i.e.) you should write something like<br>
<br>
<br>
<cite>#include <vtkPolyDataReader.h><br>
<br>
int main (){<br>
<br>
vtkPolyDataReader *p_reader = vtkPolyDataReader::New();<br>
p_reader->SetFileName("PATH_TO_YOUR_FILE/yourfile.vtk");<br>
p_reader->Update();<br>
<br>
/*SOMETHING ELSE*/<br>
<br>
p_reader->Delete();<br>
<br>
}<br>
</cite><br>
Now you can set your filter to redirect its output to a vtkPolyData
object or to any other appropriated "step".<br>
If you read class references here
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkPolyDataReader-members.html">http://www.vtk.org/doc/nightly/html/classvtkPolyDataReader-members.html</a>
you'll easily figure out how to do many interesting things, but of
course for any request I'll (better say "we'll", I'm sure) be glad to
help you.<br>
<br>
<br>
Have a good day,<br>
Arturo<br>
<br>
<br>
<br>
<br>
<br>
<br>
Irene Kostopoulou ha scritto:
<blockquote
cite="mid:45c0a1270902070801w5fbf5f13p8b29ac9e00c1d5de@mail.gmail.com"
type="cite">Hello all,<br>
<br>
I have a polygon data .vtk file, as a result of model making (marching
cubes) of 3d slicer joint apllied to a segmentation of blood vessels of
mra images. As I'm not familiar with the vtk program nor the vtk file
format, I need some suggestions.<br>
How can I open this vtk file and take the polygon points? I'm not
interested only in visualization of the vtk file, but I also need to
process the data in it, but unfortunately I don't even know how to open
it. I have the binary 5.2 version of vtk installed in my pc.<br>
<br>
<br>
Thanks and sorry for my newbie questions.<br>
<br>
I appreciate any help,<br>
Irene<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</body>
</html>