[vtkusers] Check if vtkPolyData objects intersect

Andras Lasso lasso at queensu.ca
Thu Jun 22 09:11:36 EDT 2017


We use this collision detection filter. It works well for us.

https://github.com/glawlor/vtkbioeng/blob/master/vtkCollisionDetectionFilter.cxx

Andras

From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Chiranjib Sur
Sent: Thursday, June 22, 2017 6:00 AM
To: Maximilian Weiherer <weiherer.maximilian at gmx.de>
Cc: VTK Users <vtkusers at vtk.org>
Subject: Re: [vtkusers] Check if vtkPolyData objects intersect

I don't think there is something like this available as a solution. However, this example might help you
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK%2FExamples%2FCxx%2FPolyData%2FPointInsideObject&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=73ql4VoSrXqQgZYihHDf8bQW8uKtVFswb2wzRf6drNo%3D&reserved=0>

If you know the vtk points from your polydata, you will be able to find out if they are inside or outside the region.

Hope that helps.

Chiranjib

On Fri, Jun 9, 2017 at 11:57 PM, Maximilian Weiherer <weiherer.maximilian at gmx.de<mailto:weiherer.maximilian at gmx.de>> wrote:
Hi all,

how to check if two vtkPolyData objects intersect? I tried vtkIntersectionPolyDataFilter but this gives me an error if no intersection is found. What I need is just a boolean value whether or not two meshes intersect.

Any suggestions would be appreciated. Thanks!



[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=oLRCN7jMNzQyo0Rll0Xu1WUeGd1pR1Ohzwx61UArCt4%3D&reserved=0>

Virenfrei. www.avast.com<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=oLRCN7jMNzQyo0Rll0Xu1WUeGd1pR1Ohzwx61UArCt4%3D&reserved=0>


_______________________________________________
Powered by www.kitware.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=S7p51pk3%2FDoPM8G8DjAcuhOsW4l9DuLCajR%2FR7RHpqo%3D&reserved=0>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=zFEhg1tP4vdQL31eH6eOq1naAqK3FfRCJuE3IGwwW5U%3D&reserved=0>

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=hhhPgZZGNcQzEv5erYRVNdoc1JvbLmriHQ3BZvziv0Q%3D&reserved=0>

Search the list archives at: http://markmail.org/search/?q=vtkusers<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=IMRDnWLGKLAnXT2oNhAOZV5vumPKbWLteuck60MkhY8%3D&reserved=0>

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C076dc7b58ab54dff20e608d4b9557e48%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636337224219351060&sdata=KaOCbsdVzTWpIm1VF82HpUDleSUGhvOHnMjKSN3dC7I%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170622/6cc634aa/attachment.html>


More information about the vtkusers mailing list