You'll have to do it like this: (clarification of beakers method)
TFormPoint VertexX(surf,i),VertexY(surf,i),VertexZ(surf,i),entity,0 PositionEntity Pivot,TformedX(),TformedY(),TformedZ() If EntityInView(Pivot,Camera) Then ;Yadda Yadda