[vtkusers] implicitmodeller - negative distance inside object

Arturo Caissut arturo_caissut at tiscali.it
Thu Mar 5 17:19:06 EST 2009


Hi,
I had a similar need some time ago during a project developed with a 
teacher of mine, and we created a "custom" Implicit Modeller class. 
Maybe it could be a good starting point for you: the main (only?) 
difference with vtkImplicitModeller is that into the class a "IN/OUT" 
check is performed, so that internal points are considered to have 
positive distance while external points have a negative one.
It was originally intended as a quick "filling" filter for a 3D surface 
polydata, setting a high enough distance value, it generates a full volume.
Hope it'll help you.

Regards,
Arturo



Rashindra Manniesing ha scritto:
>
>  
>
> I am new to VTK so please forgive if the following question has a 
> trivial answer.
>
>  
>
> I am using ImplicitModeller to get from a PolyData object to a 
> distance map, and I was wondering whether it is possible to specify an 
> inside and outside of the polydata object, such that the distances 
> inside has different sign than the distances outside ?
>
>  
>
> Best regards,
>
> Rashindra Manniesing
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkMyImplicitModeller.cxx
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090305/8d413123/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkMyImplicitModeller.h
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090305/8d413123/attachment.txt>


More information about the vtkusers mailing list