Hi everyone, <br><br>I am trying to do something very basic: I have a vtkBoxWidget in a scene, and I am trying to check if a point x,y,z lies inside or outside the box. From what I understand a box is a convex space bounded by 6 planes, and the GetPlanes( ) function of vtkBoxWidget returns the convex space bounded by the 6 planes. 
<br><br>So if i do this: <br><br>double pos[3]; <br>myBoxWidget-&gt;GetPlanes(myVtkPlanes); <br>double c = myVtkPlanes-&gt;FunctionValue(pos); <br><br>I was expecting c to be either +ve or -ve depending on whether a point pos[3] is inside or outside the box, but that doesnt seem to be the case. Am i doing something wrong? 
<br><br clear="all"><br>Any help will be appreciated.<br><br>Thanks in advance, <br>-- <br><br>Rashed karim <br>PhD student<br>Imperial College London<br>