[vtkusers] How to compute intersection between surface polydata in vtk?
Jean-Dominique Barnichon
jeando.barnichon at free.fr
Sat Apr 1 09:13:35 EST 2006
Dear all,
I need to find the intersection between two surfaces, each one being
defined as a polydata (actually one surface is a vertical polyplane, and
the other one is a topographical surface).
Such intersection operation is already effective in other libraries such
as CGAL (http://www.cgal.org) and GTS (http://gts.sourceforge.net).
However, it is still not clear to me which approach i should follow to
perform such an operation with vtk.
From what i understood, one can either :
- use vtkOBBTree::IntersectWithOBBTree(...), but in this case the
related parameters (especially the int(*function)) are not obvious to
me. Would it be possible to have a bit more information on this method
and its usage?
- treat polydata as an implicit surface using the vtkImplicitPolydata
class (proposed by Dave Pont), which then allows to use vtkClipPolyData
class (though this class is not part of vtk, yet?).
Recently, there has been quite few threads related to very similar
topics, but i did not get whether involved people have eventually
succeeded or not in computing the intersection using one of the above
mentioned method.
Any help/advice is welcomed.
Thanks in advance
Jean-Do
More information about the vtkusers
mailing list