The number of indices = number of faces * 3, so
vertices[faceIndex * 3] = p1
vertices[faceIndex * 3 + 1] = p2
vertices[faceIndex * 3 + 2] = p3

you dont need to worry about FVF structure because position data is always (well, almost) first in all vertex structures.