#### 10.9.5 curve2Cylinder

• curve2Cylinder( <f(t)>, <tmin>, <tmax>, <3Dvector axis>, [, base] )
• Description: that macro returns in the form of facets, the cylinder based on the left curve parametrized by $f\left(t\right)=\left[x\left(t\right)+i*y\left(t\right),z\left(t\right)\right]$ or $f\left(t\right)=M\left(x\left(t\right),y\left(t\right),z\left(t\right)\right)$. The parameter <3Dvector axis> shows how the base has to be translated to finish the cylinder. The last parameter <base>, is a variable that will contain the point list of the edge (or edges) of the cylinder.

 \begin{texgraph}[name=curve2Cylinder,                     export=pgf]   Marges(0,0,0,0), size(7.5),   C:=curve2Cylinder([4*cos(t)+2*i*sin(t),-3],                     -pi,pi,[i,6]),   DrawFlatFacet(C,[color:=violet])   \end{texgraph}

Example with curve2Cylinder