parametrize_polygon#

Modeler.parametrize_polygon(polygon, selection_polygon, offset_name='offsetx', origin=None)[source]#

Parametrize pieces of a polygon based on another polygon.

Parameters:
polygon

Name of the polygon.

selection_polygon

Polygon to use as a filter.

offset_namestr, optional

Name of the offset to create. The default is "offsetx".

originlist, optional

List of the X and Y origins, which impacts the vector computation and is needed to determine expansion direction. The default is None, in which case the vector is computed from the polygon’s center.

Returns:
bool

True when successful, False when failed.