<div dir="ltr">I tried the example form vtk wiki<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitModeller">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitModeller</a><br><br>And saved the image using vtkXMLImageDataWriter from modeler->GetOutput(). I viewed it in paraview, the scalar values are too weired, they range from 0 to 1e+38.<br>
<br>Any hints?<br><br>Thanks<br><br>Jothy<br><br><div class="gmail_quote">On Wed, Nov 30, 2011 at 1:52 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Jothy,<br>
<br>
I think the vtkImplicitModeller is what you want:<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkImplicitModeller.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImplicitModeller.html</a><br>
<br>
Cory<br>
<div><div class="h5"><br>
On Wed, Nov 30, 2011 at 5:29 AM, Jothybasu Selvaraj <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I have a vtkPolyData/mesh by applying vtkMarchingCubes to a vtkImageData.<br>
> Now I want to find the distance between the edge of the mesh and each voxel<br>
> in the vtkImageData that lies outside the mesh.<br>
><br>
> Does anyone have any idea on how to do this?<br>
><br>
> Thanks<br>
><br>
><br>
> --<br>
> Jothy<br>
><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>
> 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>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Cory Quammen<br>
Research Associate<br>
Department of Computer Science<br>
The University of North Carolina at Chapel Hill<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>