[vtkusers] A point inside or outside a convex hull

David Doria daviddoria at gmail.com
Thu Jan 29 08:03:05 EST 2015


On Thu, Jan 29, 2015 at 3:35 AM, Francisco Lopez de la Franca <
franciscolopezdelafranca at gmail.com> wrote:

> Hello everybody.
> I create a convex hull with either vtkDelaunay3D or vtkHull classes from
> an input data set (a 3D volume).
>
> What would it be the best way to know if an arbitrary 3D point is inside
> or outside the convex hull?
>
> Thanks a lot in advance.
> Kind regards.
> /Francisco
>

Here are a few options:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject2
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellTreeLocator

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150129/3af8ead2/attachment.html>


More information about the vtkusers mailing list