mymesh.rays.PointsInVoxel#

mymesh.rays.PointsInVoxel(pts, VoxelCoords, VoxelConn, inclusive=True)[source]#

Test to determine whether points are inside a voxel mesh

Parameters:
  • pts (array_like) – 3D coordinates of points, shape=(n,3)

  • VoxelCoords (array_like) – Node coordinates of the voxel mesh

  • VoxelConn (array_like) – Node connectivity of the hexahedral voxel mesh.

  • inclusive (bool, optional) – Specifies whether points exactly on the boundary should be included, by default True

Returns:

inside – List of bools specifying whether each point is inside the mesh.

Return type:

list