Implements a function to generate a plane primitive from two vertices, a direction vector, and a size, returning an array of two triangles.