sphere

m3sh.vis.sphere(center, radius, opacity=1.0, resolution=24, color=(1.0, 0.9804, 0.9804))[source]

Sphere shape.

Covenience function that displays a sphere with given center and radius.

Parameters:
  • center (array_like, shape (3, )) – Sphere center.

  • radius (float) – Sphere radius.

  • opacity (float, optional) – Opacity value.

  • resolution (int, optional) – Angle discretization.

  • color (array_like, shape (3, ), optional) – RGB color triplet.

Returns:

The corresponding polygonal shape representation.

Return type:

PolyData