# distance between two points on the surface

Do you know how to calculate the shortest distance (Geodesic distance) of two points on the surface??? Thanks a lot!

Nobody knows ???

I don't know for sure, but I would consider something like this:
- Create a Geom_Line using your two points
- Turn that into a Geom_TrimmedCurve
- Project that curve on the surface with GeomProjLib::Project
- Get the arc length of the projected curve with GProp_CGProps (see GProp_GProps for help

Rob

Thanks for your suggestion. Actually, the projection direction is the key point. Whatever, thanks a lot.