+ Handle(HYDROData_Object) anObject =
+ Handle(HYDROData_Object)::DownCast( GetFatherObject() );
+ if ( anObject.IsNull() )
+ return aResAltitude;
+
+ TopoDS_Shape anObjectShape3D = anObject->GetShape3D();
+ if ( anObjectShape3D.IsNull() )
+ return aResAltitude;
+
+ HYDROData_Make3dMesh aMesher3D( anObjectShape3D, Precision::Intersection() );
+
+ gp_Pnt aHighestPoint;
+ if ( aMesher3D.GetHighestOriginal( thePoint.X(), thePoint.Y(), aHighestPoint ) )
+ aResAltitude = aHighestPoint.Z();