[vtkusers] Avoid actors overlapping
alethea
alethea at anatomage.com
Wed Jan 15 13:13:07 EST 2014
Checking for overlapping of arbitrary meshes is a hard problem. Two things to
maybe look into are:
http://www.vtk.org/doc/nightly/html/classvtkSelectEnclosedPoints.html which
can check for points inside a closed surface, and
http://www.vtk.org/doc/nightly/html/classvtkBooleanOperationPolyDataFilter.html
where if the Intersection operation returned a mesh, it would mean that
they're overlapping.
Note, that since both of these algorithms work on the data itself, if you
are moving the objects by setting the actor transformation, you will need to
manually apply that transform directly to the point data that you pass into
your algorithms, or they won't be aware of the transforms on your objects.
agatte wrote
> Hi,
>
> I move two actors in one renderer.
> Is there any filter to avoid overlap actors ?
>
> I would appreciate for any advice or info.
>
>
>
>
> agatte
--
View this message in context: http://vtk.1045678.n5.nabble.com/Avoid-actors-overlapping-tp5725394p5725420.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list