[vtkusers] Check if vtkPolyData objects intersect

Cory Quammen cory.quammen at kitware.com
Fri Jun 9 18:08:47 EDT 2017


vtkIntersectionPolyDataFilter should be good when both vtkPolyData
contain only triangles. If there is an error message, could you post
it here? We should address that. It should be possible to get an empty
vtkPolyData result from vtkIntersectionPolyDataFilter that you could
check.

More general vtkPolyData-vtkPolyData intersection (poly data with line
segments, quads, etc.) is not available in a convenient VTK class that
I know of.

On Fri, Jun 9, 2017 at 5:57 PM, Maximilian Weiherer
<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!
>
>
>
>
>
>
> Virenfrei. www.avast.com
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list