estimate_angles#

random_shapes.estimate_angles(points: list[Point] | ndarray, edgy: float) list[Node][source]#

Convert a list of points to a list of nodes by calculating angles between them.

Parameters:
  • points (list[Point]) – A list of points.

  • edgy (float, optional) – A number between 0 and 1 to steer the weiredness of angles.

Returns:

A list of nodes, aranged in counter-clockwise order on a closed loop.

Hence, the last node is equal to the first node.

Return type:

list[Node]