Get Project Point on Mesh Element(non planar) - Microstation V8i Using Mdl's

Hi Guys,

Need to find out the project point on mesh element.

using the below function i am getting wrong output.

mdlProject_perpendicular(&ProjectPt,NULL,NULL,MeshElmDescr,MASTERFILE,Pointtoproject,NULL,0.00);

How to get project point on mesh element ?