Convert spline to mesh help required.

Blitz3D Forums/Blitz3D Programming/Convert spline to mesh help required.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you just want a flat track it's very simple:

Pseudo codeish thingie:
Create an empty mesh
For every anchor point
  Position a dummy pivot and align it to the anchor point
  TFormPoint -1,0,0,dummy pivot,0
  Add a vertex at TformedX,Y,Z
  TFormPoint 1,0,0,dummy pivot,0
  Add a vertex at TformedX,Y,Z
  If anchor point>first
    add triangles between previous anchor point vertices
       and this anchor points vertices
  else if anchor point = last
    add triangles between the first anchor point vertices
       and this anchor points vertices  
  end if 
Next anchor point
That's it :)