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.
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
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
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
}
// Replace small edge
if (isSmall) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
cout << "Warning: Small edge made degenerated by FaceAnalysis" << endl;
#endif
nbSmall++;
// Remove small face
if (nbSmall == nbEdges) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
cout << "Warning: Small face removed by FaceAnalysis" << endl;
#endif
myLittleFace.Add(face);
}
}
Standard_Integer nbNodes = NodeVertices.Extent();
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
cout << "Glueing " << nbNodes << " nodes..." << endl;
#endif
// Merge nearest nodes
}
// Glue vertices
if (nbVert) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
cout << "Assemble " << nbVert << " vertices on faces..." << endl;
#endif
while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI));
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));
myBoundSections.Bind(bound,listSections);
}
}
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
<< " were cut into " << mySectionBound.Extent() << " sections" << endl;
#endif
}
catch (Standard_Failure) {
worktol = MinTolerance();
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
Standard_Failure::Caught()->Print(cout); cout << endl;
#endif
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;
//purpose : Return Standard_True if distance between thePnt_f and
// thePnt_l is not more, than aTol3d
//=======================================================================
-Standard_Boolean IsDistanceIn3DTolerance (const BRepAdaptor_Surface& /*aFaceSurface*/,
- const gp_Pnt& thePnt_f,
+Standard_Boolean IsDistanceIn3DTolerance (const gp_Pnt& thePnt_f,
const gp_Pnt& thePnt_l,
const Standard_Real aTol3d)
{
if (Dist < aTol3d)
return Standard_True;
-#ifdef DEB
+#ifdef BREPCHECK_DEB
cout << endl;
cout << "--------Function IsDistanceIn3DTolerance(...)----------" << endl;
cout << "--- BRepCheck Wire: Closed3d -> Error" << endl;
{
cout << endl;
cout << "--------Function IsDistanceIn2DTolerance(...)----------" << endl;
- cout << "--- BRepCheck Wire: Not closed in 2d" << endl;
+ cout << "--- BRepCheck Wire: Not closed in 2D" << endl;
cout << "*****************************************************" << endl;
cout << "*dumin = " << dumin << "; dumax = " << dumax << endl;
cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax << endl;
if (!(IsDistanceIn2DTolerance(aFaceSurface, aP_first, aP_last, aTol3d)))
aClosedStat = BRepCheck_NotClosed;
- if(!IsDistanceIn3DTolerance(aFaceSurface, aPntRef, aPnt, aTol3d))
+ if(!IsDistanceIn3DTolerance(aPntRef, aPnt, aTol3d))
aClosedStat = BRepCheck_NotClosed;
if (Update)
BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
}
delete [] tabDom;
-#ifdef DEB
+#ifdef BREPCHECK_DEB
static Standard_Integer numpoint=0;
cout<<"point p"<<++numpoint<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;cout.flush();
#endif
}
else {
delete [] tabDom;
-#ifdef DEB
+#ifdef BREPCHECK_DEB
cout<<"BRepCheck_NoCurveOnSurface or BRepCheck_InvalidRange"<<endl;cout.flush();
#endif
if(tabCur(j).IsNull()) {
//-- Check distance from edges to the curve joining
//-- the point of intersection with vertex (if exists)
if (localok == Standard_False && !CommonVertices.IsEmpty()) {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
cout << "\n------------------------------------------------------\n" <<endl;
cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<endl;
if (Update) {
BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
}
-#ifdef DEB
+#ifdef BREPCHECK_DEB
static Standard_Integer numpoint1=0;
cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
cout.flush();
if (Update) {
BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
}
-#ifdef DEB
+#ifdef BREPCHECK_DEB
static Standard_Integer numpoint1=0;
cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
cout.flush();
gp_Pnt pEdg = bcEdg.Value(aParPiv);
gp_Pnt pEFound = bcEvois.Value(aParam);
- if(!IsDistanceIn3DTolerance(theFace, pEdg, pEFound, aTol3d))
+ if(!IsDistanceIn3DTolerance(pEdg, pEFound, aTol3d))
IsFound = Standard_False;
else
//angle was not defined but points are close
thePlane->UReverse();
BRepLib_MakeFace MkF( thePlane, WW );
if (MkF.Error() != BRepLib_FaceDone) {
-#if DEB
+#if BREPFILL_DEB
BRepLib_FaceError Err = MkF.Error();
cout << "Planar Face Error :" << Err << endl;
#endif
}
}
-#if DEB
+#if BREPFILL_DEB
if (!issame)
cout<<"Sweep Warning : Edge not SameRange in the limits"<<endl;
#endif
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;
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 << " ";
-
- 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 << "\"distmini\" command returns:\n";
+
+ 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;
BS->Knots(BSKnots);
BS->Multiplicities(BSMults);
- for (i=BS->FirstUKnotIndex();i<=(BS->LastUKnotIndex()-1);i++){
+ for (i=BS->FirstUKnotIndex() + 1;i<=(BS->LastUKnotIndex()-1);i++){
if (BSMults(i)==BS->Degree())
nbcurveC1++;
}
for (i=0;i<nbcurveC1;i++){
U1=U2;
- while (j < BS->LastUKnotIndex() && BSMults(j) < BS->Degree()) j++;
+ while (j < BS->LastUKnotIndex() && BSMults(j) < BS->Degree())
+ j++;
U2=BSKnots(j);
j++;
return 0;
}
+//=======================================================================
+//function : GetCurveContinuity
+//purpose : Returns the continuity of the given curve
+//=======================================================================
+static Standard_Integer GetCurveContinuity( Draw_Interpretor& theDI,
+ Standard_Integer theNArg,
+ const char** theArgv)
+{
+ if(theNArg != 2)
+ {
+ theDI << "Use: getcurvcontinuity {curve or 2dcurve} \n";
+ return 1;
+ }
+
+ char aContName[7][3] = {"C0", //0
+ "G1", //1
+ "C1", //2
+ "G2", //3
+ "C2", //4
+ "C3", //5
+ "CN"}; //6
+
+ Handle(Geom2d_Curve) GC2d;
+ Handle(Geom_Curve) GC3d = DrawTrSurf::GetCurve(theArgv[1]);
+ if(GC3d.IsNull())
+ {
+ GC2d = DrawTrSurf::GetCurve2d(theArgv[1]);
+ if(GC2d.IsNull())
+ {
+ theDI << "Argument is not a 2D or 3D curve!\n";
+ return 1;
+ }
+ else
+ {
+ theDI << theArgv[1] << " has " << aContName[GC2d->Continuity()] << " continuity.\n";
+ }
+ }
+ else
+ {
+ theDI << theArgv[1] << " has " << aContName[GC3d->Continuity()] << " continuity.\n";
+ }
+
+ return 0;
+}
+
//=======================================================================
//function : CurveCommands
//purpose :
__FILE__,
surfpoints,g);
+ theCommands.Add("getcurvcontinuity",
+ "getcurvcontinuity {curve or 2dcurve}: \n\tReturns the continuity of the given curve",
+ __FILE__,
+ GetCurveContinuity,g);
+
+
}
return 0;
}
+
+//=======================================================================
+//function : GetSurfaceContinuity
+//purpose : Returns the continuity of the given surface
+//=======================================================================
+static Standard_Integer GetSurfaceContinuity( Draw_Interpretor& theDI,
+ Standard_Integer theNArg,
+ const char** theArgv)
+{
+ if(theNArg != 2)
+ {
+ theDI << "Use: getsurfcontinuity surface\n";
+ return 1;
+ }
+
+ Handle(Geom_Surface) GS1 = DrawTrSurf::GetSurface(theArgv[1]);
+ if(GS1.IsNull())
+ {
+ theDI << "Argument is not a surface!\n";
+ return 1;
+ }
+
+ char aContName[7][3] = {"C0", //0
+ "G1", //1
+ "C1", //2
+ "G2", //3
+ "C2", //4
+ "C3", //5
+ "CN"}; //6
+
+ theDI << theArgv[1] << " has " << aContName[GS1->Continuity()] << " continuity.\n";
+
+ return 0;
+}
+
+
//=======================================================================
//function : SurfaceCommands
//purpose :
__FILE__,
fillcurves,g);
+ theCommands.Add("getsurfcontinuity",
+ "getsurfcontinuity surface: \n\tReturns the continuity of the given surface",
+ __FILE__,
+ GetSurfaceContinuity,g);
+
+
}
}
catch(Standard_Failure) {
-#ifdef DEB
+#ifdef HLRBREP_DEB
cout << "An exception was catched when hiding edge " << E;
cout << " by the face " << FI << endl;
Handle(Standard_Failure) fail = Standard_Failure::Caught();
const gp_Cylinder& Cy2,
const Standard_Real Tol);
+// ------------------------------------------------------------------
+// MinMax : Replaces theParMIN = MIN(theParMIN, theParMAX),
+// theParMAX = MAX(theParMIN, theParMAX).
+// ------------------------------------------------------------------
+static inline void MinMax(Standard_Real& theParMIN, Standard_Real& theParMAX)
+{
+ if(theParMIN > theParMAX)
+ {
+ const Standard_Real aux = theParMAX;
+ theParMAX = theParMIN;
+ theParMIN = aux;
+ }
+}
+
+
//=======================================================================
//function : ProcessBounds
//purpose :
Handle(Interface_InterfaceModel) Model = WS->Model();
Handle(XSControl_TransferWriter) TW = WS->TransferWriter();
Handle(Transfer_FinderProcess) FP = TW->FinderProcess();
- Interface_Graph aGraph = WS->HGraph()->Graph();
+
+ const Handle(Interface_HGraph) aHGraph = WS->HGraph();
+ if(aHGraph.IsNull())
+ return Standard_False;
+
+ Interface_Graph aGraph = aHGraph->Graph();
Handle(XCAFDoc_DimTolTool) DGTTool = XCAFDoc_DocumentTool::DimTolTool( labels(1) );
if(DGTTool.IsNull() ) return Standard_False;
Handle(Interface_InterfaceModel) Model = WS->Model();
Handle(XSControl_TransferWriter) TW = WS->TransferWriter();
Handle(Transfer_FinderProcess) FP = TW->FinderProcess();
+
+ const Handle(Interface_HGraph) aHGraph = WS->HGraph();
+ if(aHGraph.IsNull())
+ return Standard_False;
+
Interface_Graph aGraph = WS->HGraph()->Graph();
Handle(XCAFDoc_ShapeTool) ShTool = XCAFDoc_DocumentTool::ShapeTool( labels(1) );
if(ShTool.IsNull() ) return Standard_False;
return Val1 <= Val2 ? Val1 : Val2;
}
-// ------------------------------------------------------------------
-// MinMax : Replaces theParMIN = MIN(theParMIN, theParMAX),
-// theParMAX = MAX(theParMIN, theParMAX).
-// ------------------------------------------------------------------
-inline void MinMax(Standard_Real& theParMIN, Standard_Real& theParMAX)
-{
- if(theParMIN > theParMAX)
- {
- const Standard_Real aux = theParMAX;
- theParMAX = theParMIN;
- theParMIN = aux;
- }
-}
-
-
//-------------------------------------------------------------------
// Pow : Returns a real to a given power
//-------------------------------------------------------------------
}
if (SS->IsKind(STANDARD_TYPE(StepGeom_ElementarySurface))) {
const Handle(StepGeom_ElementarySurface) S1 = Handle(StepGeom_ElementarySurface)::DownCast(SS);
+ if(S1->Position().IsNull())
+ return Standard_False;
+
return StepToGeom_MakeElementarySurface::Convert(S1,*((Handle(Geom_ElementarySurface)*)&CS));
}
if (SS->IsKind(STANDARD_TYPE(StepGeom_SweptSurface))) {
if (C->IsKind(STANDARD_TYPE(Geom_TrimmedCurve)))
C = Handle(Geom_TrimmedCurve)::DownCast(C)->BasisCurve();
GeomToStep_MakeCurve gtpC(C);
+
+ if(!gtpC.IsDone())
+ return Standard_False;
+
Handle(StepGeom_Curve) pmsC = gtpC.Value();
// trim the curve
FAILED /\bFaulty\b/ bad shape
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
IGNORE /^Tcl Exception: tolerance ang : [\d.-]+/ blend failure - test will be failed as incomplete
-puts "TODO ?#22911 ALL: Error : The area of the resulting shape is"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
cpulimit 1500
restore [locate_data_file OCC228.brep] sh
bop sh_1 sh_2
bopcommon result
-set square 0
+set square 66231.3
-puts "TODO ?#22911 ALL: Error : The area of the resulting shape is"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
cpulimit 1500
restore [locate_data_file OCC228.brep] sh
bop sh_2 sh_1
bopcommon result
-set square 0
+set square 66231.3
-puts "TODO ?#22911 ALL: Error : The bopcut cannot be built."
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
+puts "TODO #22911 ALL: Error : The bopcut cannot be built."
cpulimit 1500
restore [locate_data_file OCC228.brep] sh
-puts "TODO ?#22911 ALL: Error : The bopcut is not valid"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
+puts "TODO #22911 ALL: Error : The bopcut is not valid"
cpulimit 1500
restore [locate_data_file OCC228.brep] sh
-puts "TODO ?#22911 ALL: Error : The bopfuse cannot be built."
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
+puts "TODO #22911 ALL: Error : The bopfuse cannot be built."
cpulimit 1500
restore [locate_data_file OCC228.brep] sh
-puts "TODO ?#22911 ALL: Error : The bopfuse cannot be built."
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
+puts "TODO #22911 ALL: Error : The bopfuse cannot be built."
cpulimit 1500
restore [locate_data_file OCC228.brep] sh
-puts "TODO DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
+cpulimit 1000
restore [locate_data_file OCC62.brep] sh
-puts "TODO DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-puts "TODO ?DEBUG_OCC24121 Windows: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Windows: TEST INCOMPLETE"
-
-cpulimit 900
+cpulimit 1000
restore [locate_data_file lh3d_px2.brep] a
set i 1
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
restore [locate_data_file lh3d_ro1.brep] a
compound result
isos a 0
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: iteration"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Faulty OCC23944"
-
puts "============"
puts "OCC23944"
puts "============"
decho off
mkface f s
-decho on
-
-decho off
-set info [bsplres result f 1e-4 1e-9 15 100 C1 C2 0 1]
+bsplres result f 1e-4 1e-9 15 100 C1 C2 0 1
+mksurface rsurf result
+set info [getsurfcontinuity rsurf]
decho on
# Resume
puts ""
-if { [regexp {Debug mode} [dversion]] } {
- if { [regexp {Surface is aproximated with continuity 0} $info] } {
- puts "OK ${BugNumber}"
- } else {
- puts "Faulty ${BugNumber}"
- }
+if { [regexp {rsurf has C0 continuity.} $info] } {
+ puts "OK ${BugNumber}"
} else {
- puts "Test for debug mode only"
+ puts "Faulty ${BugNumber}"
}
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: ShapeProcess_Performer"
-
pload QAcommands
puts "======="
puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: --- BRepCheck Wire:"
puts "========"
puts "OCC131"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: \\*\\* Exception in IGESToBRep_BasicCurve"
-
puts "========================"
puts "BUC60984"
puts "OCC91"
-# Errors are different in Debug and Release mode
-puts "TODO ?#23910 ALL: Error : The square of result shape is"
-puts "TODO ?#23910 ALL: Faulty shapes in variables faulty_1 to faulty_"
-puts "TODO ?#23910 ALL: Faulty OCC827"
-
-# Debug on Windows
-puts "TODO ?#23910 ALL: Standard_Failure : Exception in REV Function"
-puts "TODO ?#23910 ALL: result is not a topological shape!!!"
-puts "TODO ?#23910 ALL: TEST INCOMPLETE"
-
+puts "TODO #23910 ALL: Faulty OCC827"
+puts "TODO #23910 ALL: Faulty shapes in variables faulty_1 to faulty_"
pload QAcommands
puts "========"
}
renamevar res2 result
}
-set square 0
+set square 7046.01
set 2dviewer 1
-puts "TODO ?OCC11111 ALL: OCC8842: Faulty"
-puts "TODO ?OCC11111 ALL: \\*\\* Exception"
-puts "TODO ?OCC11111 ALL: An exception was caught"
-puts "TODO ?OCC11111 ALL: Error : Result shape is WRONG"
-puts "TODO ?OCC11111 ALL: Error : The square of result shape is"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
puts "============"
puts "OCC8842"
puts "============"
puts "${BugNumber}: Faulty (1)"
} else {
-set square 3542.24
-set nb_v_good 60
-set nb_e_good 90
-set nb_w_good 42
-set nb_f_good 40
-set nb_sh_good 5
-set nb_sol_good 5
+set square 20106.2
+set nb_v_good 6
+set nb_e_good 9
+set nb_w_good 5
+set nb_f_good 5
+set nb_sh_good 1
+set nb_sol_good 1
set nb_compsol_good 0
-set nb_compound_good 1
-set nb_shape_good 243
+set nb_compound_good 0
+set nb_shape_good 27
}
-puts "TODO ?OCC11111 ALL: OCC8842: Faulty"
-puts "TODO ?OCC11111 ALL: \\*\\* Exception"
-puts "TODO ?OCC11111 ALL: An exception was caught"
-puts "TODO ?OCC11111 ALL: Error : The square of result shape is"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
puts "============"
puts "OCC8842"
puts "============"
puts "${BugNumber}: Faulty (1)"
} else {
-set square 22391
+set square 9885.2
set nb_v_good 4
set nb_e_good 9
set nb_w_good 4
-puts "TODO DEBUG_OCC24121 Debian60-64: Elapsed time is more than 0.1 seconds"
-
puts "============"
puts "OCC23906"
puts "============"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Faulty OCC11081"
-
puts "========================"
puts "OCC11081"
puts "========================"
set BugNumber OCC11081
+set RefResult "\"distmini\" command returns:\ndd_val dd dd2 \nOutput is complete."
+
# infinite line is used
line ll 6834.93 -4100 500 0 0 1
mkedge ee ll
restore [locate_data_file OCC11081.brep] section4100
-distmini dd ee section4100
set res_list [distmini dd ee section4100]
-set res_length [llength ${res_list}]
-puts "res_length = ${res_length}"
# Resume
puts ""
-if { ${res_length} != 3 } {
+if { [regexp $RefResult $res_list] != 1 } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Faulty OCC11081"
-
puts "========================"
puts "OCC11081"
puts "========================"
#######################################################################
set BugNumber OCC11081
+set RefResult "\"distmini\" command returns:\ndd_val dd dd2 \nOutput is complete."
# finite line is used
mkedge tree trll
restore [locate_data_file OCC11081.brep] section4100
set res_list [distmini dd tree section4100]
-set res_length [llength ${res_list}]
-puts "res_length = ${res_length}"
# Resume
puts ""
-if { ${res_length} != 3 } {
+if { [regexp $RefResult $res_list] != 1 } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
-}
+}
\ No newline at end of file
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Faulty OCC20683"
-
puts "========================"
puts "OCC20683"
puts "========================"
#######################################################################
set BugNumber OCC20683
+set RefResult "\"distmini\" command returns:\nd_val d d2 \nOutput is complete."
# finite line is used
line ll 6834.93 -4100 500 0 0 1
restore [locate_data_file OCC20683_circ2.brep] e2
set res_list [distmini d e1 e2]
-set res_length [llength ${res_list}]
-puts "res_length = ${res_length}"
# Resume
puts ""
-if { ${res_length} != 3 } {
+if { [regexp $RefResult $res_list] != 1 } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
-
-puts "TODO DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-
puts "========================"
puts " OCC599"
puts "========================"
## Result of BOPFUSE operation is unclosed shape inspite of source solids are valid
#########################################################
+cpulimit 1000
+
restore [locate_data_file OCC600_1.brep] a
checkshape a
restore [locate_data_file OCC600_2.brep] b
FAILED /\bFaulty\b/ bad shape
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
SKIPPED /Error: unsupported locale specification/ locale is unavailable on tested system
OK /Relative error of mass computation/ message from vprops
## It's impossible to make vdump with non-default parameters (width and height) on remote PC
-puts "TODO ?OCC23813 Windows: Tcl Exception: Dumping failed!"
-puts "TODO ?OCC23813 Windows: TEST INCOMPLETE"
puts "============"
puts "OCC23813"
-puts "TODO DEBUG_OCC24759 ALL: Warning: StepToGeom_MakeSurface"
-
puts "================"
puts "OCC24759"
puts "================"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: ShapeFix_Wireframe"
-
puts "================"
puts "OCC394"
puts "SAM1296"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Warning: ShapeFix_Edge"
-
puts "========================"
puts " OCC810 "
puts "========================"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Warning: ShapeFix_Edge"
-
puts "========================"
puts "OCC810"
puts "========================"
FAILED /\bFaulty\b/ bad shape
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO CR23096 DEBUG_OCC24121 Debian60-64: Error : 1 differences with reference data found :"
+puts "TODO CR25275 DEBUG_OCC24121 Debian60-64: Error : 1 differences with reference data found :"
set LinuxDiff 1
set filename UKI60107-6.igs
# !!!! This file is generated automatically, do not edit manually! See end script
-puts "TODO ?CR23096 ALL: LABELS : Faulty"
-puts "TODO ?DEBUG_OCC24121 Debian60-64 Windows: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64 Windows: TEST INCOMPLETE"
-
+puts "TODO CR23096 ALL: LABELS : Faulty"
set filename t_cat_424_002_sgi_hybdrw_vw_dosenhalter_standard.igs
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: ShapeFix_ComposeShell"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: color name"
-
-
set filename trj9_b2-ai-214.stp
# !!!! This file is generated automatically, do not edit manually! See end script
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename trj4_s1-ai-214.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: STATSHAPE : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error : 1 differences with reference data found"
set filename trj6_pm4-al-214.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename db_as1-A.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename db_as1-B.stp
puts "TODO CR23096 ALL: TPSTAT : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename trj3_s1-db-214.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename tr8_as2_db.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename tr8_as2a_db.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO ?CR23096 ALL: TPSTAT : Faulty"
-puts "TODO ?CR23096 ALL: STATSHAPE : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64: \\*\\* Exception \\*\\*.*"
-puts "TODO DEBUG_OCC24121 Debian60-64: An exception was caught"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: First - file was not written - exception"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error : Here is writing problem"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error : 3 differences with reference data found"
+puts "TODO ?CR23096 ALL: STATSHAPE : Faulty"
set filename S4132-test.stp
DATA : Faulties = 0 ( 0 ) Warnings = 0 ( 0 ) Summary = 0 ( 0 )
TPSTAT : Faulties = 0 ( 0 ) Warnings = 1 ( 0 ) Summary = 1 ( 0 )
CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) Solids = 0 ( 0 )
-NBSHAPES : Solid = 0 ( 0 ) Shell = 6 ( 0 ) Face = 6 ( 6 ) Summary = 79 ( 73 )
+NBSHAPES : Solid = 0 ( 0 ) Shell = 6 ( 0 ) Face = 6 ( 6 ) Summary = 78 ( 73 )
STATSHAPE : Solid = 0 ( 0 ) Shell = 6 ( 0 ) Face = 6 ( 6 ) FreeWire = 0 ( 0 ) FreeEdge = 3 ( 4 ) SharedEdge = 27 ( 28 )
TOLERANCE : MaxTol = 1e-007 ( 1e-007 ) AvgTol = 1e-007 ( 1e-007 )
LABELS : N0Labels = 1 ( 1 ) N1Labels = 0 ( 0 ) N2Labels = 0 ( 0 ) TotalLabels = 1 ( 1 ) NameLabels = 1 ( 1 ) ColorLabels = 0 ( 0 ) LayerLabels = 0 ( 0 )
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename as1ug.stp
puts "TODO CR23096 ALL: NBSHAPES : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename tr8_ha1_db.stp
# !!!! This file is generated automatically, do not edit manually! See end script
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename r86ug.stp
puts "TODO CR23096 ALL: TPSTAT : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename bm4_db_punch_a.stp
puts "TODO CR23096 ALL: TPSTAT : Faulty"
puts "TODO CR23096 ALL: STATSHAPE : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Warning: StepToTopoDS_TranslateCompositeCurve"
set filename tr9_r0901-al.stp
puts "TODO CR23096 ALL: NBSHAPES : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 Mandriva2010: Error : 3 differences with reference data found :"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Warning: StepToGeom_MakeSurface"
set LinuxDiff 3
set filename r76sy.stp
puts "TODO CR23096 ALL: TPSTAT : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename bm4_db_punch_c.stp
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename bm4_db_conn_a.stp
puts "TODO CR23096 ALL: TPSTAT : Faulty"
puts "TODO CR23096 ALL: LABELS : Faulty"
puts "TODO CR23096 ALL: LAYERS : Faulty"
-puts "TODO DEBUG_OCC24121 Debian60-64 Windows: Error: STEPCAFControl_Reader"
set filename bm4_db_conn_d.stp
OK /Wanted exception/ intentionally generated exception
FAILED /Failure message/ artificial failure
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
FAILED /\bFaulty\b/ bad shape
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
SKIPPED /Error: unsupported locale specification/ locale is unavailable on tested system
OK /Relative error of mass computation/ message from vprops
}
if {[string compare $command "SplitAngle"] == 0 } {
puts "TODO OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
- puts "TODO ?DEBUG_OCC24121 Debian60-64 Windows: Error: Exception in ShapeUpgrade_FaceDivide"
}
restore [locate_data_file CTO900_ger60598c.rle] a
if {[string compare $command "SplitAngle"] == 0 } {
- puts "TODO ?OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_56 "
- puts "TODO ?DEBUG_OCC24121 Windows: Faulty shapes in variables faulty_1 to faulty_"
-
+ puts "TODO OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
}
+
restore [locate_data_file FORM-11.brep] a
if { [string compare $command "ShapeConvertRev"] == 0 } {
- puts "TODO ?OCC23127 ALL: Error : The area of the resulting shape is"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
+ puts "TODO OCC23127 ALL: Error : The area of the resulting shape is"
}
restore [locate_data_file METABO11.brep] a
if {[string compare $command "SplitAngle"] == 0 } {
- puts "TODO ?OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_2 "
- puts "TODO ?DEBUG_OCC24121 Windows: Faulty shapes in variables faulty_1 to faulty_"
-
+ puts "TODO OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
}
restore [locate_data_file METABO12.brep] a
if {[string compare $command "SplitAngle"] == 0 } {
- puts "TODO ?OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_2 "
- puts "TODO ?DEBUG_OCC24121 Windows: Faulty shapes in variables faulty_1 to faulty_"
-
+ puts "TODO OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
}
restore [locate_data_file P-ROUES.brep] a
if { [string compare $command "ShapeConvertRev"] == 0 } {
- puts "TODO ?OCC23127 ALL: Error : The area of the resulting shape is"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
+ puts "TODO OCC23127 ALL: Error : The area of the resulting shape is"
}
restore [locate_data_file TOP01245_2.brep] a
if {[string compare $command "SplitAngle"] == 0 } {
- set os "ALL"
- if {[array get env os_type] != ""} {
- set os $env(os_type)
- }
- if {
- [string compare $os "Mandriva2008"] == 0
- } {
- puts "TODO ?OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
- } else {
- puts "TODO ?OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
- }
-}
-if {[string compare $command "ShapeDivide"] == 0 } {
- puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-}
-
-if {[string compare $command "ShapeConvertRev"] == 0 } {
- puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
+ puts "TODO OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_"
}
restore [locate_data_file BPLSEITLI.brep] a
if {[string compare $command "SplitAngle"] == 0 } {
puts "TODO OCC23127 ALL: Faulty shapes in variables faulty_1 to faulty_28 "
}
-if {[string compare $command "ShapeDivide"] == 0 } {
- puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-}
-
-if {[string compare $command "ShapeConvertRev"] == 0 } {
- puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
- puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
-}
restore [locate_data_file BPLSEITRE.brep] a
FAILED /\bFaulty\b/ bad shape
-IGNORE /Error: Number of intervals are not equal for 2d 3d. Ignored./ Debug mode message from DT_ShapeDivide
-IGNORE /Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity/ DEbug mode message from DT_ToBspl
-IGNORE /Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can[']t dispatch wires/ Debug mode output
-IGNORE /Warning: ShapeFix_WireSegment::DefineI[UV]M[ia][nx]: indexation error/ debug mode output on bad geometries
-IGNORE /error = [0-9eE.+-]+\s+spans = [0-9]+/ debug output of surface approximator
\ No newline at end of file
+++ /dev/null
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
-puts "TODO ?OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO ?OCC23748 ALL: Tcl Exception: ERROR. offsetperform operation not done."
-puts "TODO ?OCC23748 ALL: Faulty shapes in variables faulty_1 to faulty_"
-puts "TODO ?OCC23748 ALL: Error : The volume of the resulting shape is"
-puts "TODO ?OCC23748 ALL: Error : The area of face result_. of the resulting shape is negative"
-puts "TODO ?OCC23748 ALL: TEST INCOMPLETE"
-puts "TODO ?DEBUG_OCC24121 : Error : The area of face"
-puts "TODO ?OCC24156 MacOS: Error : The area of face"
-
+puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
+puts "TODO OCC23748 ALL: Tcl Exception: ERROR. offsetperform operation not done."
+puts "TODO OCC23547 ALL: TEST INCOMPLETE"
psphere s 15 270
OFFSETSHAPE 1 {s_2} $calcul $type
FAILED /\bFaulty\b/ bad shape
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
cpulimit 2400
-puts "TODO ?OCC23068 ALL: Error : result is not a topological shape"
-puts "TODO ?OCC23068 ALL: Error : The offset cannot be built."
-puts "TODO ?OCC23748 ALL: Error: Offset is not done."
-puts "TODO ?DEBUG_OCC24121 Debian60-64: Process killed by CPU limit"
-puts "TODO ?DEBUG_OCC24121 Debian60-64: TEST INCOMPLETE"
+puts "TODO OCC23068 ALL: Error : The offset cannot be built."
+puts "TODO OCC23748 ALL: Error: Offset is not done."
restore [locate_data_file offset_wire_041.brep] s
SKIPPED /Tcl Exception: .*[fF]ile .* could not be found/ data file is missing
IGNORE /Tcl Exception: [*][*] Exception [*][*]/ duplicate report on exception on Tcl level
-IGNORE /BRepCheck Wire: Closed2d/ Debug output of checkshape
FAILED /\b[Ee]xception\b/ exception
FAILED /\b[Ee][Rr][Rr][Oo][Rr]\b/ error
FAILED /Process killed by CPU limit/ Killed by CPU limit
FAILED /\bFaulty\b/ bad shape
-IGNORE /^Error [23]d = [\d.-]+/ debug output of blend command
FAILED /\bFaulty\b/ bad shape
-IGNORE /Error 3d = [0-9.]+/ debug dump of approximator