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:
@@ -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
|
||||
|
Reference in New Issue
Block a user