We know that from a planar curve α:I→R2 we can define the generalized cylinder as S={(α(s),t):s∈I,t∈R}. This can also view as follows.
Consider a smooth function f:O⊂R2→R and a∈R a regular value. Then we know that C=f−1({a}) is a regular curve: the 1-dimensional case than a surface. With this function f, we define a new function F as F:O×R→R, F(x,y,z)=f(x,y),
which is differentiable. We prove that a is a regular value of F. Indeed, ∇F=(∂F∂x,∂F∂y,∂F∂z)=(∇f,0). Consequently, (x,y,z) is a critical point of F if and only if (x,y) is a critical point of f. In particular, if F(x,y,z)=a, then f(x,y)=a and (x,y) is not a critical point of f, and thus, (x,y,z) is not a critical point of F. This proves that a is a regular value of F.
As a consequence, S=F−1({a}) is a surface. We describe this surface: S={(x,y,z)∈O×R:f(x,y)=a}=C×R. This shows that S is the generalized cylinder over the planar curve C.
The next picture is a generalized cylinder based on the cardioid.