1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025747: Bad IGES file after import and export with different units

- Fixed ellipse curve radius scale
- Fixed hyperbola curve radius scale
- Fixed plane surface scale
- Fixed cylindrical, conical, spherical, toroidal radius and axis scale

Test case for issue CR25747
This commit is contained in:
dbv
2015-02-26 12:47:41 +03:00
committed by bugmaster
parent 31b1749c42
commit a1096551c9
4 changed files with 95 additions and 64 deletions

View File

@@ -256,9 +256,9 @@ IGESGeom_ConicArc::IGESGeom_ConicArc () { }
Standard_Real cos2t;
Standard_Real auxil;
if (Abs(term2)<= eps && Abs(term1)<= eps) {
if (Abs(term1)< gp::Resolution()) {
cos2t = 1.;
auxil = 0.;
auxil = term2;
}
else {
Standard_Real t2d = term2/term1; //skl 28.12.2001