3D tetrahedral mesh

Hi, I would like to know how to get 3D bulk tetrahedral mesh instead just on surface.

from ngsolve import *
from netgen.csg import *
from ngsolve.webgui import Draw
geo = CSGeometry()
cyl = Cylinder(Pnt(0,0,0), Pnt(6,0,0), 0.5)
right = Plane( Pnt(6,0,0), Vec(1,0,0))
left = Plane(Pnt(0,0,0), Vec(-1,0,0))
finitecyl = cyl * left * right
geo.Add(finitecyl)
mesh = Mesh(geo.GenerateMesh(maxh=0.5))
Draw(mesh)

The above codes just produce the surface of cylinder & the mesh on the surface.
How to get the interior volume 3D geometry & 3D tetrahedral mesh?
I couldn’t find ways in documentation. can you help me? Thanks.

I added

print ("volels: ", mesh.GetNE(VOL))
print ("bndels: ", mesh.GetNE(BND))

to your code, and got

volels:  1104
bndels:  772

so there are vol elements.

Joachim

I see. Thank you very much.