How to check if an octant is inside, partially inside, or outside the polydata?

How to check if an octant is inside, partially inside, or outside the polydata?

You can use vtkSelectEnclosedPoints if your polydata forms a closed surface.

can you share the code?
I am not getting it still now
my approach was to check all 8 vertexes of the octant and if all are inside the octant is inside otherwise partially outside or outside.
but not getting the correct output from it.