Thanks for your answer… but i don´t want a plain cylinder…
I mean a curved cylinder - which is build from a path of points… i think this is slighly more advanced. I have code for a plain cylinder already in my app but i don´t know how to realize the curved cylinder.
i recall the graphics gems series has something on the line… game prog gems too.
well, starting from a 3D path made of points, naively I would start by taking the first segment, finding the perpendicular plane, generating some 16/64 points along a circle, take the second segment, do the same and also connect the first series of points to the second… an so on.
if the path do not bend or twist too much, it gives good results… otherwise look for fiber bundles / hopft fibration applied to graphics.
Well, easiest would be to do a curve, e.g. Bezier or Catmul-Rom and then generate the Frenet frame at each segment and connect circles transformed by it.