1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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

@@ -41,7 +41,7 @@ micron
mille mille 1852 m
light year Al 9.46053E+15 m
inch in. 25.40001969E-03 m
inch in. 0.0254 m
in
caliber caliber 1 in.
foot ft. 12 in
@@ -51,7 +51,7 @@ yard yd.
yd
statute mile stat.mile 1760 yd.
nautical mile naut.mile 6080 ft.
nautical mile naut.mile 1852 m
....................................................................................................................................
M L T I K N J P S
TIME 0 0 1 0 0 0 0 0 0