[vtkusers] Get distance from closest edge of vtkPolyData

Cory Quammen cquammen at cs.unc.edu
Wed Nov 30 11:14:39 EST 2011


Jothy,

I'm replying to the list for the benefit of others with this question
in the future.

Cory

On Wed, Nov 30, 2011 at 10:59 AM, Jothybasu Selvaraj
<jothybasu at gmail.com> wrote:
> With this, it works fine.
>
> implicitModeller->CappingOn();
> implicitModeller->SetCapValue(100.0);
>
> Thanks
>
> Jothy
>
> On Wed, Nov 30, 2011 at 2:49 PM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>>
>> Did you try to create an isosurface at distance 0? Does that look
>> reasonable?
>>
>> Cory
>>
>> On Wed, Nov 30, 2011 at 9:46 AM, Jothybasu Selvaraj <jothybasu at gmail.com>
>> wrote:
>> > 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
>> >
>> >
>>
>>
>>
>> --
>> Cory Quammen
>> Research Associate
>> Department of Computer Science
>> The University of North Carolina at Chapel Hill
>
>
>
> --
> Jothy
>
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill



More information about the vtkusers mailing list