CLIPPOINTS3D Clip a set of points by a box or other 3d shapes.

   CLIP = clipPoints3d(POINTS, BOX);
   Returns the set of points which are located inside of the box BOX.

   [CLIP, IND] = clipPoints3d(POINTS, BOX);
   Also returns the indices of clipped points.
   
   ... = clipPoints3d(..., 'shape', 'sphere') Specify the shape.
   Default is 'box'. But it is also possible to use 'sphere' or 'plane'.
   
   ... = clipPoints3d(..., 'inside', false) returns the set of  
   points outside the shape instead of inside.

   See also
   points3d, boxes3d, spheres

Package: matgeom