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

0029978: Data Exchange, macOS - the result of reading some entity from STEP looks odd

Code is optimized manually to avoid bug of XCode 9.4 compiler optimizer
This commit is contained in:
abv
2018-07-26 10:36:12 +03:00
committed by ibs
parent d54e1b4c57
commit e23f5331d9

View File

@@ -157,11 +157,10 @@ void gp_Trsf::SetTransformation (const gp_Ax3& FromA1,
shape = gp_CompoundTrsf;
scale = 1.0;
// matrix from XOY ToA2 :
matrix.SetCol (1, ToA2.XDirection().XYZ());
matrix.SetCol (2, ToA2.YDirection().XYZ());
matrix.SetCol (3, ToA2.Direction().XYZ());
matrix.SetRows (ToA2.XDirection().XYZ(),
ToA2.YDirection().XYZ(),
ToA2. Direction().XYZ());
loc = ToA2.Location().XYZ();
matrix.Transpose();
loc.Multiply (matrix);
loc.Reverse ();
@@ -183,11 +182,10 @@ void gp_Trsf::SetTransformation (const gp_Ax3& A3)
{
shape = gp_CompoundTrsf;
scale = 1.0;
loc = A3.Location().XYZ();
matrix.SetCols (A3.XDirection().XYZ(),
matrix.SetRows (A3.XDirection().XYZ(),
A3.YDirection().XYZ(),
A3. Direction().XYZ());
matrix.Transpose();
loc = A3.Location().XYZ();
loc.Multiply (matrix);
loc.Reverse ();
}