[Insight-users] check is point inside a closed surface or not

Cagatay Bilgin bilgincc at gmail.com
Fri Apr 26 13:17:34 EDT 2013


I remember using vtkImplicitPolyDataDistance for a similar task
http://www.cmake.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance
but if all you care is IsInside rather than the signed distance, there
might be a faster
way. Perhaps someone from the vtk mailing list could provide some help.

Cheers,
Cagatay

-- 
Cemal Cagatay Bilgin, PhD
Life Sciences Division
Lawrence Berkeley National Lab
MS977, One Cyclotron Road
Berkeley, CA 94720, USA
Email: ccbilgin at lbl.gov

On Thu, Apr 25, 2013 at 8:17 PM, shirani kannangara
<mangalika673 at gmail.com>wrote:

> Hi itk users
>
> I am attempting  to check whether  a point is inside a closed surface(poly
> dat mesh) or not. For instance I created a sphere  and used the codes given
> under vtk examples *VTK/Examples/Cxx/PolyData/PointInsideObject. *I have
> to feed data as an array as my original program (based on vhp abdomen data
> set) needs to feed a  large range of data.( eg. x= 675 , y= 401,  z=450 ).
> The program was built with zero errors.But it does not check inside
> correctly.(is inside=1,outside=0).I spent a long time to make it correct
> but failed.Can itk do this.
> .Can any body help me to get it corrected or propose a suitable way to do
> this task.My codes are attached herewith  for you reference.
>
> Many thanks
> Shirani
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130426/81930c51/attachment.htm>


More information about the Insight-users mailing list