I modified the simple example to call this function. The caller should allocate a point3d* normals[5], and it should be deleted by the caller. I'll add a small program that use this function.