mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -143,7 +143,7 @@ Handle(Geom2d_Curve) BRepBuilderAPI_Sewing::SameRange(const Handle(Geom2d_Curve)
|
||||
RequestedFirst,RequestedLast,NewCurvePtr);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
@@ -315,7 +315,7 @@ void BRepBuilderAPI_Sewing::SameParameter(const TopoDS_Edge& edge) const
|
||||
BRepLib::SameParameter(edge);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
@@ -2260,7 +2260,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
|
||||
Standard_Real first, last;
|
||||
Handle(Geom_Curve) c3d = BRep_Tool::Curve(edge,first,last);
|
||||
if (c3d.IsNull()) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Warning: Possibly small edge can be sewed: No 3D curve" << endl;
|
||||
#endif
|
||||
}
|
||||
@@ -2340,7 +2340,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
|
||||
|
||||
// Replace small edge
|
||||
if (isSmall) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Warning: Small edge made degenerated by FaceAnalysis" << endl;
|
||||
#endif
|
||||
nbSmall++;
|
||||
@@ -2377,7 +2377,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
|
||||
|
||||
// Remove small face
|
||||
if (nbSmall == nbEdges) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Warning: Small face removed by FaceAnalysis" << endl;
|
||||
#endif
|
||||
myLittleFace.Add(face);
|
||||
@@ -2765,7 +2765,7 @@ static Standard_Boolean GlueVertices(TopTools_IndexedDataMapOfShapeShape& aVerte
|
||||
}
|
||||
}
|
||||
Standard_Integer nbNodes = NodeVertices.Extent();
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Glueing " << nbNodes << " nodes..." << endl;
|
||||
#endif
|
||||
// Merge nearest nodes
|
||||
@@ -2926,7 +2926,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
|
||||
}
|
||||
// Glue vertices
|
||||
if (nbVert) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Assemble " << nbVert << " vertices on faces..." << endl;
|
||||
#endif
|
||||
while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI));
|
||||
@@ -2935,7 +2935,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
|
||||
return;
|
||||
aPS.Next();
|
||||
if (nbVertFree) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Assemble " << nbVertFree << " vertices on floating edges..." << endl;
|
||||
#endif
|
||||
while (GlueVertices(myVertexNodeFree,myNodeSections,myBoundFaces,myTolerance, thePI));
|
||||
@@ -3689,7 +3689,7 @@ void BRepBuilderAPI_Sewing::Cutting(const Handle(Message_ProgressIndicator)& the
|
||||
myBoundSections.Bind(bound,listSections);
|
||||
}
|
||||
}
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
|
||||
<< " were cut into " << mySectionBound.Extent() << " sections" << endl;
|
||||
#endif
|
||||
@@ -4294,7 +4294,7 @@ void BRepBuilderAPI_Sewing::ProjectPointsOnCurve(const TColgp_Array1OfPnt& arrPn
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
worktol = MinTolerance();
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
|
||||
Standard_Failure::Caught()->Print(cout); cout << endl;
|
||||
#endif
|
||||
@@ -4674,7 +4674,7 @@ void BRepBuilderAPI_Sewing::SameParameterShape()
|
||||
BRepLib::SameParameter(sec, BRep_Tool::Tolerance(sec));
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
#ifdef DEB
|
||||
#ifdef BREPBUILDERAPI_DEB
|
||||
cout << "Fail: BRepBuilderAPI_Sewing::SameParameterShape exception in BRepLib::SameParameter" << endl;
|
||||
#endif
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user