Well the line of significance would be:
simple->getG3D()->DrawLine(thePoints[counter],thePoints[counter + 1],simple->getView()->GetCamera ()->GetFOVAngle(),simple->getG2D()->FindRGB(1,0,0));
This is straight after:
if(!g3d->BeginDraw (CSDRAW_2DGRAPHICS)) return;
The FOV is the only argument I'm not sure of. Should it be the same as the current camera?
Use GetFOV() instead of GetFOVAngle().
Also note that coordinates are in camera space.