mesh

m3sh.vis.mesh(mesh, color=(1.0, 0.9804, 0.9804))[source]

Mesh visualization.

Visualization of a polygonal mesh represented as a Mesh instance or a 2-tuple holding an array_like vertex coordinate representation and a list of face definitions. The visual appearance of a mesh can be modified by using the methods and attributes of the returned object.

Parameters:
  • mesh (Mesh or tuple) – Polygonal mesh representation.

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

Returns:

Polygonal mesh instance.

Return type:

PolyMesh