create_facets#

sectionproperties.pre.geometry.create_facets(points_list: list[tuple[float, float]], connect_back: bool = False, offset: int = 0) list[tuple[int, int]][source]#

Create a list of facets.

Returns a list of integer tuples representing the “facets” connecting the list of coordinates in points_list. It is assumed that points_list coordinates are already in their order of connectivity.

Parameters:
  • points_list (list[tuple[float, float]]) – List of coordinates

  • connect_back (bool) – If True, then the last facet pair will be [len(points_list), offset]

  • offset (int) – An integer representing the value that the facets should begin incrementing from.

Returns:

List of facets

Return type:

list[tuple[int, int]]