Part.find_nodes_in_polygon

Part.find_nodes_in_polygon(polygon, tol=1.1)[source]

Find the nodes of the part that are contained within a planar polygon.

Parameters:
polygoncompas.geometry.Polygon

The polygon for the search.

tolfloat, optional

Tolerance for the search, by default 1.1. (10% larger than the polygon)

Returns:
List[Node]

List of nodes within the polygon.