mymesh.rays.SurfSurfIntersection#

mymesh.rays.SurfSurfIntersection(NodeCoords1, SurfConn1, NodeCoords2, SurfConn2, eps=1e-14, return_pts=False)[source]#

Identify intersections between two surface meshes.

Parameters:
  • NodeCoords1 (array_like) – Node coordinates of the first mesh

  • SurfConn1 (list, array_like) – Node connectivity of the first mesh

  • NodeCoords2 (array_like) – Node coordinates of the second mesh

  • SurfConn2 (list, array_like) – Node connectivity of the second mesh

  • eps (float, optional) – Small tolerance parameter, by default 1e-14, by default 1e-14

  • return_pts (bool, optional) – If true, will return intersection points, by default False.

Returns:

  • Surf1Intersections (list) – Element ids from the first mesh that intersect with the second

  • Surf2Intersections (list) – Element ids from the second mesh that intersect with the first

  • IntersectionPoints (list, optional) – Coordinates of intersections (returned if return_pts=True)