[vtkusers] Get distance from closest edge of vtkPolyData

Jothybasu Selvaraj jothybasu at gmail.com
Wed Nov 30 09:46:02 EST 2011


I tried the example form vtk wiki

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitModeller

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.

Any hints?

Thanks

Jothy

On Wed, Nov 30, 2011 at 1:52 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:

> Jothy,
>
> I think the vtkImplicitModeller is what you want:
>
> http://www.vtk.org/doc/nightly/html/classvtkImplicitModeller.html
>
> Cory
>
> On Wed, Nov 30, 2011 at 5:29 AM, Jothybasu Selvaraj <jothybasu at gmail.com>
> wrote:
> > Hi all,
> >
> > I have a vtkPolyData/mesh by applying vtkMarchingCubes to a vtkImageData.
> > Now I want to find the distance between the edge of the mesh and each
> voxel
> > in the vtkImageData that lies outside the mesh.
> >
> > Does anyone have any idea on how to do this?
> >
> > Thanks
> >
> >
> > --
> > Jothy
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> The University of North Carolina at Chapel Hill
>



-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111130/956d551b/attachment.htm>


More information about the vtkusers mailing list