fastpli.model.sandbox.seeds.triangular_circle

triangular_circle(radius, spacing, center=(0, 0), radii=0)[source]

Generated 2d triangular grid inside a circle.

Parameters
  • radius (float) – radius of circle

  • spacing (float) – distance between seed points

  • center ((2,)-array_like) – center of circle

  • radii (float or (n,)-array_like, optional) – seed points will be iterpreted as cricles with a global or individual radii

Returns

res – seed points

Return type

(nx2)-array