mymesh.rays.PointInBox#
- mymesh.rays.PointInBox(pt, xlim, ylim, zlim, inclusive=True)[source]#
Test whether a point is inside a box
- Parameters:
pt (array_like) – 3D coordinates of a point, shape=(3,)
xlim (array_like) – Lower and upper x limits (e.g. [xmin, xmax])
ylim (array_like) – Lower and upper y limits (e.g. [ymin, ymax])
zlim (array_like) – Lower and upper z limits (e.g. [zmin, zmax])
- Returns:
inside – True if the point is in the box.
- Return type:
bool