iwfm.elem_poly_coords_wkt

iwfm.elem_poly_coords_wkt(elem_nodes, node_coords)[source]

Return a list ofelement coordinates in WKT form: [‘POLYGON ((X0 Y0, X1 Y1, X2 Y2, X3 Y3, X0 Y0)),’<,…>].

Parameters:
  • elem_nodes (list) – list of elements and associated nodes

  • node_coords (list) – list of nodes and associated X and Y coordinates

Returns:

polys – list of polygon coordinates

Return type:

list