This page was generated from docs/source/examples/cylinder.ipynb.

Creating a cylinder#

[7]:
from polymesh.recipes import cylinder

n_angles = 30
n_radii = 15
min_radius = 10
max_radius = 25
n_z = 20
h = 50
angle = 1

shape = (min_radius, max_radius), angle, h
size = n_radii, n_angles, n_z


mesh = cylinder(shape, size, voxelize=False)

mesh.plot(notebook=True, jupyter_backend="static", theme="document")
../_images/examples_cylinder_1_0.png