1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026951: Incorrect conversion of miles into millimeters during export to STEP

Coefficient for conversion of miles to mm is corrected in UnitsMethods::GetLengthFactorValue() to be 1609344.

In UnitsAPI/Units.dat, value of inch is corrected to be exactly 25.4 mm (it was 25.40001969); definition of nautical mile corrected to be exactly 1852 m.
Test bugs fclasses bug26951 is added to check definition of mm and miles.

DRAW command "unit" is corrected to put its output to Tcl instead of cout.
This commit is contained in:
abv
2015-12-18 15:03:35 +03:00
committed by bugmaster
parent 2f77210497
commit 59336f5c9d
3 changed files with 14 additions and 14 deletions

View File

@@ -127,10 +127,10 @@ static Standard_Integer converttoMDTV
//purpose :
//=======================================================================
static Standard_Integer unit(Draw_Interpretor& , Standard_Integer n, const char** a)
static Standard_Integer unit(Draw_Interpretor& di, Standard_Integer n, const char** a)
{
if(n == 4) {
cout << Units::Convert(Draw::Atof(a[1]), a[2], a[3]) << endl;
di << Units::Convert(Draw::Atof(a[1]), a[2], a[3]);
return 0;
}
else