Size a Triangle in place.

Blitz3D Forums/Blitz3D Programming/Size a Triangle in place.

Hi All,

I have a bunch of unwelded triangles scattered across a 2D plane (i.e they all have three verts to themselves and differ in VertexX and VertexY positions, but all are aligned to a Z value of 0.

What I wanted to do was to increase their size without moving their orientation or center point.

I guess it would involve working out a 2D averaged normal of the two sides connected to a vertex and moving the vertex according to this vector.

Any ideas?