open3d.geometry.create_mesh_sphere

open3d.geometry.create_mesh_sphere(radius=1.0, resolution=20)

Factory function to create a sphere mesh centered at (0, 0, 0).

Parameters
  • radius (float, optional, default=1.0) – The radius of the sphere.

  • resolution (int, optional, default=20) – The resolution of the sphere. The longitues will be split into resolution segments (i.e. there are resolution + 1 latitude lines including the north and south pole). The latitudes will be split into `2 * resolution segments (i.e. there are 2 * resolution longitude lines.)

Returns

open3d.geometry.TriangleMesh