[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [Insight-users] check is point inside a closed surface or not
From:       Cagatay Bilgin <bilgincc () gmail ! com>
Date:       2013-04-26 17:17:34
Message-ID: CAHoiV3ZSobmrMtMaK1HR2y4u6j--ziyMK741c2tQi_TjiS5tQA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@lbl.gov

On Thu, Apr 25, 2013 at 8:17 PM, shirani kannangara
<mangalika673@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
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div style="text-align:left">I remember using <span \
style="color:rgb(0,0,0);font-size:11px;line-height:1.2em;text-align:left">vtkImplicitPolyDataDistance \
</span>for a similar task</div><a \
href="http://www.cmake.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance">ht \
tp://www.cmake.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance</a><br> \
<div>but if all you care is IsInside rather than the signed distance, there might be \
a faster </div><div>way. Perhaps someone from the vtk mailing list could provide some \
help. </div><div><br></div><div>Cheers, </div><div> Cagatay</div><div \
class="gmail_extra"><br></div><div class="gmail_extra">-- <br><span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Cemal \
Cagatay Bilgin</span>, <span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">PhD</span><br \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"> <span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Life \
Sciences Division</span><br \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"><span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Lawrence \
Berkeley National Lab</span><br \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"> <span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">MS977, One \
Cyclotron Road</span><br \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"><span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Berkeley, \
CA 94720, USA</span><br \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif"> <span \
style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif">Email: <a \
href="mailto:ccbilgin@lbl.gov" \
target="_blank">ccbilgin@lbl.gov</a></span><br><br><div class="gmail_quote">On Thu, \
Apr 25, 2013 at 8:17 PM, shirani kannangara <span dir="ltr">&lt;<a \
href="mailto:mangalika673@gmail.com" \
target="_blank">mangalika673@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-le \
ft:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
dir="ltr"> <span style="font-family:arial,sans-serif;font-size:13px">Hi itk \
users</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">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 <b \
style="font-family:sans-serif;line-height:1.2em">VTK/Examples/Cxx/PolyData/PointInsideObject. \
</b><span style="font-family:sans-serif;line-height:1.2em">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.</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span \
style="font-family:sans-serif;line-height:1.2em">.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.</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span \
style="line-height:1.2em;font-family:sans-serif"><br></span></div><div \
style="font-family:arial,sans-serif;font-size:13px"><span \
style="line-height:1.2em;font-family:sans-serif">Many thanks</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span \
style="line-height:1.2em;font-family:sans-serif">Shirani</span></div><div \
style="font-family:arial,sans-serif;font-size:13px"><img></div> </div>
<br>_____________________________________<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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" \
target="_blank">http://www.kitware.com/products/protraining.php</a><br> <br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" \
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div><br></div></div>



_____________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic