1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0023547: Tests failures in debug mode

1. DRAW-commands for curve/surface continuity returning were changed.
2. Output of "distmini" DRAW-command is amended.
3. Function MinMax() was moved from Standard_Real to IntPatch_ImpImpIntersection_4.gxx.
4. Incorrect computing of nbcurveC1 in Geom2dConvert::C0BSplineToC1BSplineCurve(...) function was liquidated.

Test cases were changed.
This commit is contained in:
nbv
2014-09-26 15:32:46 +04:00
committed by abv
parent 63c629aa3a
commit 9e20ed5793
80 changed files with 259 additions and 312 deletions

View File

@@ -58,7 +58,7 @@ static Standard_Integer distance (Draw_Interpretor& di,
static Standard_Integer distmini(Draw_Interpretor& di, Standard_Integer n, const char** a)
{
Standard_Integer i1;
// gp_Pnt P;
// gp_Pnt P;
if (n != 4) return 1;
@@ -68,48 +68,63 @@ static Standard_Integer distmini(Draw_Interpretor& di, Standard_Integer n, const
if (dst.IsDone())
{
{
#ifdef DEB
//dst.Dump(cout);
Standard_SStream aSStream;
dst.Dump(aSStream);
di << aSStream;
//dst.Dump(cout);
di << "*** Dump of \"BRepExtrema_DistShapeShape\" in DEBUG mode (begin) *****\n";
Standard_SStream aSStream;
dst.Dump(aSStream);
di << aSStream;
di << "*** Dump of \"BRepExtrema_DistShapeShape\" in DEBUG mode (end) *****\n";
#endif
char named[100];
Sprintf(named, "%s%s" ,ns0,"_val");
char* tempd = named;
Draw::Set(tempd,dst.Value());
di << named << " ";
di << "\"distmini\" command returns:\n";
for (i1=1; i1<= dst.NbSolution(); i1++)
{
gp_Pnt P1,P2;
P1 = (dst.PointOnShape1(i1));
P2 = (dst.PointOnShape2(i1));
if (dst.Value()<=1.e-9)
{
TopoDS_Vertex V =BRepLib_MakeVertex(P1);
char namev[100];
if (i1==1)
Sprintf(namev, "%s" ,ns0);
else Sprintf(namev, "%s%d" ,ns0,i1);
char* tempv = namev;
DBRep::Set(tempv,V);
di << namev << " ";
}
else
{char name[100];
TopoDS_Edge E = BRepLib_MakeEdge (P1, P2);
if (i1==1)
{Sprintf(name,"%s",ns0);}
else {Sprintf(name,"%s%d",ns0,i1);}
char* temp = name;
DBRep::Set(temp,E);
di << name << " " ;
}
}
char named[100];
Sprintf(named, "%s%s" ,ns0,"_val");
char* tempd = named;
Draw::Set(tempd,dst.Value());
di << named << " ";
for (i1=1; i1<= dst.NbSolution(); i1++)
{
gp_Pnt P1,P2;
P1 = (dst.PointOnShape1(i1));
P2 = (dst.PointOnShape2(i1));
if (dst.Value()<=1.e-9)
{
TopoDS_Vertex V =BRepLib_MakeVertex(P1);
char namev[100];
if (i1==1)
Sprintf(namev, "%s" ,ns0);
else
Sprintf(namev, "%s%d" ,ns0,i1);
char* tempv = namev;
DBRep::Set(tempv,V);
di << namev << " ";
}
else
{
char name[100];
TopoDS_Edge E = BRepLib_MakeEdge (P1, P2);
if (i1==1)
{
Sprintf(name,"%s",ns0);
}
else
{
Sprintf(name,"%s%d",ns0,i1);
}
char* temp = name;
DBRep::Set(temp,E);
di << name << " " ;
}
}
di << "\nOutput is complete.\n";
}
else di << "probleme"<< "\n";
//else cout << "probleme"<< endl;