tetgenpy.plc.PLC.add_facets#

PLC.add_facets(polygons, facet_id=None, facet_constraints=None, coordinates=None)[source]#

Adds facets with one polygon per facet.

Parameters:
  • polygons (array-like) – list of polygons by coordinate or indices referring to points list. coordinates are expected to have [[[x1_1, y1_2, z1_3], …], …] and indices [[p1_1, p1_2, …], … ].

  • facet_id (int) – value used to set facetmarker. Default is -123454321. can be also interpreted as boundary id as all the output faces on this facet will have this id.

  • facet_constraints (float or list) – max area for given facets. If it is list, len(facet_constraints) == len(polygons) should hold.

  • coordinates (bool) – Default is None. Can specify if given polygons are coordinate or index based. If None, will check the first entry and determine.

Return type:

None