mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029910: Porting to Debian80-64 : Regressions in Modeling Algorithms
Adjusting test cases. Creation of new test cases.
This commit is contained in:
@@ -65,15 +65,17 @@ inline const gp_Dir& IntWalk_PWalking::TangentAtLine(Standard_Integer& theIndex)
|
||||
|
||||
inline void IntWalk_PWalking::AddAPoint(const IntSurf_PntOn2S& POn2S) {
|
||||
#if REGLAGE
|
||||
Standard_Integer n=theLine->NbPoints();
|
||||
Standard_Integer n=line->NbPoints()+1;
|
||||
if (n == 1)
|
||||
{
|
||||
std::cout << "Dump of WL" << std::endl;
|
||||
}
|
||||
|
||||
if(n) {
|
||||
gp_Vec V(POn2S.Value(),theLine->Value(n).Value());
|
||||
Standard_Real u1,v1,u2,v2;
|
||||
Standard_Real U1,V1,U2,V2;
|
||||
POn2S.Parameters(u1,v1,u2,v2);
|
||||
theLine->Value(n).Parameters(U1,V1,U2,V2);
|
||||
printf("\n%3d: (%10.5g)(%+12.5g %+12.5g %+12.5g) (%+12.5g %+12.5g) (%+12.5g %+12.5g)",n,
|
||||
V.Magnitude(),V.X(),V.Y(),V.Z(),U1-u1,V1-v1,U2-u2,V2-v2);
|
||||
printf("point p%d %+10.20f %+10.20f %+10.20f\n",
|
||||
n, POn2S.Value().X(), POn2S.Value().Y(), POn2S.Value().Z());
|
||||
fflush(stdout);
|
||||
}
|
||||
#endif
|
||||
|
@@ -950,56 +950,6 @@ static Standard_Integer OCC277bug (Draw_Interpretor& di, Standard_Integer nb, co
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include <ShapeAnalysis_Edge.hxx>
|
||||
|
||||
static Standard_Integer OCC333bug (Draw_Interpretor& di, Standard_Integer n, const char ** a)
|
||||
{
|
||||
if( n < 3) {
|
||||
di<<"-1\n";
|
||||
di << "Usage: " << a[0] << " edge1 edge2 [toler domaindist]\n";
|
||||
return 1;
|
||||
}
|
||||
TopoDS_Shape Sh1 = DBRep::Get(a[1]);
|
||||
TopoDS_Shape Sh2 = DBRep::Get(a[2]);
|
||||
if(Sh1.IsNull() || Sh2.IsNull()) {
|
||||
di<<"-2\n";
|
||||
di<<"Invalid arguments\n";
|
||||
return 1;
|
||||
}
|
||||
TopoDS_Edge e1 = TopoDS::Edge(Sh1);
|
||||
TopoDS_Edge e2 = TopoDS::Edge(Sh2);
|
||||
if(e1.IsNull() || e2.IsNull()) {
|
||||
di<<"-3\n";
|
||||
di<<"Invalid type of arguments\n";
|
||||
return 1;
|
||||
}
|
||||
Standard_Real aTol = Precision::Confusion();
|
||||
Standard_Real aDistDomain = 0.0;
|
||||
Standard_Integer k = 3;
|
||||
if(k < n)
|
||||
aTol = Draw::Atof(a[k++]);
|
||||
if(k < n)
|
||||
aDistDomain = Draw::Atof(a[k++]);
|
||||
|
||||
ShapeAnalysis_Edge sae;
|
||||
if(sae.CheckOverlapping(e1,e2,aTol,aDistDomain)) {
|
||||
if(aDistDomain ==0.0) {
|
||||
di<<"1\n";
|
||||
di<<"Edges is overlaping comletly\n";
|
||||
} else {
|
||||
di<<"2\n";
|
||||
di<<"Edges is overlaped\n";
|
||||
di<<"with tolerance = "<<aTol<<"\n";
|
||||
di<<"on segment length = "<<aDistDomain<<"\n";
|
||||
}
|
||||
} else {
|
||||
di<<"3\n";
|
||||
di<<"Edges is not overlaped\n";
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#include <DDocStd_DrawDocument.hxx>
|
||||
#include <TDataStd_Name.hxx>
|
||||
#include <Draw.hxx>
|
||||
@@ -4830,8 +4780,6 @@ void QABugs::Commands_11(Draw_Interpretor& theCommands) {
|
||||
//theCommands.Add("OCC277","OCC277", __FILE__, OCC277bug, group);
|
||||
theCommands.Add("OCC277","OCC277", __FILE__, OCC277bug, group);
|
||||
|
||||
theCommands.Add("OCC333","OCC333 edge1 edge2 [toler domaindist]; Check overlapping edges", __FILE__, OCC333bug, group);
|
||||
|
||||
theCommands.Add("OCC363", "OCC363 document filename ", __FILE__, OCC363, group);
|
||||
// Must use OCC299
|
||||
//theCommands.Add("OCC372", "OCC372", __FILE__, OCC372, group);
|
||||
|
Reference in New Issue
Block a user