Procedural Mesh Body Generation

Hi, I would like to know how I can generate a body having some points with rotations that work as vertebras, as condition is that all points that serve as vertebra are x equal to 0, plus all rotations are only on the X axis. Thanks for your Time