[vtkusers] how to convert vtkPolyData to vtkPolygon?
    David Doria 
    daviddoria at gmail.com
       
    Sun Apr  8 19:48:41 EDT 2012
    
    
  
On Sat, Mar 31, 2012 at 10:40 PM, qwcbeyond <340181048 at qq.com> wrote:
> because i want to use vtkPolygon::PointInPolygon   method to check if a point
> in the close polygon.
A vtkPolyData can (and almost always does) contain many cells, some of
which may be of type vtkPolygon. Do you have a vtkPolyData with a
single vtkPolygon cell that you want to use PointInPolygon on? Or do
you have other types of cells (vtkTriangle perhaps)? Or do you have a
vtkPolyData with many cells (the typical case)?
David
    
    
More information about the vtkusers
mailing list