triangulatePolygonFromPaths

pyslm.support.triangulatePolygonFromPaths(exterior, interiors, triangle_args=None, **kwargs)

Given a list of exterior and interiors triangulation using a python interface to triangle.c

Parameters:
  • exterior (ndarray) – Exterior boundaries of polygon

  • interiors (List[ndarray]) – Interior boundaries of polygon

  • triangle_args (Optional[str]) – Passed to triangle.triangulate i.e: ‘p’, ‘pq30’

  • kwargs

Returns:

Returns a tuple of vertices and faces