Hi Ali,<br><br>1. You should be more precise about what you want exactly. There are a lot of different ways for interpreting this question:<br>      - Do you want the bounding box of your volume? -&gt; vtkOutlineFilter<br>
      - Do you want a physical grid representing the volume?<br>      - Do you want to extract an iso-surface from your volume? -&gt; vtkContourFilter, vtkMarchingCube,...<br>      - vtkThreshold could be of help, but outputs an unstructured grid, not a polydata.<br>
<br>2. Sorry for that, I cannot debug .NET code, since I don&#39;t know the concept of &quot;managed&quot; objects. However, I wonder if gcnew does the same work as ::New() from VTK, regarding the reference count and garbage collector. VTK guru&#39;s wanted!<br>
<br>HTH<br>Jerome<br><br><div class="gmail_quote">2009/10/19 Ali Habib <span dir="ltr">&lt;<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div>Dear All ,</div>
<div><br></div>
<div>1. How to convert vtkvolume and vtkimagedata to vtkpolydata </div>
<div> </div>
<div>2.while running the following  code , a warning appear :</div>
<div>
<div>Generic Warning: In m:\dev\cur\vtkdotnet\branch\50\Common\vtkMath.cxx, line 394</div>
<div>Unable to factor linear system:</div>
<div> </div>
<div>vtkSphereSource ^sphere = gcnew vtkSphereSource();<br>     sphere-&gt;SetRadius(1.0);<br>     sphere-&gt;SetThetaResolution(18);<br>     sphere-&gt;SetPhiResolution(18);</div>
<div>   vtkStripper ^v = gcnew vtkStripper();<br>   v-&gt;SetInputConnection(sphere-&gt;GetOutputPort());<br>   v-&gt;Update();</div>
<div>   vtkDelaunay3D ^v3 = gcnew vtkDelaunay3D();<br>   v3-&gt;SetInputConnection(v-&gt;GetOutputPort());<br>   v3-&gt;Update()</div>
<div><br>   vtkDataSetMapper ^mapper = gcnew vtkDataSetMapper();<br>   mapper-&gt;SetInputConnection(v3-&gt;GetOutputPort());<br>   vtkActor ^triangulation = gcnew vtkActor();<br>   triangulation-&gt;SetMapper(mapper);<br>

   triangulation-&gt;GetProperty()-&gt;SetRepresentationToWireframe();</div>
<div>   // Create the standard rendering stuff.<br>   vtkRenderer ^ren1 = gcnew vtkRenderer();<br>   vtkRenderWindow ^renWin = gcnew vtkRenderWindow();<br>   renWin-&gt;AddRenderer(ren1);<br>   vtkRenderWindowInteractor ^iren = gcnew vtkRenderWindowInteractor();<br>

   iren-&gt;SetRenderWindow(renWin);</div>
<div>   // Add the actors to the renderer, set the background and size<br>   //<br>   ren1-&gt;AddActor(triangulation);<br>   ren1-&gt;SetBackground(1, 1, 1);<br>   renWin-&gt;SetSize(300, 300);<br>   renWin-&gt;Render();</div>


<div><br>   renWin-&gt;Render();</div>
<div>   iren-&gt;Initialize();</div>
<div><br>   iren-&gt;Start();</div>
<div><br></div>
<div>any advice please</div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>