create_points_and_facets#

sectionproperties.pre.geometry.create_points_and_facets(shape: Polygon, tol: int = 12) tuple[list[tuple[float, float]], list[tuple[int, int]]][source]#

Create the list of points and facets given a shapely Polygon.

Parameters:
  • shape (Polygon) – Polygon to create points and facets from

  • tol (int) – Number of decimal places to round the geometry vertices to

Returns:

List of points (x, y) and list of facets (f1, f2)

Return type:

tuple[list[tuple[float, float]], list[tuple[int, int]]]