Creating cylinders on-the-fly...?

BlitzMax Forums/MiniB3D Module/Creating cylinders on-the-fly...?

The r0nin(Posted 2008) [#1]
I am prototyping a game and I have run into an issue (based on my inadequate understanding of miniB3D and how it works). Here's what I am trying to do:

I am creating a "path" that the characters will follow in a turn-based game. The path is composed of alpha'ed cylinders (2 hexagons connected to make a "cylindrical" poly) and is laid out section by section as the player inputs the desired movement. The sections are of equal length and can be straight or curve 15, 30, or 45 degrees.

I originally tried to model the sections in a modelling program, then fit them together as the player selects a path, but it would be much easier to simply create each section procedurally. If I have a hexagon of vertexes to begin with (and at each "curve" on the path), how would I go about creating faces between these hexagons on-the-fly in code? I don't have a clue where to start...