From: Paul RASCLE Date: Wed, 5 Aug 2015 08:05:40 +0000 (+0200) Subject: traces bounding box X-Git-Tag: BR_quadtree_20150925~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb4a3fcbc15b382e6af6a82329b74418775b6c5e;p=modules%2Fhydro.git traces bounding box --- diff --git a/src/HYDROData/HYDROData_ChannelAltitude.cxx b/src/HYDROData/HYDROData_ChannelAltitude.cxx index 4031dc82..1a7b515f 100644 --- a/src/HYDROData/HYDROData_ChannelAltitude.cxx +++ b/src/HYDROData/HYDROData_ChannelAltitude.cxx @@ -96,6 +96,10 @@ double HYDROData_ChannelAltitude::GetAltitudeForPoint( const gp_XY& thePoint ) c double middleZ = -9999; aGuideLine->GetMiddleZ(middleZ); // use the middle Z value of the 3d line to help the projection. gp_Pnt P1(thePoint.X(), thePoint.Y(), middleZ); + if (middleZ < -9000) + { + DEBTRACE("the middle Z value of the 3d line is incorrect"); + } TopoDS_Shape aPoint = BRepBuilderAPI_MakeVertex(P1).Shape(); if (aPoint.IsNull() || aShape.IsNull()) diff --git a/src/HYDROData/HYDROData_Polyline3D.cxx b/src/HYDROData/HYDROData_Polyline3D.cxx index 0ae2a44f..44ce9a2a 100644 --- a/src/HYDROData/HYDROData_Polyline3D.cxx +++ b/src/HYDROData/HYDROData_Polyline3D.cxx @@ -50,6 +50,9 @@ #include +#define _DEVDEBUG_ +#include "HYDRO_trace.hxx" + #include #include @@ -215,6 +218,7 @@ void HYDROData_Polyline3D::Update() Bnd_Box B; BRepBndLib::Add(aResWire, B); B.Get(Xmin, Ymin, Zmin, Xmax, Ymax, Zmax); + DEBTRACE("Bounding Box xyz min:" << Xmin << " " << Ymin << " " << Zmin << " xyz max:" << Xmax << " " << Ymax << " " << Zmax); SetMiddleZ((Zmin+Zmax)/2.); }