mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-21 22:55:36 +05:00
Correct bugs on impr. NPAL16558
This commit is contained in:
parent
403009ad06
commit
a8d06c9a58
@ -165,7 +165,8 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const
|
|||||||
{
|
{
|
||||||
double aD = aCI.GetD();
|
double aD = aCI.GetD();
|
||||||
double anAngle = aCI.GetAngle();
|
double anAngle = aCI.GetAngle();
|
||||||
fill.AddDA(aD, anAngle, E, F);
|
if (anAngle>0)
|
||||||
|
fill.AddDA(aD, anAngle, E, F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -205,7 +206,8 @@ Standard_Integer GEOMImpl_ChamferDriver::Execute(TFunction_Logbook& log) const
|
|||||||
{
|
{
|
||||||
double aD = aCI.GetD();
|
double aD = aCI.GetD();
|
||||||
double anAngle = aCI.GetAngle();
|
double anAngle = aCI.GetAngle();
|
||||||
fill.AddDA(aD, anAngle, E, F);
|
if (anAngle>0)
|
||||||
|
fill.AddDA(aD, anAngle, E, F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -239,7 +241,8 @@ else if (aType == CHAMFER_SHAPE_EDGES || aType == CHAMFER_SHAPE_EDGES_AD)
|
|||||||
{
|
{
|
||||||
double aD = aCI.GetD();
|
double aD = aCI.GetD();
|
||||||
double anAngle = aCI.GetAngle();
|
double anAngle = aCI.GetAngle();
|
||||||
fill.AddDA(aD, anAngle, E, F);
|
if (anAngle>0)
|
||||||
|
fill.AddDA(aD, anAngle, E, F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -571,7 +571,6 @@ Handle(GEOM_Object) GEOMImpl_ILocalOperations::MakeChamferEdgeAD
|
|||||||
GEOM::TPythonDump(aFunction) << aChamfer
|
GEOM::TPythonDump(aFunction) << aChamfer
|
||||||
<< " = geompy.MakeChamferEdgeAD(" << theShape << ", " << theD
|
<< " = geompy.MakeChamferEdgeAD(" << theShape << ", " << theD
|
||||||
<< ", " << theAngle << ", " << theFace1 << ", " << theFace2 << ")";
|
<< ", " << theAngle << ", " << theFace1 << ", " << theFace2 << ")";
|
||||||
cout << "ANGLE = " << theAngle << endl;
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
return aChamfer;
|
return aChamfer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user