draw_radius#

sectionproperties.pre.library.utils.draw_radius(pt: tuple[float, float], r: float, theta: float, n: int, ccw: bool = True, phi: float = 1.5707963267948966) list[tuple[float, float]][source]#

Generates a list of points describing an arc.

Generates an arc centered at point pt, with radius r, starting at angle theta, with n points. If r=0, adds pt only. phi describes the angle of rotation e.g. pi / 2 is a quarter circle.

Parameters:
  • pt (tuple[float, float]) – Centre of radius (x, y)

  • r (float) – Radius

  • theta (float) – Initial angle in radians

  • n (int) – Number of points

  • ccw (bool) – If True, counter-clockwise rotation

  • phi (float) – Angle describing radius extent in radians

Returns:

List of points

Return type:

list[tuple[float, float]]