cylinder

m3sh.vis.cylinder(a, b, radius, opacity=1.0, resolution=64, cap=False, color=(0.7529, 0.7529, 0.7529))[source]

Cylinder shape.

Display cylinder with axis starting at point a and ending at point b

Parameters:
  • a (array_like, shape (3, )) – First point on cylinder axis.

  • b (array_like, shape (3, )) – Last point on cylinder axis.

  • radius (float) – Cylinder radius.

  • opacity (float, optional) – Cylinder opacity.

  • resolution (int, optional) – Number of sides.

  • cap (bool, optional) – If True the cylinder is closed.

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

Returns:

The corresponding polygonal shape representation.

Return type:

PolyData