[vtkusers] How to monitor actor positions?

Totte Karlsson totte at dunescientific.com
Tue Jan 6 17:29:20 EST 2015


On 1/5/2015 5:52 PM, Cory Quammen wrote:
> Hi Totte,
>
> You can use the vtkDistancePolyDataFilter to compute a signed distance
> between vtkPolyData:
>
> http://www.vtk.org/doc/nightly/html/classvtkDistancePolyDataFilter.html
>
> After the filter is updated, you can check whether any of the elements
> of the point data array named "Distance" are less than or equal to
> zero. If so, you have a collision.
>
> Hope that helps,
> Cory
> www.dunescientific.com
> .........................
Thanks for the pointer Cory!
I'll check into if it can help me.
tk



More information about the vtkusers mailing list