[vtkusers] usage of vtkSelectEnclosedPoints
Sam Raby
rabysam28 at gmail.com
Thu Sep 15 12:10:20 EDT 2016
Hello
I am using vtkSelectEnclosedPoints to identify if a "point" is inside a
vtkPloyData or outside. The result always says the point is outside, no
matter where the point is. My guess is it is because the vtkPolyData is not
closed, although the vtkPloyData appears to be perfectly closed.
I was wondering what filter I can use as a reprocessing stage to close my
vtkPolyData before passing it to vtkSelectEnclosedPoints?
vtkSmartPointer<vtkSelectEnclosedPoints> selectEnclosedPoints =
vtkSmartPointer<vtkSelectEnclosedPoints>::New();
selectEnclosedPoints->SetInputData(myPoints);
selectEnclosedPoints->SetSurfaceData(myPolydata);
selectEnclosedPoints->Update();
std::cout << "Point " << i << ": " << selectEnclosedPoints->IsInside(i) <<
std::endl;
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160915/037516d8/attachment.html>
More information about the vtkusers
mailing list