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())
#include <TopTools_SequenceOfShape.hxx>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
#include <QColor>
#include <QStringList>
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.);
}